]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: optimize/fix ANI RSSI processing
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Oct 2010 18:03:31 +0000 (20:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Nov 2010 21:13:24 +0000 (16:13 -0500)
commitf5556747928dcc6ec52ed0caf793d4375670c6e2
tree884ce215ce933b8f6266f92b3e51162a9dc30631
parent0ed05506cac271cc20329e4b1fa299a4e0e9db74
ath9k: optimize/fix ANI RSSI processing

ANI needs the RSSI average only in station mode, and only for tracking
the signal strength of beacons of the AP that it is connected to.
Adjust the code to track on the beacon RSSI, and store the average of that
in the ath_wiphy struct.
With these changes, we can get rid of this extra station lookup in the
rx path, which saves precious CPU cycles.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/recv.c
drivers/net/wireless/ath/ath9k/virtual.c