rename -brcm-2.4 preinit files to -brcm, as they're shared with brcm47xx
[openwrt-10.03/.git] / package / mac80211 / patches / 590-ath9k_init_fix.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -823,12 +823,11 @@ static void ath9k_hw_init_mode_gain_regs
4         }
5  }
6  
7 -static void ath9k_hw_init_11a_eeprom_fix(struct ath_hw *ah)
8 +static void ath9k_hw_init_eeprom_fix(struct ath_hw *ah)
9  {
10         u32 i, j;
11  
12 -       if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
13 -           test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) {
14 +       if (ah->hw_version.devid == AR9280_DEVID_PCI) {
15  
16                 /* EEPROM Fixup */
17                 for (i = 0; i < ah->iniModes.ia_rows; i++) {
18 @@ -948,7 +947,7 @@ int ath9k_hw_init(struct ath_hw *ah)
19         if (r)
20                 return r;
21  
22 -       ath9k_hw_init_11a_eeprom_fix(ah);
23 +       ath9k_hw_init_eeprom_fix(ah);
24  
25         r = ath9k_hw_init_macaddr(ah);
26         if (r) {