]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: improve phy reset on hw restart
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 07:59:09 +0000 (09:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 11:23:02 +0000 (13:23 +0200)
- fix number of station accounting for scanning code.
- reset channel context

Link: https://patch.msgid.link/20250915075910.47558-14-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c

index cc7da3d5ab089ab076d94b6831b890a894fd54c4..f6a494812fe1e781af0b78a21bb281f3ebbe1f18 100644 (file)
@@ -824,6 +824,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)