PERFORCE change 137925 for review
Sam Leffler
sam at FreeBSD.org
Mon Mar 17 16:52:04 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=137925
Change 137925 by sam at sam_ebb on 2008/03/17 16:51:16
enable beacon rx when on 11g channels so we can detect overlapping bss
Affected files ...
.. //depot/projects/vap/sys/dev/ath/if_ath.c#46 edit
Differences ...
==== //depot/projects/vap/sys/dev/ath/if_ath.c#46 (text+ko) ====
@@ -2463,9 +2463,12 @@
* node table entries for peers,
* - when scanning
* - when doing s/w beacon miss (e.g. for ap+sta)
+ * - when operatin in ap mode in 11g to detect overlapping bss that
+ * require protection
* o accept control frames:
* - when in monitor mode
* XXX BAR frames for 11n
+ * XXX HT protection for 11n
*/
static u_int32_t
ath_calcrxfilter(struct ath_softc *sc)
@@ -2493,6 +2496,14 @@
sc->sc_opmode == HAL_M_IBSS ||
sc->sc_swbmiss || sc->sc_scanning)
rfilt |= HAL_RX_FILTER_BEACON;
+ /*
+ * NB: We don't recalculate the rx filter when
+ * ic_protmode changes; otherwise we could do
+ * this only when ic_protmode != NONE.
+ */
+ if (ic->ic_opmode == IEEE80211_M_HOSTAP &&
+ IEEE80211_IS_CHAN_ANYG(ic->ic_curchan))
+ rfilt |= HAL_RX_FILTER_BEACON;
if (ic->ic_opmode == IEEE80211_M_MONITOR)
rfilt |= HAL_RX_FILTER_CONTROL;
return rfilt;
More information about the p4-projects
mailing list