Skip to content

Commit

Permalink
mt76: do not set status->aggr for NULL data frames
Browse files Browse the repository at this point in the history
Avoids data connection stalls when the client toggles powersave mode

Fixes: aee5b8c ("mt76: implement A-MPDU rx reordering in the driver code")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Felix Fietkau authored and Kalle Valo committed Feb 1, 2018
1 parent fb208dc commit cbbde7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt76x2_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ int mt76x2_mac_process_rx(struct mt76x2_dev *dev, struct sk_buff *skb,

mt76x2_remove_hdr_pad(skb, pad_len);

if (rxinfo & MT_RXINFO_BA)
if ((rxinfo & MT_RXINFO_BA) && !(rxinfo & MT_RXINFO_NULL))
status->aggr = true;

if (WARN_ON_ONCE(len > skb->len))
Expand Down

0 comments on commit cbbde7e

Please sign in to comment.