|
@@ -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)
|