diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2008-12-08 09:13:50 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 13:48:30 -0500 |
commit | 8aa15e1506bb0b6b643be12baf1f2d4d2f115931 (patch) | |
tree | e8ca7dbdee6b93dea74f51abfab9740b2f48eb98 /drivers/net/wireless/ath9k/mac.c | |
parent | 2df1bff4c5cd0b28e06e4defc3f5d90618db8d53 (diff) |
ath9k: avoid rx frames with corrupted descriptor.
Setting RX_ABORT/RX_DIS after MAC reset and clearing RX_ABORT/RX_DIS
after enbling RXE/RXDP to avoid rx frames with corrupted descriptor
status.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath9k/mac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/mac.c b/drivers/net/wireless/ath9k/mac.c index 5254ea49f8ac..af32d091dc38 100644 --- a/drivers/net/wireless/ath9k/mac.c +++ b/drivers/net/wireless/ath9k/mac.c | |||
@@ -916,12 +916,11 @@ void ath9k_hw_rxena(struct ath_hal *ah) | |||
916 | 916 | ||
917 | void ath9k_hw_startpcureceive(struct ath_hal *ah) | 917 | void ath9k_hw_startpcureceive(struct ath_hal *ah) |
918 | { | 918 | { |
919 | REG_CLR_BIT(ah, AR_DIAG_SW, (AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT)); | ||
920 | |||
921 | ath9k_enable_mib_counters(ah); | 919 | ath9k_enable_mib_counters(ah); |
922 | 920 | ||
923 | ath9k_ani_reset(ah); | 921 | ath9k_ani_reset(ah); |
924 | 922 | ||
923 | REG_CLR_BIT(ah, AR_DIAG_SW, (AR_DIAG_RX_DIS | AR_DIAG_RX_ABORT)); | ||
925 | } | 924 | } |
926 | 925 | ||
927 | void ath9k_hw_stoppcurecv(struct ath_hal *ah) | 926 | void ath9k_hw_stoppcurecv(struct ath_hal *ah) |