]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mac80211: don't unreserve never reserved chanctx
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jul 2025 20:37:53 +0000 (23:37 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 15 Jul 2025 09:00:38 +0000 (11:00 +0200)
commita6d521bafcb290294128a51b13dbf4baae5748fc
tree12e7451d76286a7168e1b212ecaa727bebdbd10a
parent50459501b9a212dbe7a673727589ee105a8a9954
wifi: mac80211: don't unreserve never reserved chanctx

If a link has no chanctx, indicating it is an inactive link
that we tracked CSA for, then attempting to unreserve the
reserved chanctx will throw a warning and fail, since there
never was a reserved chanctx. Skip the unreserve.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709233537.022192f4b1ae.Ib58156ac13e674a9f4d714735be0764a244c0aae@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c