aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_sta.c
diff options
context:
space:
mode:
authorRon Rindjunsky <ron.rindjunsky@intel.com>2007-12-25 10:00:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:01:00 -0500
commitb580781e038968fb2529460e8b61e3bf77de112a (patch)
tree7767e01c739010a2070c2a7534c6bd87a60b3b1b /net/mac80211/ieee80211_sta.c
parent16c5f15c73e97e22a1fcc6518da32bdcf98aec3d (diff)
mac80211: A-MPDU Rx handling aggregation reordering
This patch handles the reordering of the Rx A-MPDU. This issue occurs when the sequence of the internal MPDUs is not in the right order. such a case can be encountered for example when some MPDUs from previous aggregations were recieved, while others failed, so current A-MPDU will contain a mix of re-transmited MPDUs and new ones. Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r--net/mac80211/ieee80211_sta.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index d5a7683fab3a..f1edaa0c0da3 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -1208,7 +1208,7 @@ void ieee80211_sta_stop_rx_ba_session(struct net_device *dev, u8 *ra, u16 tid,
1208 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); 1208 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
1209 struct ieee80211_hw *hw = &local->hw; 1209 struct ieee80211_hw *hw = &local->hw;
1210 struct sta_info *sta; 1210 struct sta_info *sta;
1211 int ret; 1211 int ret, i;
1212 1212
1213 sta = sta_info_get(local, ra); 1213 sta = sta_info_get(local, ra);
1214 if (!sta) 1214 if (!sta)
@@ -1250,6 +1250,14 @@ void ieee80211_sta_stop_rx_ba_session(struct net_device *dev, u8 *ra, u16 tid,
1250 ieee80211_send_delba(dev, ra, tid, 0, reason); 1250 ieee80211_send_delba(dev, ra, tid, 0, reason);
1251 1251
1252 /* free the reordering buffer */ 1252 /* free the reordering buffer */
1253 for (i = 0; i < sta->ampdu_mlme.tid_rx[tid].buf_size; i++) {
1254 if (sta->ampdu_mlme.tid_rx[tid].reorder_buf[i]) {
1255 /* release the reordered frames */
1256 dev_kfree_skb(sta->ampdu_mlme.tid_rx[tid].reorder_buf[i]);
1257 sta->ampdu_mlme.tid_rx[tid].stored_mpdu_num--;
1258 sta->ampdu_mlme.tid_rx[tid].reorder_buf[i] = NULL;
1259 }
1260 }
1253 kfree(sta->ampdu_mlme.tid_rx[tid].reorder_buf); 1261 kfree(sta->ampdu_mlme.tid_rx[tid].reorder_buf);
1254 1262
1255 sta->ampdu_mlme.tid_rx[tid].state = HT_AGG_STATE_IDLE; 1263 sta->ampdu_mlme.tid_rx[tid].state = HT_AGG_STATE_IDLE;