]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix max phy rate at rate control init
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Sat, 10 Dec 2011 13:29:43 +0000 (18:59 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Dec 2011 19:23:28 +0000 (14:23 -0500)
commit0f1492d923d3ab43dc88f2021927ac21c2894909
treef5e0797bca22b5f7cfd6f828c2277df1f3c73fd1
parent19e000672759fa89d4bb1f48796675ebcdcfe63a
ath9k: fix max phy rate at rate control init

The stations always chooses 1Mbps for all trasmitting frames,
whenever the AP is configured to lock the supported rates.
As the max phy rate is always set with the 4th from highest phy rate,
this assumption might be wrong if we have less than that. Fix that.

Cc: stable@kernel.org
Cc: Paul Stewart <pstew@google.com>
Reported-by: Ajay Gummalla <agummalla@google.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/rc.c