diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-04-15 17:39:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:46 -0400 |
commit | 79de23751a79a1270e45559296256ecb3dd35e12 (patch) | |
tree | f6bb6907e661eb4e131ae2b079b66eec4d14a682 /drivers/net/wireless/ath/ath9k | |
parent | a9616f417eb0e529023c44dac61420f3df39d8f7 (diff) |
ath9k_hw: enable CRC check of descriptors for AR9003
Enable CRC check on the descriptor fetched from host on AR9003
upon reseting the TX queue.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c index 05159584a544..44ea43a143d8 100644 --- a/drivers/net/wireless/ath/ath9k/mac.c +++ b/drivers/net/wireless/ath/ath9k/mac.c | |||
@@ -569,6 +569,9 @@ bool ath9k_hw_resettxqueue(struct ath_hw *ah, u32 q) | |||
569 | AR_D_MISC_POST_FR_BKOFF_DIS); | 569 | AR_D_MISC_POST_FR_BKOFF_DIS); |
570 | } | 570 | } |
571 | 571 | ||
572 | if (AR_SREV_9300_20_OR_LATER(ah)) | ||
573 | REG_WRITE(ah, AR_Q_DESC_CRCCHK, AR_Q_DESC_CRCCHK_EN); | ||
574 | |||
572 | if (qi->tqi_qflags & TXQ_FLAG_TXOKINT_ENABLE) | 575 | if (qi->tqi_qflags & TXQ_FLAG_TXOKINT_ENABLE) |
573 | ah->txok_interrupt_mask |= 1 << q; | 576 | ah->txok_interrupt_mask |= 1 << q; |
574 | else | 577 | else |
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index ff8914049c53..d4371a43bdaa 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -478,6 +478,10 @@ | |||
478 | #define AR_Q_RDYTIMESHDN 0x0a40 | 478 | #define AR_Q_RDYTIMESHDN 0x0a40 |
479 | #define AR_Q_RDYTIMESHDN_M 0x000003FF | 479 | #define AR_Q_RDYTIMESHDN_M 0x000003FF |
480 | 480 | ||
481 | /* MAC Descriptor CRC check */ | ||
482 | #define AR_Q_DESC_CRCCHK 0xa44 | ||
483 | /* Enable CRC check on the descriptor fetched from host */ | ||
484 | #define AR_Q_DESC_CRCCHK_EN 1 | ||
481 | 485 | ||
482 | #define AR_NUM_DCU 10 | 486 | #define AR_NUM_DCU 10 |
483 | #define AR_DCU_0 0x0001 | 487 | #define AR_DCU_0 0x0001 |