Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mt7996/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,13 +1360,14 @@ mt7996_mac_tx_free(struct mt7996_dev *dev, void *data, int len)
cur_info++;
continue;
} else if (info & MT_TXFREE_INFO_HEADER) {
u32 tx_retries = 0, tx_failed = 0;
u32 tx_retries = 0, tx_failed = 0, tx_count;

if (!wcid)
continue;

tx_retries =
FIELD_GET(MT_TXFREE_INFO_COUNT, info) - 1;
tx_count = FIELD_GET(MT_TXFREE_INFO_COUNT, info);
if (tx_count)
tx_retries = tx_count - 1;
tx_failed = tx_retries +
!!FIELD_GET(MT_TXFREE_INFO_STAT, info);

Expand Down