From: Johannes Berg Date: Fri, 15 Feb 2013 10:47:50 +0000 (+0100) Subject: mac80211: fix harmless station flush warning X-Git-Tag: accepted/tizen/common/20141203.182822~2684^2~28^2^2~26^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=572078be54856bf751af9a43d501ffb8d09b1ea7;p=platform%2Fkernel%2Flinux-arm64.git mac80211: fix harmless station flush warning If an interface is set down while authenticating or associating, there's a station entry that will be removed by the flushing in do_stop() and that will cause a warning. It's otherwise harmless, but avoid the warning by calling ieee80211_mgd_stop() first. Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index a1f7194..2c059e5 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -696,6 +696,9 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, ieee80211_roc_purge(sdata); + if (sdata->vif.type == NL80211_IFTYPE_STATION) + ieee80211_mgd_stop(sdata); + /* * Remove all stations associated with this interface. * @@ -783,8 +786,6 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, } } spin_unlock_irqrestore(&ps->bc_buf.lock, flags); - } else if (sdata->vif.type == NL80211_IFTYPE_STATION) { - ieee80211_mgd_stop(sdata); } if (going_down)