diff options
author | Ron Rindjunsky <ron.rindjunsky@intel.com> | 2008-01-13 11:21:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:09 -0500 |
commit | 5b3d71d90ec554a2b145db7fcb245e64bf28dda7 (patch) | |
tree | 66e42f78b2a8e865cdd089fd6040c49d789ec481 /net | |
parent | 0f7054e32fab251af5cab116da0ef6624a1a0c8b (diff) |
mac80211: A-MPDU Rx stop aggregation on proper dev
This patch adds a check to insure that Rx A-MPDU will be stopped only
for the proper device.
Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/ieee80211.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 177040218232..5dcc2d61551f 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -299,9 +299,11 @@ static int ieee80211_stop(struct net_device *dev) | |||
299 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 299 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
300 | 300 | ||
301 | list_for_each_entry(sta, &local->sta_list, list) { | 301 | list_for_each_entry(sta, &local->sta_list, list) { |
302 | for (i = 0; i < STA_TID_NUM; i++) | 302 | if (sta->dev == dev) |
303 | ieee80211_sta_stop_rx_ba_session(sta->dev, sta->addr, | 303 | for (i = 0; i < STA_TID_NUM; i++) |
304 | i, WLAN_BACK_RECIPIENT, | 304 | ieee80211_sta_stop_rx_ba_session(sta->dev, |
305 | sta->addr, i, | ||
306 | WLAN_BACK_RECIPIENT, | ||
305 | WLAN_REASON_QSTA_LEAVE_QBSS); | 307 | WLAN_REASON_QSTA_LEAVE_QBSS); |
306 | } | 308 | } |
307 | 309 | ||