Skip to contentSkip to conversation

mac80211: A-MPDU Rx stop aggregation on proper dev

PATCH In review Ron Rindjunsky 2 participants 2 messages Jan 13, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
 net/mac80211/ieee80211.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
net/mac80211/ieee80211.c +5 -3
index 1770402..5dcc2d6 100644
@@ -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);
 	}
 
Signature · 1 line
1.5.3.7
maintainer Acked-by on v1 1/2
#1 lore raw
Quoted 2 lines · Ron Rindjunsky

This patch adds a check to insure that Rx A-MPDU will be stopped only for the proper device.

Thanks.

Quoted 1 line
Quoted 23 lines
---
 net/mac80211/ieee80211.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
net/mac80211/ieee80211.c +5 -3
index 1770402..5dcc2d6 100644
@@ -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);
 	}