diff options
author | bz <bz@FreeBSD.org> | 2016-05-14 08:54:34 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-05-14 08:54:34 +0000 |
commit | 9859b7a89c9e169edd7599b3a4606940df3c5d9d (patch) | |
tree | 4bf3afc8c2266dd23e860ec7fa063a373cfd59b4 | |
parent | e46ca9aa7ac7fb0d486b2bdca760e288f76b160e (diff) | |
download | FreeBSD-src-9859b7a89c9e169edd7599b3a4606940df3c5d9d.zip FreeBSD-src-9859b7a89c9e169edd7599b3a4606940df3c5d9d.tar.gz |
Revert parts of r299575 in order to make more MIPS kernels build
again hopefully.
Rather than blindly removing a supposedly unused variable as reported by
the Clang Static Analyzer, inspect the code and hide them with proper
#ifdefs as they are used in certain conditional parts of the code.
-rw-r--r-- | sys/net80211/ieee80211_output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 65fe126..dfde06a 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -121,6 +121,9 @@ ieee80211_vap_pkt_send_dest(struct ieee80211vap *vap, struct mbuf *m, { struct ieee80211com *ic = vap->iv_ic; struct ifnet *ifp = vap->iv_ifp; +#ifdef IEEE80211_SUPPORT_SUPERG + int mcast; +#endif if ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) && (m->m_flags & M_PWR_SAV) == 0) { @@ -160,6 +163,9 @@ ieee80211_vap_pkt_send_dest(struct ieee80211vap *vap, struct mbuf *m, * interface it (might have been) received on. */ m->m_pkthdr.rcvif = (void *)ni; +#ifdef IEEE80211_SUPPORT_SUPERG + mcast = (m->m_flags & (M_MCAST | M_BCAST)) ? 1: 0; +#endif BPF_MTAP(ifp, m); /* 802.3 tx */ |