]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix link speed when using sgi
authorDengke Qiu <dqiu@qca.qualcomm.com>
Tue, 28 Aug 2012 07:33:42 +0000 (15:33 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 24 Oct 2012 08:49:48 +0000 (11:49 +0300)
commit0120200caf8c642374726fad2a5a648b2e40a8e9
tree65eb1b374eaaeac66d46608f501d06b769e3553f
parentdfc27de2b5e33fab4c92ee5d80104d10e1528c85
ath6kl: fix link speed when using sgi

The MSB of rate index from FW is used for sgi. But the ath6kl_wmi_get_rate
doesn't handle it. The access to wmi_rate_tbl array may be out of range
if sgi is 1. This may cause the return value of ath6kl_wmi_get_rate()
function is incorrect link rate. We add sgi adjustment to avoid such case.

kvalo: change patch title

Signed-off-by: Dengke Qiu <dqiu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.h