Commit a3c99ef8 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

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/20250827085352.51636-2-nbd@nbd.name


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 0300545b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1690,7 +1690,7 @@ EXPORT_SYMBOL_GPL(mt76_wcid_cleanup);

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

	spin_lock_bh(&dev->sta_poll_lock);