Browse Source

ath9k: use correct EEPROM base for AR9330

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Gabor Juhos 14 years ago
parent
commit
5b5c033b59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

+ 2 - 0
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c

@@ -3324,6 +3324,8 @@ static int ar9300_eeprom_restore_internal(struct ath_hw *ah,
 	read = ar9300_read_eeprom;
 	if (AR_SREV_9485(ah))
 		cptr = AR9300_BASE_ADDR_4K;
+	else if (AR_SREV_9330(ah))
+		cptr = AR9300_BASE_ADDR_512;
 	else
 		cptr = AR9300_BASE_ADDR;
 	ath_dbg(common, ATH_DBG_EEPROM,