diff options
author | Daniel Halperin <dhalperi@cs.washington.edu> | 2011-03-25 00:01:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-03-28 21:42:02 +0200 |
commit | 499fe9a419d43410be576bcc825658997b6ce822 (patch) | |
tree | 6a47ff6d40fd98f1cb373565a620beec921451e0 | |
parent | cfg80211: fix BSS double-unlinking (continued) (diff) | |
download | linux-499fe9a419d43410be576bcc825658997b6ce822.tar.xz linux-499fe9a419d43410be576bcc825658997b6ce822.zip |
mac80211: fix aggregation frame release during timeout
Suppose the aggregation reorder buffer looks like this:
x-T-R1-y-R2,
where x and y are frames that have not been received, T is a received
frame that has timed out, and R1,R2 are received frames that have not
yet timed out. The proper behavior in this scenario is to move the
window past x (skipping it), release T and R1, and leave the window at y
until y is received or R2 times out.
As written, this code will instead leave the window at R1, because it
has not yet timed out. Fix this by exiting the reorder loop only when
the frame that has not timed out AND there are skipped frames earlier in
the current valid window.
Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 5c1930ba8ebe..aa5cc37b4921 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -612,7 +612,8 @@ static void ieee80211_sta_reorder_release(struct ieee80211_hw *hw, skipped++; continue; } - if (!time_after(jiffies, tid_agg_rx->reorder_time[j] + + if (skipped && + !time_after(jiffies, tid_agg_rx->reorder_time[j] + HT_RX_REORDER_BUF_TIMEOUT)) goto set_release_timer; |