blob: 9c5549a600f8235a35df5199ae3c63db3180b13d [file] [log] [blame]
From d0647db58d13533e5441c07f95b23e912976c87b Mon Sep 17 00:00:00 2001
From: Denton Gentry <dgentry@google.com>
Date: Sun, 27 Jul 2014 08:24:36 -0700
Subject: [PATCH] Correct starting seqno.
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.
---
net/mac80211/iface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 77cd025..1903220 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -1171,7 +1171,7 @@ static void ieee80211_iface_work(struct work_struct *work)
mutex_lock(&local->sta_mtx);
sta = sta_info_get_bss(sdata, rx_agg->addr);
if (sta) {
- u16 last_seq = sta->last_seq_ctrl[rx_agg->tid];
+ u16 last_seq = le16_to_cpu(sta->last_seq_ctrl[rx_agg->tid]) >> 4;
__ieee80211_start_rx_ba_session(sta,
0, 0,
--
2.0.0.526.g5318336