]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: nl80211: refactor nl80211_parse_chandef
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 19 Feb 2026 09:47:11 +0000 (11:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Mar 2026 08:22:52 +0000 (09:22 +0100)
commit49a1e65c6d706703a8fcd54a5c5ca1f11f7e319b
tree0093f89c80e7b1c96c302e7ea25af01776279820
parentabf37167e78f87c131a1de22ba1bd1cdc81a131f
wifi: nl80211: refactor nl80211_parse_chandef

In order to be able to use this function also for nested attributes,
change this function to receive a pointer to extack and to the
attributes array, instead of receiving the info and extracting them out
of it.
While at it, use NL_SET_ERR_MSG_ATTR with the frequency of the chandef.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260219114327.2b994566a63b.I6c2b6f4c7e2e09f4c47285ca4ac8a37b20700e19@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
net/wireless/nl80211.h
net/wireless/pmsr.c