diff options
Diffstat (limited to 'net/mac80211/iface.c')
-rw-r--r-- | net/mac80211/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 8e0e3303ca8c..5d5a029228be 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -443,6 +443,7 @@ static int ieee80211_stop(struct net_device *dev) | |||
443 | WLAN_REASON_DEAUTH_LEAVING); | 443 | WLAN_REASON_DEAUTH_LEAVING); |
444 | 444 | ||
445 | memset(sdata->u.sta.bssid, 0, ETH_ALEN); | 445 | memset(sdata->u.sta.bssid, 0, ETH_ALEN); |
446 | del_timer_sync(&sdata->u.sta.chswitch_timer); | ||
446 | del_timer_sync(&sdata->u.sta.timer); | 447 | del_timer_sync(&sdata->u.sta.timer); |
447 | /* | 448 | /* |
448 | * If the timer fired while we waited for it, it will have | 449 | * If the timer fired while we waited for it, it will have |
@@ -452,6 +453,7 @@ static int ieee80211_stop(struct net_device *dev) | |||
452 | * it no longer is. | 453 | * it no longer is. |
453 | */ | 454 | */ |
454 | cancel_work_sync(&sdata->u.sta.work); | 455 | cancel_work_sync(&sdata->u.sta.work); |
456 | cancel_work_sync(&sdata->u.sta.chswitch_work); | ||
455 | /* | 457 | /* |
456 | * When we get here, the interface is marked down. | 458 | * When we get here, the interface is marked down. |
457 | * Call synchronize_rcu() to wait for the RX path | 459 | * Call synchronize_rcu() to wait for the RX path |