Commit f1e9f369 authored by Shayne Chen's avatar Shayne Chen Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: fix using wrong phy to start in mt7996_mac_restart()



Pass the correct mt7996_phy to mt7996_run().

Fixes: 0a5df0ec ("wifi: mt76: mt7996: remove redundant per-phy mac80211 calls during restart")
Signed-off-by: default avatarShayne Chen <shayne.chen@mediatek.com>
Acked-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251106064203.1000505-11-shayne.chen@mediatek.com


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent e11be918
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}