diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2010-04-15 17:39:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-16 15:43:48 -0400 |
commit | afe754d66fbde0a0c07d954d5f1ad36d10136c72 (patch) | |
tree | 06d00f1ed0178ec10ab3e27ddd2e6ecf6cd16333 /drivers | |
parent | b0a3344834fcaf30e472ccc661c8842281453402 (diff) |
ath9k: Enable TXOK and TXERR interrupts for TX EDMA
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 90e629f276f..cac178a6bd9 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -886,11 +886,16 @@ struct ath_txq *ath_txq_setup(struct ath_softc *sc, int qtype, int subtype) | |||
886 | * The UAPSD queue is an exception, since we take a desc- | 886 | * The UAPSD queue is an exception, since we take a desc- |
887 | * based intr on the EOSP frames. | 887 | * based intr on the EOSP frames. |
888 | */ | 888 | */ |
889 | if (qtype == ATH9K_TX_QUEUE_UAPSD) | 889 | if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) { |
890 | qi.tqi_qflags = TXQ_FLAG_TXDESCINT_ENABLE; | 890 | qi.tqi_qflags = TXQ_FLAG_TXOKINT_ENABLE | |
891 | else | 891 | TXQ_FLAG_TXERRINT_ENABLE; |
892 | qi.tqi_qflags = TXQ_FLAG_TXEOLINT_ENABLE | | 892 | } else { |
893 | TXQ_FLAG_TXDESCINT_ENABLE; | 893 | if (qtype == ATH9K_TX_QUEUE_UAPSD) |
894 | qi.tqi_qflags = TXQ_FLAG_TXDESCINT_ENABLE; | ||
895 | else | ||
896 | qi.tqi_qflags = TXQ_FLAG_TXEOLINT_ENABLE | | ||
897 | TXQ_FLAG_TXDESCINT_ENABLE; | ||
898 | } | ||
894 | qnum = ath9k_hw_setuptxqueue(ah, qtype, &qi); | 899 | qnum = ath9k_hw_setuptxqueue(ah, qtype, &qi); |
895 | if (qnum == -1) { | 900 | if (qnum == -1) { |
896 | /* | 901 | /* |