diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2010-10-13 10:29:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-13 15:45:23 -0400 |
commit | 9c1d8e4affe6748d884a677cf5db19ae0c20ef07 (patch) | |
tree | eeab7313bdf7690a327478725ccc242cc7a6437a /drivers/net/wireless/ath | |
parent | 7be5086d4cb7cceb71d724a9524d5e927785d04f (diff) |
ath9k: Set RX filter for Probe Request based on filter flag
This allows mac80211 to enable receiving of Probe Request frames in
station mode which is needed for P2P.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 865649120075..bcd3892dca8d 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1739,6 +1739,7 @@ skip_chan_change: | |||
1739 | FIF_PSPOLL | \ | 1739 | FIF_PSPOLL | \ |
1740 | FIF_OTHER_BSS | \ | 1740 | FIF_OTHER_BSS | \ |
1741 | FIF_BCN_PRBRESP_PROMISC | \ | 1741 | FIF_BCN_PRBRESP_PROMISC | \ |
1742 | FIF_PROBE_REQ | \ | ||
1742 | FIF_FCSFAIL) | 1743 | FIF_FCSFAIL) |
1743 | 1744 | ||
1744 | /* FIXME: sc->sc_full_reset ? */ | 1745 | /* FIXME: sc->sc_full_reset ? */ |
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 9c166f3804ab..7c90eaf9ec55 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c | |||
@@ -430,8 +430,7 @@ u32 ath_calcrxfilter(struct ath_softc *sc) | |||
430 | | ATH9K_RX_FILTER_UCAST | ATH9K_RX_FILTER_BCAST | 430 | | ATH9K_RX_FILTER_UCAST | ATH9K_RX_FILTER_BCAST |
431 | | ATH9K_RX_FILTER_MCAST; | 431 | | ATH9K_RX_FILTER_MCAST; |
432 | 432 | ||
433 | /* If not a STA, enable processing of Probe Requests */ | 433 | if (sc->rx.rxfilter & FIF_PROBE_REQ) |
434 | if (sc->sc_ah->opmode != NL80211_IFTYPE_STATION) | ||
435 | rfilt |= ATH9K_RX_FILTER_PROBEREQ; | 434 | rfilt |= ATH9K_RX_FILTER_PROBEREQ; |
436 | 435 | ||
437 | /* | 436 | /* |