diff options
author | sam <sam@FreeBSD.org> | 2009-07-24 15:22:12 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-07-24 15:22:12 +0000 |
commit | d364fa589df46ba79958706a8f6af37dac09662d (patch) | |
tree | f3ccd43fa33c44968a994bdd55db4aa48e32c64e /sys/net80211/ieee80211_output.c | |
parent | b6b550b7e411a3f88ff1edd133a162f1807551d8 (diff) | |
download | FreeBSD-src-d364fa589df46ba79958706a8f6af37dac09662d.zip FreeBSD-src-d364fa589df46ba79958706a8f6af37dac09662d.tar.gz |
o kill old code no longer needed after r193312
o count output packets+errors for frames sent through ieee80211_output
Approved by: re (kensmith)
Diffstat (limited to 'sys/net80211/ieee80211_output.c')
-rw-r--r-- | sys/net80211/ieee80211_output.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 061a63d..afbbfc3 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -382,23 +382,10 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m, { #define senderr(e) do { error = (e); goto bad;} while (0) struct ieee80211_node *ni = NULL; - struct ieee80211vap *vap; + struct ieee80211vap *vap = ifp->if_softc; struct ieee80211_frame *wh; int error; - if (ifp->if_drv_flags & IFF_DRV_OACTIVE) { - /* - * Short-circuit requests if the vap is marked OACTIVE - * as this is used when tearing down state to indicate - * the vap may be gone. This can also happen because a - * packet came down through ieee80211_start before the - * vap entered RUN state in which case it's also ok to - * just drop the frame. This should not be necessary - * but callers of if_output don't check OACTIVE. - */ - senderr(ENETDOWN); - } - vap = ifp->if_softc; /* * Hand to the 802.3 code if not tagged as * a raw 802.11 frame. @@ -468,6 +455,7 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m, if (ieee80211_classify(ni, m)) senderr(EIO); /* XXX */ + ifp->if_opackets++; IEEE80211_NODE_STAT(ni, tx_data); if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { IEEE80211_NODE_STAT(ni, tx_mcast); @@ -491,6 +479,7 @@ bad: m_freem(m); if (ni != NULL) ieee80211_free_node(ni); + ifp->if_oerrors++; return error; #undef senderr } |