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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 02:02:47 +0000 (10:02 +0800)
commit42e7f3771429d40b5307f0db0ecdba61e79272ac
tree0019242e52a175349486a3d2305c9ef49190070f
parentb116db0da1bd97ce405c19b304955d54f650eea9
mac80211: don't reorder frames with SN smaller than SSN

commit b7540d8f25c8034de7e4163fc23ac457bf057731 upstream.

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.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/agg-rx.c
net/mac80211/rx.c
net/mac80211/sta_info.h