From fb22489fd7380d4c674a5795ec8e7b69906db828 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 Aug 2025 20:23:41 +0200 Subject: [PATCH] wifi: mt76: do not add non-sta wcid entries to the poll list Polling and airtime reporting is valid for station entries only Signed-off-by: Felix Fietkau --- mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac80211.c b/mac80211.c index bd5f5625..65927f85 100644 --- a/mac80211.c +++ b/mac80211.c @@ -1682,7 +1682,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);