aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/xmit.c
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-08-07 01:22:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-07 09:49:43 -0400
commit60b67f519213cf6d59236d065b0953962b56abca (patch)
tree3af58f097b3899aea9b525c563626930c4cab4b4 /drivers/net/wireless/ath9k/xmit.c
parentb08cbcd4546445740c2a04291204b56f8baf7be2 (diff)
ath9k: Cleanup data structures related to HW capabilities
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/xmit.c')
-rw-r--r--drivers/net/wireless/ath9k/xmit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/xmit.c b/drivers/net/wireless/ath9k/xmit.c
index f0297ee5d053..92bb3c22e7c2 100644
--- a/drivers/net/wireless/ath9k/xmit.c
+++ b/drivers/net/wireless/ath9k/xmit.c
@@ -781,7 +781,7 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf)
781 * let rate series flags determine which rates will actually 781 * let rate series flags determine which rates will actually
782 * use RTS. 782 * use RTS.
783 */ 783 */
784 if (ah->ah_caps.halHTSupport && bf->bf_isdata) { 784 if ((ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT) && bf->bf_isdata) {
785 BUG_ON(!an); 785 BUG_ON(!an);
786 /* 786 /*
787 * 802.11g protection not needed, use our default behavior 787 * 802.11g protection not needed, use our default behavior
@@ -897,7 +897,7 @@ static void ath_buf_set_rate(struct ath_softc *sc, struct ath_buf *bf)
897 * For non-HT devices, calculate RTS/CTS duration in software 897 * For non-HT devices, calculate RTS/CTS duration in software
898 * and disable multi-rate retry. 898 * and disable multi-rate retry.
899 */ 899 */
900 if (flags && !ah->ah_caps.halHTSupport) { 900 if (flags && !(ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)) {
901 /* 901 /*
902 * Compute the transmit duration based on the frame 902 * Compute the transmit duration based on the frame
903 * size and the size of an ACK frame. We call into the 903 * size and the size of an ACK frame. We call into the