aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2025-08-27 10:53:48 +0200
committerFelix Fietkau <nbd@nbd.name>2025-08-27 11:27:57 +0200
commita3c99ef88a084e1c2b99dd56bbfa7f89c9be3e92 (patch)
treeb09a8d40687130b6a315e28fee36f5606ed1e694
parentwifi: mt76: mt7996: fix crash on some tx status reports (diff)
downloadwireguard-linux-a3c99ef88a084e1c2b99dd56bbfa7f89c9be3e92.tar.xz
wireguard-linux-a3c99ef88a084e1c2b99dd56bbfa7f89c9be3e92.zip
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: Felix Fietkau <nbd@nbd.name>
-rw-r--r--drivers/net/wireless/mediatek/mt76/mac80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c
index 3afe4c4cd7bb..6b2641a9ae9a 100644
--- a/drivers/net/wireless/mediatek/mt76/mac80211.c
+++ b/drivers/net/wireless/mediatek/mt76/mac80211.c
@@ -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);