diff options
author | sam <sam@FreeBSD.org> | 2008-10-25 23:43:08 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-10-25 23:43:08 +0000 |
commit | d513eda8c8ece4d2c9fe8a449d941d6e4dc6f5e2 (patch) | |
tree | a3f84c4f452d10c040519a1197cdb30484a2196a /sys/net80211/ieee80211.c | |
parent | a55a73ae951fd3b9ed30a873fa0fb732cac6b003 (diff) | |
download | FreeBSD-src-d513eda8c8ece4d2c9fe8a449d941d6e4dc6f5e2.zip FreeBSD-src-d513eda8c8ece4d2c9fe8a449d941d6e4dc6f5e2.tar.gz |
honor IEEE80211_CLONE_NOBEACONS for type of vap, not just a sta mode vap
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r-- | sys/net80211/ieee80211.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 6a98868..cce1312 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -350,11 +350,6 @@ ieee80211_vap_setup(struct ieee80211com *ic, struct ieee80211vap *vap, 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 *ic, struct ieee80211vap *vap, 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. |