]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: iwlwifi: validate the channels received in iwl_mcc_update_resp_v*
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Fri, 20 Mar 2026 08:09:13 +0000 (10:09 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 25 Mar 2026 09:31:57 +0000 (11:31 +0200)
commit6e6d8f344dbb00f232e73dbd0813cfabdd35b15f
tree29424764b667a23aa6bef381ca674380cfc8bcc9
parent454e9141ae96691ad380f7f3f7d11fe652a03cb5
wifi: iwlwifi: validate the channels received in iwl_mcc_update_resp_v*

Check with IWL_FW_CHECK that the FW doesn't send a channel that we don't
support. Otherwise, the center frequency will be 0, leading to a
warning since is_valid_reg_rule will return false, of course.
Although the warning is verbose enough, the IWL_FW_CHECK will spare some
of the debug.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260320100746.0e83cdd88cea.Ic86852e622ed3ec06110f9e6525f72679236cf1e@changeid
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c