Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jul 2009 15:28:29 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r195847 - head/sys/net80211
Message-ID:  <200907241528.n6OFSTqP013893@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Fri Jul 24 15:28:29 2009
New Revision: 195847
URL: http://svn.freebsd.org/changeset/base/195847

Log:
  correct handling of IFF_PROMISC; this should not be pushed to the parent
  device except for monitor and ahdemo mode vaps
  
  Reviewed by:	rpaulo
  Approved by:	re (kensmith)

Modified:
  head/sys/net80211/ieee80211.c

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c	Fri Jul 24 15:27:02 2009	(r195846)
+++ head/sys/net80211/ieee80211.c	Fri Jul 24 15:28:29 2009	(r195847)
@@ -637,7 +637,8 @@ ieee80211_syncifflag_locked(struct ieee8
 			 * drivers don't need to special-case it
 			 */
 			if (flag == IFF_PROMISC &&
-			    vap->iv_opmode == IEEE80211_M_HOSTAP)
+			    !(vap->iv_opmode == IEEE80211_M_MONITOR ||
+			      vap->iv_opmode == IEEE80211_M_AHDEMO))
 				continue;
 			bit = 1;
 			break;



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