aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/pcu.c
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-04-12 16:38:47 +0900
committerJohn W. Linville <linville@tuxdriver.com>2010-04-14 14:52:41 -0400
commit0edc9a6709d8e7d4f26c7f2a4b5ebdb641f8dfa0 (patch)
tree4734a45d2c748652087250596d048828c02b8f60 /drivers/net/wireless/ath/ath5k/pcu.c
parentcc78e904bd960196233e2cd6a49068bba8787527 (diff)
downloadkernel_samsung_smdk4412-0edc9a6709d8e7d4f26c7f2a4b5ebdb641f8dfa0.zip
kernel_samsung_smdk4412-0edc9a6709d8e7d4f26c7f2a4b5ebdb641f8dfa0.tar.gz
kernel_samsung_smdk4412-0edc9a6709d8e7d4f26c7f2a4b5ebdb641f8dfa0.tar.bz2
ath5k: Use high bitrates for ACK/CTS
There was a confusion in the usage of the bits AR5K_STA_ID1_ACKCTS_6MB and AR5K_STA_ID1_BASE_RATE_11B. If they are set (1), we will get lower bitrates for ACK and CTS. Therefore ath5k_hw_set_ack_bitrate_high(ah, false) actually resulted in high bitrates, which i think is what we want anyways. Cleared the confusion and added some documentation. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/pcu.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/pcu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c
index 710870e..174412f 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -154,9 +154,9 @@ void ath5k_hw_set_ack_bitrate_high(struct ath5k_hw *ah, bool high)
else {
u32 val = AR5K_STA_ID1_BASE_RATE_11B | AR5K_STA_ID1_ACKCTS_6MB;
if (high)
- AR5K_REG_ENABLE_BITS(ah, AR5K_STA_ID1, val);
- else
AR5K_REG_DISABLE_BITS(ah, AR5K_STA_ID1, val);
+ else
+ AR5K_REG_ENABLE_BITS(ah, AR5K_STA_ID1, val);
}
}