diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-09-03 02:38:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-08 16:31:05 -0400 |
commit | 7ea310be65bfcbc6e2395844fd3498762dc2aea6 (patch) | |
tree | 78bf6a77bfd2591429a50b0e907563884bdcc72e /drivers/net/wireless/ath/ath9k/hw.c | |
parent | fc548af877374f7e26c4f670f3843c6d29e02a98 (diff) |
ath9k: Fix RX Filter handling for BAR
BAR frames have to be sent to mac80211 only if the
current channel is HT. Also, move the macro to
enum ath9k_rx_filter.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 71f27f324cea..011b14f35e50 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -3967,7 +3967,8 @@ void ath9k_hw_setrxfilter(struct ath_hw *ah, u32 bits) | |||
3967 | { | 3967 | { |
3968 | u32 phybits; | 3968 | u32 phybits; |
3969 | 3969 | ||
3970 | REG_WRITE(ah, AR_RX_FILTER, (bits & 0xffff) | AR_RX_COMPR_BAR); | 3970 | REG_WRITE(ah, AR_RX_FILTER, bits); |
3971 | |||
3971 | phybits = 0; | 3972 | phybits = 0; |
3972 | if (bits & ATH9K_RX_FILTER_PHYRADAR) | 3973 | if (bits & ATH9K_RX_FILTER_PHYRADAR) |
3973 | phybits |= AR_PHY_ERR_RADAR; | 3974 | phybits |= AR_PHY_ERR_RADAR; |