mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Add in the hardware PS-POLL frame reception setting, but leave it disabled
by default. Adventourous souls with an AR9220/AR9280 or later and who have a device that sends PS-POLL frames may wish to try tinkering with this option and get back to me.
This commit is contained in:
parent
1f4ec5a3ba
commit
f378d4c804
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220029
@ -1927,6 +1927,19 @@ ath_calcrxfilter(struct ath_softc *sc)
|
||||
if (ic->ic_opmode == IEEE80211_M_HOSTAP &&
|
||||
IEEE80211_IS_CHAN_ANYG(ic->ic_curchan))
|
||||
rfilt |= HAL_RX_FILTER_BEACON;
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* Enable hardware PS-POLL only for hostap mode;
|
||||
* STA mode sends PS-POLL frames but never
|
||||
* sends them.
|
||||
*/
|
||||
if (ath_hal_getcapability(ah, HAL_CAP_HAS_PSPOLL,
|
||||
0, NULL) == HAL_OK &&
|
||||
ic->ic_opmode == IEEE80211_M_HOSTAP)
|
||||
rfilt |= HAL_RX_FILTER_PSPOLL;
|
||||
#endif
|
||||
|
||||
if (sc->sc_nmeshvaps) {
|
||||
rfilt |= HAL_RX_FILTER_BEACON;
|
||||
if (sc->sc_hasbmatch)
|
||||
@ -1936,8 +1949,14 @@ ath_calcrxfilter(struct ath_softc *sc)
|
||||
}
|
||||
if (ic->ic_opmode == IEEE80211_M_MONITOR)
|
||||
rfilt |= HAL_RX_FILTER_CONTROL;
|
||||
|
||||
/*
|
||||
* Enable RX of compressed BAR frames only when doing
|
||||
* 802.11n. Required for A-MPDU.
|
||||
*/
|
||||
if (IEEE80211_IS_CHAN_HT(ic->ic_curchan))
|
||||
rfilt |= HAL_RX_FILTER_COMPBAR;
|
||||
|
||||
DPRINTF(sc, ATH_DEBUG_MODE, "%s: RX filter 0x%x, %s if_flags 0x%x\n",
|
||||
__func__, rfilt, ieee80211_opmode_name[ic->ic_opmode], ifp->if_flags);
|
||||
return rfilt;
|
||||
|
Loading…
Reference in New Issue
Block a user