From: Sujith Manoharan Date: Tue, 4 Jan 2011 07:47:05 +0000 (+0530) Subject: ath9k_hw: Fix thermal issue with UB94 X-Git-Tag: v2.6.38-rc1~50^2~26^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=69bdacc8fbac32e4dc804ab13cafe3c1bbdcba9d;p=~shefty%2Frdma-dev.git ath9k_hw: Fix thermal issue with UB94 Hardcode the output voltage of x-PA bias LDO to the lowest value for UB94. The card doesn't get too hot now. Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/eeprom_def.c b/drivers/net/wireless/ath/ath9k/eeprom_def.c index 088f141f200..749a9360866 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom_def.c +++ b/drivers/net/wireless/ath/ath9k/eeprom_def.c @@ -226,6 +226,10 @@ static int ath9k_hw_def_check_eeprom(struct ath_hw *ah) eep->baseEepHeader.pwdclkind == 0) ah->need_an_top2_fixup = 1; + if ((common->bus_ops->ath_bus_type == ATH_USB) && + (AR_SREV_9280(ah))) + eep->modalHeader[0].xpaBiasLvl = 0; + return 0; }