]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: abort ROC on chanctx changes
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 Mar 2026 06:07:24 +0000 (06:07 +0000)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:31 +0000 (15:49 +0000)
commitde62b24224ac1533c17b3d5bae77164a82ae2e49
tree6bf6a6e3763191d4cba849ab9a4d49c1940f8d95
parentf0fb9afb74ec5bec49585772502db62613321fc6
wifi: mt76: abort ROC on chanctx changes

mt76_change_chanctx() calls mt76_phy_update_channel() which switches
the hardware channel. If ROC is active on the same phy, this switches
away from the ROC channel and clears offchannel, but leaves ROC state
intact. Mac80211 still thinks the phy is on the ROC channel.

Abort any active ROC before proceeding, matching the pattern already
used in add, remove, assign, unassign, and switch chanctx functions.

Link: https://patch.msgid.link/20260309060730.87840-5-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/channel.c