summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/mac.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-04-15 17:39:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:49 -0400
commit9b9cc61c46822ced22bc09d9aaa9f0f1859719cb (patch)
tree851d88bdcb44ef026a69cd72b7457e71104db76b /drivers/net/wireless/ath/ath9k/mac.c
parentafe754d66fbde0a0c07d954d5f1ad36d10136c72 (diff)
downloadlinux-3.10-9b9cc61c46822ced22bc09d9aaa9f0f1859719cb.tar.gz
linux-3.10-9b9cc61c46822ced22bc09d9aaa9f0f1859719cb.tar.bz2
linux-3.10-9b9cc61c46822ced22bc09d9aaa9f0f1859719cb.zip
ath9k_hw: Abort rx if hw is not coming out of full sleep in reset
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index c003baf2e93..b54e857c031 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -747,6 +747,14 @@ void ath9k_hw_stoppcurecv(struct ath_hw *ah)
}
EXPORT_SYMBOL(ath9k_hw_stoppcurecv);
+void ath9k_hw_abortpcurecv(struct ath_hw *ah)
+{
+ REG_SET_BIT(ah, AR_DIAG_SW, AR_DIAG_RX_ABORT | AR_DIAG_RX_DIS);
+
+ ath9k_hw_disable_mib_counters(ah);
+}
+EXPORT_SYMBOL(ath9k_hw_abortpcurecv);
+
bool ath9k_hw_stopdmarecv(struct ath_hw *ah)
{
#define AH_RX_STOP_DMA_TIMEOUT 10000 /* usec */