mac80211: don't reorder frames with SN smaller than SSN
authorSara Sharon <sara.sharon@intel.com>
Mon, 6 Feb 2017 13:28:42 +0000 (15:28 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Feb 2017 13:00:26 +0000 (14:00 +0100)
commitb7540d8f25c8034de7e4163fc23ac457bf057731
tree1b54f82ea1459a2f79697992034269d4ec91f812
parenta9e9200d8661c1a0be8c39f93deb383dc940de35
mac80211: don't reorder frames with SN smaller than SSN

When RX aggregation starts, transmitter may continue send frames
with SN smaller than SSN until the AddBA response is received.
However, the reorder buffer is already initialized at this point,
which will cause the drop of such frames as duplicates since the
head SN of the reorder buffer is set to the SSN, which is bigger.

Cc: stable@vger.kernel.org
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c
net/mac80211/rx.c
net/mac80211/sta_info.h