diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-12-14 04:27:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-12-22 13:56:14 -0500 |
commit | b6ce5c33001b1dc83e6a1a6f30c5dccccea651b6 (patch) | |
tree | 1bdc54bcfecb262af8b66715a01585c9c8742c86 /drivers | |
parent | 05c78d6d3ec5a8325398b3866e7e6bb88940d4fd (diff) |
ath9k: Fix TX poll routine
Disable the TX hang monitoring routine when doing a scan.
Monitoring for a hung situation is not really necessary during
a scan run.
Cc: stable@kernel.org
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index adb0edf2c8b0..6401b3521049 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -3121,6 +3121,7 @@ static void ath9k_sw_scan_start(struct ieee80211_hw *hw) | |||
3121 | ath9k_wiphy_pause_all_forced(sc, aphy); | 3121 | ath9k_wiphy_pause_all_forced(sc, aphy); |
3122 | sc->sc_flags |= SC_OP_SCANNING; | 3122 | sc->sc_flags |= SC_OP_SCANNING; |
3123 | del_timer_sync(&common->ani.timer); | 3123 | del_timer_sync(&common->ani.timer); |
3124 | cancel_delayed_work_sync(&sc->tx_complete_work); | ||
3124 | mutex_unlock(&sc->mutex); | 3125 | mutex_unlock(&sc->mutex); |
3125 | } | 3126 | } |
3126 | 3127 | ||
@@ -3135,6 +3136,7 @@ static void ath9k_sw_scan_complete(struct ieee80211_hw *hw) | |||
3135 | sc->sc_flags &= ~SC_OP_SCANNING; | 3136 | sc->sc_flags &= ~SC_OP_SCANNING; |
3136 | sc->sc_flags |= SC_OP_FULL_RESET; | 3137 | sc->sc_flags |= SC_OP_FULL_RESET; |
3137 | ath_start_ani(common); | 3138 | ath_start_ani(common); |
3139 | ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0); | ||
3138 | ath_beacon_config(sc, NULL); | 3140 | ath_beacon_config(sc, NULL); |
3139 | mutex_unlock(&sc->mutex); | 3141 | mutex_unlock(&sc->mutex); |
3140 | } | 3142 | } |