]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ath9k_htc: set probe request rx filter
authorRajkumar Manoharan <rmanoharan@atheros.com>
Thu, 14 Oct 2010 05:20:26 +0000 (10:50 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Oct 2010 19:57:33 +0000 (15:57 -0400)
This patch enables to receive probe request frames on p2p
client mode.

Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

index f12591f5d02aa4e7bb792ee944b6932355f9e1e2..55c80866dfc6dcbbcd9af6d1ee06e237b7733aa8 100644 (file)
@@ -1454,6 +1454,7 @@ out:
        FIF_PSPOLL |                            \
        FIF_OTHER_BSS |                         \
        FIF_BCN_PRBRESP_PROMISC |               \
+       FIF_PROBE_REQ |                         \
        FIF_FCSFAIL)
 
 static void ath9k_htc_configure_filter(struct ieee80211_hw *hw,
index c99600aff76d463f9caa531a1d64b1e4504c12a7..3d19b5bc937f9c1c285e23645fcbf6a929037b21 100644 (file)
@@ -369,8 +369,7 @@ u32 ath9k_htc_calcrxfilter(struct ath9k_htc_priv *priv)
                | ATH9K_RX_FILTER_UCAST | ATH9K_RX_FILTER_BCAST
                | ATH9K_RX_FILTER_MCAST;
 
-       /* If not a STA, enable processing of Probe Requests */
-       if (ah->opmode != NL80211_IFTYPE_STATION)
+       if (priv->rxfilter & FIF_PROBE_REQ)
                rfilt |= ATH9K_RX_FILTER_PROBEREQ;
 
        /*