Commit a84b172c authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: move mt7996_update_beacons under mt76 mutex



Move mt7996_update_beacons routine inside mt76 mutex critical section
in mt7996_mac_reset_work() in order to run mt7996_vif_conf_link() in
mt7996_mcu_add_beacon routine.

Fixes: f30906c5 ("wifi: mt76: mt7996: disable beacons when going offchannel")
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Tested-by: default avatarBen Greear <greearb@candelatech.com>
Link: https://patch.msgid.link/20251114-mt76-fix-missing-mtx-v1-2-259ebf11f654@kernel.org


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 5a4bcba2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2632,11 +2632,11 @@ void mt7996_mac_reset_work(struct work_struct *work)
	local_bh_enable();

	ieee80211_wake_queues(hw);
	mt7996_update_beacons(dev);

	mutex_unlock(&dev->mt76.mutex);

	mt7996_npu_hw_init(dev);
	mt7996_update_beacons(dev);

	mt7996_for_each_phy(dev, phy)
		ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work,