Skip to content

Commit a3c99ef

Browse files
committed
wifi: mt76: do not add non-sta wcid entries to the poll list
Polling and airtime reporting is valid for station entries only Link: https://patch.msgid.link/[email protected] Signed-off-by: Felix Fietkau <[email protected]>
1 parent 0300545 commit a3c99ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mac80211.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ EXPORT_SYMBOL_GPL(mt76_wcid_cleanup);
16901690

16911691
void mt76_wcid_add_poll(struct mt76_dev *dev, struct mt76_wcid *wcid)
16921692
{
1693-
if (test_bit(MT76_MCU_RESET, &dev->phy.state))
1693+
if (test_bit(MT76_MCU_RESET, &dev->phy.state) || !wcid->sta)
16941694
return;
16951695

16961696
spin_lock_bh(&dev->sta_poll_lock);

0 commit comments

Comments
 (0)