]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: mt7996: fix using wrong phy to start in mt7996_mac_restart()
authorShayne Chen <shayne.chen@mediatek.com>
Thu, 6 Nov 2025 06:42:02 +0000 (14:42 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 24 Nov 2025 13:59:12 +0000 (14:59 +0100)
Pass the correct mt7996_phy to mt7996_run().

Fixes: 0a5df0ec47f7 ("wifi: mt76: mt7996: remove redundant per-phy mac80211 calls during restart")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251106064203.1000505-11-shayne.chen@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c

index c1f2938d1f212c94858fe52da6cee12fc5792301..2c869f710193e4c32fc0bf6592b3bda9312722a3 100644 (file)
@@ -2368,7 +2368,7 @@ mt7996_mac_restart(struct mt7996_dev *dev)
                if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state))
                        continue;
 
-               ret = mt7996_run(&dev->phy);
+               ret = mt7996_run(phy);
                if (ret)
                        goto out;
        }