]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: Remove unnecessary bssinfo event header conversion
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Sep 2011 16:15:05 +0000 (19:15 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 22 Sep 2011 07:07:59 +0000 (10:07 +0300)
commit9d747d3fdaa3ac325138a073f7c9c58ce974ba7d
tree2900a4037c8fd4cd33a2097b0fb3b88ac8a5962e
parent98905d5ac111090d11ed9b5532a0d063c95ef9d5
ath6kl: Remove unnecessary bssinfo event header conversion

There is no point in unconditionally converting the bssinfo header
to the old version since only the new header is being used and the
driver can as well read the values from it when needed. Leaving out
the conversion saves some extra memory copying.

In addition, use the calculated "rssi" value snr - 95 dBm to get the
proper value in cfg80211 BSS table (i.e., something that more or less
matches with the value used in STA info).

Signed-off-by: Jouni Malinen <jouni@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