mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Explicitly enable probe request frame reception when not in station mode;
this is needed for the 5212 which a separate filter bit for these frames. Submitted by: Stephane Laroche <stephane.laroche@colubris.com>
This commit is contained in:
parent
1d49585050
commit
f07a6d989f
1 changed files with 4 additions and 0 deletions
|
|
@ -899,6 +899,8 @@ ath_mode_init(struct ath_softc *sc)
|
|||
/* receive filter */
|
||||
rfilt = (ath_hal_getrxfilter(ah) & HAL_RX_FILTER_PHYERR)
|
||||
| HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
|
||||
if (ic->ic_opmode != IEEE80211_M_STA)
|
||||
rfilt |= HAL_RX_FILTER_PROBEREQ;
|
||||
if (ic->ic_opmode != IEEE80211_M_HOSTAP &&
|
||||
(ifp->if_flags & IFF_PROMISC))
|
||||
rfilt |= HAL_RX_FILTER_PROM;
|
||||
|
|
@ -2231,6 +2233,8 @@ ath_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg)
|
|||
goto bad;
|
||||
rfilt = (ath_hal_getrxfilter(ah) & HAL_RX_FILTER_PHYERR)
|
||||
| HAL_RX_FILTER_UCAST | HAL_RX_FILTER_BCAST | HAL_RX_FILTER_MCAST;
|
||||
if (ic->ic_opmode != IEEE80211_M_STA)
|
||||
rfilt |= HAL_RX_FILTER_PROBEREQ;
|
||||
if (ic->ic_opmode != IEEE80211_M_HOSTAP &&
|
||||
(ifp->if_flags & IFF_PROMISC))
|
||||
rfilt |= HAL_RX_FILTER_PROM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue