mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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: f30906c55a ("wifi: mt76: mt7996: disable beacons when going offchannel")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Tested-by: Ben Greear <greearb@candelatech.com>
Link: https://patch.msgid.link/20251114-mt76-fix-missing-mtx-v1-2-259ebf11f654@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
5a4bcba26e
commit
a84b172cca
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user