scan_work is never stopped if the device was unplugged during s/w scan. Signed-off-by: Rajkumar Manoharan <rmanoharan@xxxxxxxxxxx> --- net/mac80211/main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 30e6a68..d2aa0be 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -964,6 +964,8 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw) unregister_inetaddr_notifier(&local->ifa_notifier); #endif + cancel_delayed_work_sync(&local->scan_work); + rtnl_lock(); /* -- 1.7.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html