diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-03-18 18:00:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:57 -0400 |
commit | 85249e5fab13edb89258fa6d551cd4a3a4f0d569 (patch) | |
tree | 793767bc2d889127b2713fefa440aa3928a305d6 /net/mac80211/ieee80211.c | |
parent | 7b9d44cd6b393cb1032ce201307ae87e5677bfa7 (diff) |
mac80211: tear down of block ack sessions
This patch adds a clean tear down for all block ack sessions if interface
goes down or if a deauthentication is done.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 7 |
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(); |