ath9k: simplify AR9220 fixup code for AR_AN_TOP2 register
authorPavel Roskin <proski@gnu.org>
Wed, 7 Apr 2010 05:33:33 +0000 (01:33 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 8 Apr 2010 19:24:12 +0000 (15:24 -0400)
commit2eb46d9bda44b3f85727fee6865d9b25725e6bf9
tree570f07de7cd6ce607a38b186062d972d29a64cd5
parentf984d94c500c79048b33ab14923dfcec336d9968
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>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h