From d17519baab7709dcb706729e3269da022fa75ebb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 11 Sep 2025 14:34:52 +0200 Subject: [PATCH] wifi: mt76: improve phy reset on hw restart - fix number of station accounting for scanning code. - reset channel context Signed-off-by: Felix Fietkau --- mac80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mac80211.c b/mac80211.c index a0579e16..b6aeefe3 100644 --- a/mac80211.c +++ b/mac80211.c @@ -816,6 +816,8 @@ static void mt76_reset_phy(struct mt76_phy *phy) return; INIT_LIST_HEAD(&phy->tx_list); + phy->num_sta = 0; + phy->chanctx = NULL; } void mt76_reset_device(struct mt76_dev *dev)