1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -1172,6 +1172,34 @@ static bool ath9k_hw_channel_change(stru
7 +bool ath9k_hw_check_alive(struct ath_hw *ah)
12 + if (AR_SREV_9285_10_OR_LATER(ah))
16 + reg = REG_READ(ah, AR_OBS_BUS_1);
18 + if ((reg & 0x7E7FFFEF) != 0x00702400)
21 + switch (reg & 0x7E000B00) {
29 + } while (count-- > 0);
33 +EXPORT_SYMBOL(ath9k_hw_check_alive);
35 int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
38 --- a/drivers/net/wireless/ath/ath9k/hw.h
39 +++ b/drivers/net/wireless/ath/ath9k/hw.h
40 @@ -869,6 +869,7 @@ void ath9k_hw_set11nmac2040(struct ath_h
41 void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period);
42 void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
43 const struct ath9k_beacon_state *bs);
44 +bool ath9k_hw_check_alive(struct ath_hw *ah);
46 bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode);
48 --- a/drivers/net/wireless/ath/ath9k/main.c
49 +++ b/drivers/net/wireless/ath/ath9k/main.c
50 @@ -406,7 +406,8 @@ void ath9k_tasklet(unsigned long data)
54 - if (status & ATH9K_INT_FATAL) {
55 + if ((status & ATH9K_INT_FATAL) ||
56 + !ath9k_hw_check_alive(ah)) {