ath9k_hw: clean up ANI state handling
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Oct 2010 18:09:47 +0000 (20:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Oct 2010 20:30:39 +0000 (16:30 -0400)
commit093115b7fd641f03d89404252044c976928764cb
tree079703d4d3be2f3b59d21b7bf0bf6bdaf8130f43
parent71ea420992149294e74da3fa34ca8f111326bb6d
ath9k_hw: clean up ANI state handling

ANI state is kept per channel, so instead of keeping an array of ANI states
with an arbitrary size of 255, move the ANI state into the channel struct.

Move some config settings that are not per-channel out of
the per-channel struct to save some memory.

With those changes, ath9k_ani_restart_old and ath9k_ani_restart_new can
be merged into a single function.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ani.c
drivers/net/wireless/ath/ath9k/ani.h
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h