308-ath9k-Disable-beacon-tasklet-during-reset.patch 845 B

1234567891011121314151617181920212223242526272829
  1. From: Sujith Manoharan <[email protected]>
  2. Date: Fri, 17 Oct 2014 07:40:13 +0530
  3. Subject: [PATCH] ath9k: Disable beacon tasklet during reset
  4. When a chip reset is done, all running timers,
  5. tasklets etc. are stopped but the beacon tasklet
  6. is left running. Fix this.
  7. Signed-off-by: Sujith Manoharan <[email protected]>
  8. ---
  9. --- a/drivers/net/wireless/ath/ath9k/main.c
  10. +++ b/drivers/net/wireless/ath/ath9k/main.c
  11. @@ -281,6 +281,7 @@ static int ath_reset_internal(struct ath
  12. __ath_cancel_work(sc);
  13. tasklet_disable(&sc->intr_tq);
  14. + tasklet_disable(&sc->bcon_tasklet);
  15. spin_lock_bh(&sc->sc_pcu_lock);
  16. if (!sc->cur_chan->offchannel) {
  17. @@ -326,6 +327,7 @@ static int ath_reset_internal(struct ath
  18. out:
  19. spin_unlock_bh(&sc->sc_pcu_lock);
  20. + tasklet_enable(&sc->bcon_tasklet);
  21. tasklet_enable(&sc->intr_tq);
  22. return r;