Skip to content

Commit

Permalink
ath9k: set ATH_OP_INVALID before disabling hardware
Browse files Browse the repository at this point in the history
Closes another small IRQ handler race

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and linvjw committed Dec 1, 2014
1 parent 56bdbe0 commit ef739ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,9 @@ static void ath9k_stop(struct ieee80211_hw *hw)
&sc->cur_chan->chandef);

ath9k_hw_reset(ah, ah->curchan, ah->caldata, false);

set_bit(ATH_OP_INVALID, &common->op_flags);

ath9k_hw_phy_disable(ah);

ath9k_hw_configpcipowersave(ah, true);
Expand All @@ -895,7 +898,6 @@ static void ath9k_stop(struct ieee80211_hw *hw)

ath9k_ps_restore(sc);

set_bit(ATH_OP_INVALID, &common->op_flags);
sc->ps_idle = prev_idle;

mutex_unlock(&sc->mutex);
Expand Down

0 comments on commit ef739ab

Please sign in to comment.