From 61b0f19d61d66e21d7a2b60e555ef14b54c7a5ca Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 1 Sep 2003 03:12:19 +0000 Subject: 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 --- sys/dev/ath/if_ath.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/dev/ath/if_ath.c') diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index fdb0091..9a4c4bd 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -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; -- cgit v1.1