Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2016 08:54:34 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299737 - head/sys/net80211
Message-ID:  <201605140854.u4E8sYPJ019248@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat May 14 08:54:34 2016
New Revision: 299737
URL: https://svnweb.freebsd.org/changeset/base/299737

Log:
  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.

Modified:
  head/sys/net80211/ieee80211_output.c

Modified: head/sys/net80211/ieee80211_output.c
==============================================================================
--- head/sys/net80211/ieee80211_output.c	Sat May 14 08:52:37 2016	(r299736)
+++ head/sys/net80211/ieee80211_output.c	Sat May 14 08:54:34 2016	(r299737)
@@ -121,6 +121,9 @@ ieee80211_vap_pkt_send_dest(struct ieee8
 {
 	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 ieee8
 	 * 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 */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605140854.u4E8sYPJ019248>