ath9k_hw: remove code duplication in phy error counter handling
authorFelix Fietkau <nbd@openwrt.org>
Mon, 4 Oct 2010 18:09:48 +0000 (20:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Oct 2010 20:30:39 +0000 (16:30 -0400)
commitbfc472bb736bf309158ea76897d255a283d0d31c
treeda3df924032d0a3088e3abd38a449bf45446da4a
parent093115b7fd641f03d89404252044c976928764cb
ath9k_hw: remove code duplication in phy error counter handling

Split out the PHY error counter update from ath9k_hw_ani_monitor_*, reuse
it in ath9k_hw_proc_mib_event (merged from ath9k_hw_proc_mib_event_old
and ath9k_hw_proc_mib_event_new).

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/hw-ops.h
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/main.c