1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -427,11 +427,8 @@ static void ath9k_hw_init_defaults(struc
4 ah->hw_version.magic = AR5416_MAGIC;
5 ah->hw_version.subvendorid = 0;
8 if (ah->hw_version.devid == AR5416_AR9100_DEVID)
9 ah->hw_version.macVersion = AR_SREV_VERSION_9100;
10 - if (!AR_SREV_9100(ah))
11 - ah->ah_flags = AH_USE_EEPROM;
14 ah->sta_id1_defaults = AR_STA_ID1_CRPT_MIC_ENABLE;
15 --- a/drivers/net/wireless/ath/ath9k/main.c
16 +++ b/drivers/net/wireless/ath/ath9k/main.c
20 #include <linux/nl80211.h>
21 +#include <linux/ath9k_platform.h>
25 @@ -1606,6 +1607,7 @@ static int ath_init_softc(u16 devid, str
27 struct ath_hw *ah = NULL;
28 struct ath_common *common;
29 + struct ath9k_platform_data *pdata;
33 @@ -1629,6 +1631,10 @@ static int ath_init_softc(u16 devid, str
35 ah->hw_version.devid = devid;
36 ah->hw_version.subsysid = subsysid;
37 + pdata = (struct ath9k_platform_data *) sc->dev->platform_data;
39 + ah->ah_flags |= AH_USE_EEPROM;
43 common = ath9k_hw_common(ah);