summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-08-23 13:29:07 +0530
committerJohn W. Linville <linville@tuxdriver.com>2014-08-28 14:49:36 -0400
commitea22df29a300d4120e2d0a0727aa55f922374f42 (patch)
tree4392d7062f3fe3be372ef7f814ddfb83ccf06cc4 /drivers/net/wireless/ath/ath9k/main.c
parent705d0bf83dbef34d49927d3bf05c6d497f42e8b0 (diff)
downloadlwn-ea22df29a300d4120e2d0a0727aa55f922374f42.tar.gz
lwn-ea22df29a300d4120e2d0a0727aa55f922374f42.zip
ath9k: Add a routine to tear down channel contexts
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index ed281ac1b742..e5c523a812c5 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -822,7 +822,8 @@ static void ath9k_stop(struct ieee80211_hw *hw)
struct ath_common *common = ath9k_hw_common(ah);
bool prev_idle;
- cancel_work_sync(&sc->chanctx_work);
+ ath9k_deinit_channel_context(sc);
+
mutex_lock(&sc->mutex);
ath_cancel_work(sc);