ath9k_hw: fix setting the hardware diversity flag
authorFelix Fietkau <nbd@openwrt.org>
Thu, 15 Sep 2011 12:25:37 +0000 (14:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Sep 2011 19:58:25 +0000 (15:58 -0400)
commitbf3f204b92c48c4afa3e827dfe98353560d9aa7f
tree2b8c37bf9d5f055be8fdf4c10868d14371e4e76a
parentd7084da0ceeddb9caf84de20cf687bb4a9b842b1
ath9k_hw: fix setting the hardware diversity flag

ath9k_hw_set_diversity is only called from init.c where it cannot affect
the hardware setting because it's cleared on the next reset.
Instead of using a PHY op for something that's supposed to be initialized
statically, set the register value directly in the INI override function.

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