310-ath9k-set-ATH_OP_INVALID-before-disabling-hardware.patch 792 B

1234567891011121314151617181920212223242526272829
  1. From: Felix Fietkau <[email protected]>
  2. Date: Thu, 13 Nov 2014 18:29:00 +0100
  3. Subject: [PATCH] ath9k: set ATH_OP_INVALID before disabling hardware
  4. Closes another small IRQ handler race
  5. Signed-off-by: Felix Fietkau <[email protected]>
  6. ---
  7. --- a/drivers/net/wireless/ath/ath9k/main.c
  8. +++ b/drivers/net/wireless/ath/ath9k/main.c
  9. @@ -885,6 +885,9 @@ static void ath9k_stop(struct ieee80211_
  10. &sc->cur_chan->chandef);
  11. ath9k_hw_reset(ah, ah->curchan, ah->caldata, false);
  12. +
  13. + set_bit(ATH_OP_INVALID, &common->op_flags);
  14. +
  15. ath9k_hw_phy_disable(ah);
  16. ath9k_hw_configpcipowersave(ah, true);
  17. @@ -893,7 +896,6 @@ static void ath9k_stop(struct ieee80211_
  18. ath9k_ps_restore(sc);
  19. - set_bit(ATH_OP_INVALID, &common->op_flags);
  20. sc->ps_idle = prev_idle;
  21. mutex_unlock(&sc->mutex);