aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.h
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2010-04-07 01:33:33 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 15:24:12 -0400
commit2eb46d9bda44b3f85727fee6865d9b25725e6bf9 (patch)
tree570f07de7cd6ce607a38b186062d972d29a64cd5 /drivers/net/wireless/ath/ath9k/hw.h
parentf984d94c500c79048b33ab14923dfcec336d9968 (diff)
ath9k: simplify AR9220 fixup code for AR_AN_TOP2 register
Don't modify ah->iniModes, it's supposed to be constant. Instead, apply the fixup when the data is written to the registers. Change ath9k_hw_init_eeprom_fix() to only determine whether the fixup is needed. This allows similteneous support for AR9220 cards that need AR_AN_TOP2 fixup (such as Ubiquiti SR71-12) and those that don't need it (D-Link DWA-552 rev A2). Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index b02a97c72c64..f4821cf33b87 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -459,6 +459,7 @@ struct ath_hw {
459 459
460 bool sw_mgmt_crypto; 460 bool sw_mgmt_crypto;
461 bool is_pciexpress; 461 bool is_pciexpress;
462 bool need_an_top2_fixup;
462 u16 tx_trig_level; 463 u16 tx_trig_level;
463 u16 rfsilent; 464 u16 rfsilent;
464 u32 rfkill_gpio; 465 u32 rfkill_gpio;