ath9k_hw: fix and clean up PHY activation delay
authorFelix Fietkau <nbd@openwrt.org>
Thu, 19 Apr 2012 19:18:26 +0000 (21:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:35:31 +0000 (15:35 -0400)
commit7c5adc8d83c344dbad251091879baf1244007564
tree05494972ed0de7a8f9e0f634276400b597a126c2
parent3e61d3f9b2f6381f6f30d3d0ff874251a3491d05
ath9k_hw: fix and clean up PHY activation delay

The delay calculation is the same for all chips, however some parts of the
code missed the extra delay factor for half/quarter.
Clean up the code and move the delay calculation to a common place.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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