svn commit: r184278 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Sat Oct 25 16:43:08 PDT 2008


Author: sam
Date: Sat Oct 25 23:43:08 2008
New Revision: 184278
URL: http://svn.freebsd.org/changeset/base/184278

Log:
  honor IEEE80211_CLONE_NOBEACONS for type of vap, not just a sta mode vap

Modified:
  head/sys/net80211/ieee80211.c

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c	Sat Oct 25 23:40:48 2008	(r184277)
+++ head/sys/net80211/ieee80211.c	Sat Oct 25 23:43:08 2008	(r184278)
@@ -350,11 +350,6 @@ ieee80211_vap_setup(struct ieee80211com 
 	vap->iv_opmode = opmode;
 	vap->iv_caps |= ieee80211_opcap[opmode];
 	switch (opmode) {
-	case IEEE80211_M_STA:
-		/* auto-enable s/w beacon miss support */
-		if (flags & IEEE80211_CLONE_NOBEACONS)
-			vap->iv_flags_ext |= IEEE80211_FEXT_SWBMISS;
-		break;
 	case IEEE80211_M_WDS:
 		/*
 		 * WDS links must specify the bssid of the far end.
@@ -370,6 +365,9 @@ ieee80211_vap_setup(struct ieee80211com 
 			vap->iv_flags_ext |= IEEE80211_FEXT_WDSLEGACY;
 		break;
 	}
+	/* auto-enable s/w beacon miss support */
+	if (flags & IEEE80211_CLONE_NOBEACONS)
+		vap->iv_flags_ext |= IEEE80211_FEXT_SWBMISS;
 	/*
 	 * Enable various functionality by default if we're
 	 * capable; the driver can override us if it knows better.


More information about the svn-src-all mailing list