diff options
-rw-r--r-- | net/mac80211/ieee80211.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index e0ee65a969bc..8f11c97f13d2 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -334,6 +334,11 @@ static int ieee80211_stop(struct net_device *dev) | |||
334 | cancel_delayed_work(&local->scan_work); | 334 | cancel_delayed_work(&local->scan_work); |
335 | } | 335 | } |
336 | flush_workqueue(local->hw.workqueue); | 336 | flush_workqueue(local->hw.workqueue); |
337 | |||
338 | sdata->u.sta.flags &= ~IEEE80211_STA_PRIVACY_INVOKED; | ||
339 | kfree(sdata->u.sta.extra_ie); | ||
340 | sdata->u.sta.extra_ie = NULL; | ||
341 | sdata->u.sta.extra_ie_len = 0; | ||
337 | /* fall through */ | 342 | /* fall through */ |
338 | default: | 343 | default: |
339 | conf.if_id = dev->ifindex; | 344 | conf.if_id = dev->ifindex; |