aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r--net/mac80211/ieee80211.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 55b63712e48c..616ce10d2a38 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -386,7 +386,6 @@ static int ieee80211_stop(struct net_device *dev)
386 struct ieee80211_local *local = sdata->local; 386 struct ieee80211_local *local = sdata->local;
387 struct ieee80211_if_init_conf conf; 387 struct ieee80211_if_init_conf conf;
388 struct sta_info *sta; 388 struct sta_info *sta;
389 int i;
390 389
391 /* 390 /*
392 * Stop TX on this interface first. 391 * Stop TX on this interface first.
@@ -400,11 +399,7 @@ static int ieee80211_stop(struct net_device *dev)
400 399
401 list_for_each_entry_rcu(sta, &local->sta_list, list) { 400 list_for_each_entry_rcu(sta, &local->sta_list, list) {
402 if (sta->sdata == sdata) 401 if (sta->sdata == sdata)
403 for (i = 0; i < STA_TID_NUM; i++) 402 ieee80211_sta_tear_down_BA_sessions(dev, sta->addr);
404 ieee80211_sta_stop_rx_ba_session(sdata->dev,
405 sta->addr, i,
406 WLAN_BACK_RECIPIENT,
407 WLAN_REASON_QSTA_LEAVE_QBSS);
408 } 403 }
409 404
410 rcu_read_unlock(); 405 rcu_read_unlock();