mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix a-mpdu boundary detection issue for airtime reporting
status->ampdu_ref can be 0 if the first frame is an A-MPDU. Avoid calling mt76_airtime_flush_ampdu again without reinitializing the status wcid by checking dev->rx_ampdu_len first. Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+2
-1
@@ -675,7 +675,8 @@ mt76_airtime_check(struct mt76_dev *dev, struct sk_buff *skb)
|
||||
mt76_airtime_flush_ampdu(dev);
|
||||
|
||||
if (status->flag & RX_FLAG_AMPDU_DETAILS) {
|
||||
if (status->ampdu_ref != dev->rx_ampdu_ref) {
|
||||
if (!dev->rx_ampdu_len ||
|
||||
status->ampdu_ref != dev->rx_ampdu_ref) {
|
||||
dev->rx_ampdu_status = *status;
|
||||
dev->rx_ampdu_status.wcid_idx = wcid ? wcid->idx : 0xff;
|
||||
dev->rx_ampdu_ref = status->ampdu_ref;
|
||||
|
||||
Reference in New Issue
Block a user