From: Felix Fietkau Date: Mon, 15 Sep 2025 07:59:09 +0000 (+0200) Subject: wifi: mt76: improve phy reset on hw restart X-Git-Tag: v6.18-rc1~132^2~56^2~27^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f34cced88a429872d1eefc393686f9a48ec01d9;p=thirdparty%2Fkernel%2Flinux.git wifi: mt76: improve phy reset on hw restart - 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 --- diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index cc7da3d5ab089..f6a494812fe1e 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -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)