diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-02-20 21:20:23 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-23 16:25:28 -0500 |
commit | 4825f54a44fc7280bf02c6d48c83d7a3df864e17 (patch) | |
tree | dbf1fed88525b2350c0b6331794be171f0208c78 /drivers | |
parent | 88427c65f0f1c98729fd35b458ca402c36ff619d (diff) |
ath9k_htc: Fix RX filters
Add ATH9K_RX_FILTER_UNCOMP_BA_BAR and ATH9K_RX_FILTER_PSPOLL
when mac80211 requires it.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c index 426620a50d5e..564ac13596f1 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | |||
@@ -407,7 +407,7 @@ u32 ath9k_htc_calcrxfilter(struct ath9k_htc_priv *priv) | |||
407 | */ | 407 | */ |
408 | if (((ah->opmode != NL80211_IFTYPE_AP) && | 408 | if (((ah->opmode != NL80211_IFTYPE_AP) && |
409 | (priv->rxfilter & FIF_PROMISC_IN_BSS)) || | 409 | (priv->rxfilter & FIF_PROMISC_IN_BSS)) || |
410 | (ah->opmode == NL80211_IFTYPE_MONITOR)) | 410 | ah->is_monitoring) |
411 | rfilt |= ATH9K_RX_FILTER_PROM; | 411 | rfilt |= ATH9K_RX_FILTER_PROM; |
412 | 412 | ||
413 | if (priv->rxfilter & FIF_CONTROL) | 413 | if (priv->rxfilter & FIF_CONTROL) |
@@ -419,8 +419,13 @@ u32 ath9k_htc_calcrxfilter(struct ath9k_htc_priv *priv) | |||
419 | else | 419 | else |
420 | rfilt |= ATH9K_RX_FILTER_BEACON; | 420 | rfilt |= ATH9K_RX_FILTER_BEACON; |
421 | 421 | ||
422 | if (conf_is_ht(&priv->hw->conf)) | 422 | if (conf_is_ht(&priv->hw->conf)) { |
423 | rfilt |= ATH9K_RX_FILTER_COMP_BAR; | 423 | rfilt |= ATH9K_RX_FILTER_COMP_BAR; |
424 | rfilt |= ATH9K_RX_FILTER_UNCOMP_BA_BAR; | ||
425 | } | ||
426 | |||
427 | if (priv->rxfilter & FIF_PSPOLL) | ||
428 | rfilt |= ATH9K_RX_FILTER_PSPOLL; | ||
424 | 429 | ||
425 | return rfilt; | 430 | return rfilt; |
426 | 431 | ||