Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sujith Manoharan and committed by
Kalle Valo
c20bbda3 23ee7c33

+5 -1
+5 -1
drivers/net/wireless/ath/ath9k/ar9003_wow.c
··· 62 62 /* set the transmit buffer */ 63 63 ctl[0] = (KAL_FRAME_LEN | (MAX_RATE_POWER << 16)); 64 64 ctl[1] = 0; 65 - ctl[3] = 0xb; /* OFDM_6M hardware value for this rate */ 66 65 ctl[4] = 0; 67 66 ctl[7] = (ah->txchainmask) << 2; 68 67 ctl[2] = 0xf << 16; /* tx_tries 0 */ 68 + 69 + if (IS_CHAN_2GHZ(ah->curchan)) 70 + ctl[3] = 0x1b; /* CCK_1M */ 71 + else 72 + ctl[3] = 0xb; /* OFDM_6M */ 69 73 70 74 for (i = 0; i < KAL_NUM_DESC_WORDS; i++) 71 75 REG_WRITE(ah, (AR_WOW_KA_DESC_WORD2 + i * 4), ctl[i]);