ath9k_htc: fix signal strength handling issues
authorFelix Fietkau <nbd@openwrt.org>
Fri, 22 Feb 2013 20:37:25 +0000 (21:37 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 27 Feb 2013 19:12:51 +0000 (14:12 -0500)
commit838f427955dcfd16858b0108ce29029da0d56a4e
treedc6f0ff8f456bac5b4d49736d5dfc8cdd641e119
parenta3d63cadbad97671d740a9698acc2c95d1ca6e79
ath9k_htc: fix signal strength handling issues

The ath9k commit 2ef167557c0a26c88162ecffb017bfcc51eb7b29
(ath9k: fix signal strength reporting issues) fixed an issue where the
reported per-frame signal strength reported to mac80211 was being
overwritten with an internal average. The same issue is also present
in ath9k_htc.
In addition to preventing the driver from overwriting the value, this
commit also ensures that the internal average (which is used for ANI)
only tracks beacons of the AP that we're connected to.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Cc: stable@vger.kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c