]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:31 +0000 (13:00 -0800)
commit21a8b8fadc86ade05ffa216591c5f539ed55431f
treee527cff1d7c6e95a2a138c232013b55a050d065a
parent914c44dfdd287dc9eebfdbdb627c2b9cbc816b37
ath9k: fix max phy rate at rate control init

commit 10636bc2d60942254bda149827b922c41f4cb4af upstream.

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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/ath/ath9k/rc.c