From: Denton Gentry Date: Tue, 29 Jul 2014 06:36:32 +0000 (-0700) Subject: mac80211: fix start_seq_num in Rx reorder offload X-Git-Tag: v3.17-rc7~16^2~1^2~14^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7dcb45facedbff84237adb77bd3ba50f75c0de4;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Denton Gentry Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 01eede7..f75e5f1 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1175,8 +1175,8 @@ static void ieee80211_iface_work(struct work_struct *work) if (sta) { u16 last_seq; - last_seq = le16_to_cpu( - sta->last_seq_ctrl[rx_agg->tid]); + last_seq = IEEE80211_SEQ_TO_SN(le16_to_cpu( + sta->last_seq_ctrl[rx_agg->tid])); __ieee80211_start_rx_ba_session(sta, 0, 0,