1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1381,10 +1381,16 @@ static bool ath9k_hw_set_reset_reg(struc
4 static bool ath9k_hw_chip_reset(struct ath_hw *ah,
5 struct ath9k_channel *chan)
7 - if (AR_SREV_9280(ah) && ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL)) {
8 - if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_POWER_ON))
10 - } else if (!ath9k_hw_set_reset_reg(ah, ATH9K_RESET_WARM))
11 + int reset_type = ATH9K_RESET_WARM;
13 + if (AR_SREV_9280(ah)) {
14 + if (ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
15 + reset_type = ATH9K_RESET_POWER_ON;
17 + reset_type = ATH9K_RESET_COLD;
20 + if (!ath9k_hw_set_reset_reg(ah, reset_type))
23 if (!ath9k_hw_setpower(ah, ATH9K_PM_AWAKE))