mac80211: fix start_seq_num in Rx reorder offload
authorDenton Gentry <denton.gentry@gmail.com>
Tue, 29 Jul 2014 06:36:32 +0000 (23:36 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Aug 2014 09:13:32 +0000 (11:13 +0200)
commitc7dcb45facedbff84237adb77bd3ba50f75c0de4
tree7a95e6a643eed922a8df99a7011e77a56b011b09
parent6c6fa49649dc826b7ef81314324fe55cf1d0d954
mac80211: fix start_seq_num in Rx reorder offload

sta->last_seq_ctrl is the seq_ctrl field from the last header
seen, need to shift it 4 bits to extract the sequence number.
Otherwise the ieee80211_sn_less() check at the top of
ieee80211_sta_manage_reorder_buf drops frames until the sequence
number catches up.

Cc: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Denton Gentry <denton.gentry@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c