Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 1/2] mac80211: A-MPDU Rx stop aggregation on proper dev
@ 2008-01-13 16:21 Ron Rindjunsky
  2008-01-13 21:43 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Ron Rindjunsky @ 2008-01-13 16:21 UTC (permalink / raw)
  To: linville
  Cc: johannes, linux-wireless, flamingice, tomas.winkler, yi.zhu,
	Ron Rindjunsky

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>
---
 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 1770402..5dcc2d6 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);
 	}
 
-- 
1.5.3.7


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] mac80211: A-MPDU Rx stop aggregation on proper dev
  2008-01-13 16:21 [PATCH 1/2] mac80211: A-MPDU Rx stop aggregation on proper dev Ron Rindjunsky
@ 2008-01-13 21:43 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2008-01-13 21:43 UTC (permalink / raw)
  To: Ron Rindjunsky
  Cc: linville, linux-wireless, flamingice, tomas.winkler, yi.zhu

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]


On Sun, 2008-01-13 at 18:21 +0200, Ron Rindjunsky wrote:
> This patch adds a check to insure that Rx A-MPDU will be stopped only
> for the proper device.

Thanks.

> Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com>

Acked-by: Johannes Berg <johannes@sipsolutions.net>

> ---
>  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 1770402..5dcc2d6 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);
>  	}
>  

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-13 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13 16:21 [PATCH 1/2] mac80211: A-MPDU Rx stop aggregation on proper dev Ron Rindjunsky
2008-01-13 21:43 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox