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

ath9k: Update rate control for 11NA HT40 mode

Now the lowest rate in 11na ht40 mode is 13.5Mbps this shortens the
range when compared to 11na ht20 mode where the lowest rate is 6.5Mbps.
To improve the range, make 6.5Mbps as the lowest rate in 11na ht40 mode,
this improves the range by approximately 2dB. 11ng ht40 does not have
this issue as it also has basic rates (1, 2, 5.5 and 11).

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Vasanthakumar Thiagarajan and committed by
John W. Linville
42e88560 df7fc0f9

+1 -3
+1 -3
drivers/net/wireless/ath/ath9k/rc.c
··· 44 44 { VALID, VALID, WLAN_RC_PHY_OFDM, 54000, /* 54 Mb */ 45 45 29300, 0x0c, 0x00, 108, 46 46 4, 7, 7, 7, 7, 0 }, 47 - { VALID_20, VALID_20, WLAN_RC_PHY_HT_20_SS, 6500, /* 6.5 Mb */ 47 + { VALID_2040, VALID_2040, WLAN_RC_PHY_HT_20_SS, 6500, /* 6.5 Mb */ 48 48 6400, 0x80, 0x00, 0, 49 49 0, 8, 24, 8, 24, 3216 }, 50 50 { VALID_20, VALID_20, WLAN_RC_PHY_HT_20_SS, 13000, /* 13 Mb */ ··· 462 462 return 0; 463 463 if (!ignore_cw && WLAN_RC_PHY_HT(phy)) 464 464 if (WLAN_RC_PHY_40(phy) && !(capflag & WLAN_RC_40_FLAG)) 465 - return 0; 466 - if (!WLAN_RC_PHY_40(phy) && (capflag & WLAN_RC_40_FLAG)) 467 465 return 0; 468 466 return 1; 469 467 }