Skip to content

Commit

Permalink
mt76: do not store aggregation sequence number for null-data frames
Browse files Browse the repository at this point in the history
Fixes a rare corner case where a BlockAckReq might get the wrong
sequence number.

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Oct 8, 2018
1 parent e61671e commit 96fa353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ mt76_check_agg_ssn(struct mt76_txq *mtxq, struct sk_buff *skb)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;

if (!ieee80211_is_data_qos(hdr->frame_control))
if (!ieee80211_is_data_qos(hdr->frame_control) ||
!ieee80211_is_data_present(hdr->frame_control))
return;

mtxq->agg_ssn = le16_to_cpu(hdr->seq_ctrl) + 0x10;
Expand Down

0 comments on commit 96fa353

Please sign in to comment.