From: Ron Rindjunsky Date: Sun, 13 Jan 2008 16:21:58 +0000 (+0200) Subject: mac80211: A-MPDU Rx stop aggregation on proper dev X-Git-Tag: v2.6.25-rc1~1162^2~109 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=5b3d71d90ec554a2b145db7fcb245e64bf28dda7;p=~andy%2Flinux 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 Acked-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 17704021823..5dcc2d61551 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c @@ -299,9 +299,11 @@ static int ieee80211_stop(struct net_device *dev) sdata = IEEE80211_DEV_TO_SUB_IF(dev); list_for_each_entry(sta, &local->sta_list, list) { - for (i = 0; i < STA_TID_NUM; i++) - ieee80211_sta_stop_rx_ba_session(sta->dev, sta->addr, - i, WLAN_BACK_RECIPIENT, + if (sta->dev == dev) + for (i = 0; i < STA_TID_NUM; i++) + ieee80211_sta_stop_rx_ba_session(sta->dev, + sta->addr, i, + WLAN_BACK_RECIPIENT, WLAN_REASON_QSTA_LEAVE_QBSS); }