aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2016-05-14 08:54:34 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2016-05-14 08:54:34 +0000
commit2e9090dfbefeae201fb7a753bff208b95e44ebe7 (patch)
tree4bf3afc8c2266dd23e860ec7fa063a373cfd59b4 /sys
parent20f8619da05e2775ef7b381c5df080d621fa8332 (diff)
downloadsrc-2e9090dfbefeae201fb7a753bff208b95e44ebe7.tar.gz
src-2e9090dfbefeae201fb7a753bff208b95e44ebe7.zip
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.
Notes
Notes: svn path=/head/; revision=299737
Diffstat (limited to 'sys')
-rw-r--r--sys/net80211/ieee80211_output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 65fe12693d31..dfde06a62768 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 */