]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:14 +0000 (14:03 +0100)
[ Upstream commit f1e9f369ae42ee433836b24467e645192d046a51 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c

index fe31db5440a844a6046d87761dcbf0d97ed1fe0c..b06728a98a6917ce376781be6af2544a0dde1562 100644 (file)
@@ -2341,7 +2341,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;
        }