diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2015-02-02 07:51:13 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-02-06 01:39:42 -0500 |
commit | c20bbda32a1f5b8293abae9bc39ad964d017afea (patch) | |
tree | 52929f0da89c271d0ed0c1a02d4f44ee2d5855a9 | |
parent | 23ee7c33aa7caae5985a919e597ba2e355d540ea (diff) |
ath9k: Choose correct rate for 2GHz channel
Set the transmit rate for the keep-alive frames
as 1M/CCK when the current channel is in the
2GHz band.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_wow.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_wow.c b/drivers/net/wireless/ath/ath9k/ar9003_wow.c index 2dc50a0eedc4..86bfc9604dca 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_wow.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_wow.c | |||
@@ -62,11 +62,15 @@ static void ath9k_wow_create_keep_alive_pattern(struct ath_hw *ah) | |||
62 | /* set the transmit buffer */ | 62 | /* set the transmit buffer */ |
63 | ctl[0] = (KAL_FRAME_LEN | (MAX_RATE_POWER << 16)); | 63 | ctl[0] = (KAL_FRAME_LEN | (MAX_RATE_POWER << 16)); |
64 | ctl[1] = 0; | 64 | ctl[1] = 0; |
65 | ctl[3] = 0xb; /* OFDM_6M hardware value for this rate */ | ||
66 | ctl[4] = 0; | 65 | ctl[4] = 0; |
67 | ctl[7] = (ah->txchainmask) << 2; | 66 | ctl[7] = (ah->txchainmask) << 2; |
68 | ctl[2] = 0xf << 16; /* tx_tries 0 */ | 67 | ctl[2] = 0xf << 16; /* tx_tries 0 */ |
69 | 68 | ||
69 | if (IS_CHAN_2GHZ(ah->curchan)) | ||
70 | ctl[3] = 0x1b; /* CCK_1M */ | ||
71 | else | ||
72 | ctl[3] = 0xb; /* OFDM_6M */ | ||
73 | |||
70 | for (i = 0; i < KAL_NUM_DESC_WORDS; i++) | 74 | for (i = 0; i < KAL_NUM_DESC_WORDS; i++) |
71 | REG_WRITE(ah, (AR_WOW_KA_DESC_WORD2 + i * 4), ctl[i]); | 75 | REG_WRITE(ah, (AR_WOW_KA_DESC_WORD2 + i * 4), ctl[i]); |
72 | 76 | ||