Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2008 23:43:08 +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: r184278 - head/sys/net80211
Message-ID:  <200810252343.m9PNh8gu060715@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



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