From: Felix Fietkau Date: Mon, 10 Dec 2012 19:02:34 +0000 (+0100) Subject: mac80211: flush AP_VLAN stations when tearing down the BSS AP X-Git-Tag: v3.8-rc4~29^2~19^2~8^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d4072a5470621c552f46d51cd54965aeb033893;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git mac80211: flush AP_VLAN stations when tearing down the BSS AP Signed-off-by: Felix Fietkau [change to flush stations with AP flush in second loop] Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 5c61677..47e0aca 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1009,6 +1009,8 @@ static int ieee80211_stop_ap(struct wiphy *wiphy, struct net_device *dev) if (old_probe_resp) kfree_rcu(old_probe_resp, rcu_head); + list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list) + sta_info_flush(local, vlan); sta_info_flush(local, sdata); ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED);