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)
commitdc9705b24c499ae00a1d6b62c3572298f9f38f73
tree7a95e6a643eed922a8df99a7011e77a56b011b09
parent7503bbd20f9c8d84289ab01b70d1b3d68d01e32f
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