]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9aeb93f8423bfe16a9d8147583005bf96f7fd25
tree2b8c37bf9d5f055be8fdf4c10868d14371e4e76a
parente541260809aa288855cb2b4c4524a698cc7fa461
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