Skip to content

Commit

Permalink
mac80211: A-MPDU Rx stop aggregation on proper dev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ron Rindjunsky authored and David S. Miller committed Jan 28, 2008
1 parent 0f7054e commit 5b3d71d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions net/mac80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5b3d71d

Please sign in to comment.