diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-05-14 09:12:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-20 14:46:23 -0400 |
commit | cccaec98a3ddbf20f22604f9ba405781c5f89f0e (patch) | |
tree | b7815b6aa900e2d7e200f63e923098bedbd8b5f6 /net/mac80211 | |
parent | 80a3511d70e8fc7ed3fe4417d7b0bf6c3f642f64 (diff) |
mac80211: Initialize RX's last received sequence number
The STA may drop the very first frame if it happens to be a retried
frame. This is because we maintian the last received sequence number
per TID for QoS frames and it is initialized to zero through kzalloc
during sta_info_alloc and the sequence number of the very first date
frame received would be ZERO (as per IEEE 802.11-2007, 7.1.3.4.1).
If the frame dropped happens to be an EAP Request Identity(very first
frame from the AP), then wpa_supplicnat disconnects the STA and the
whole procedure starts again.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index a98ea273a155..3e4348f3b285 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -293,6 +293,9 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, | |||
293 | skb_queue_head_init(&sta->ps_tx_buf); | 293 | skb_queue_head_init(&sta->ps_tx_buf); |
294 | skb_queue_head_init(&sta->tx_filtered); | 294 | skb_queue_head_init(&sta->tx_filtered); |
295 | 295 | ||
296 | for (i = 0; i < NUM_RX_DATA_QUEUES; i++) | ||
297 | sta->last_seq_ctrl[i] = cpu_to_le16(USHORT_MAX); | ||
298 | |||
296 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 299 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
297 | printk(KERN_DEBUG "%s: Allocated STA %pM\n", | 300 | printk(KERN_DEBUG "%s: Allocated STA %pM\n", |
298 | wiphy_name(local->hw.wiphy), sta->sta.addr); | 301 | wiphy_name(local->hw.wiphy), sta->sta.addr); |