]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: iwlwifi: match discrete/integrated to fix some names
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jul 2025 05:16:29 +0000 (08:16 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 9 Jul 2025 08:43:16 +0000 (11:43 +0300)
commitc5fbdf0ba7c1a6ed52dc3650bee73ce00c86cf7f
tree0465ccf0726f7698374e56ca6d07f0c0e3a38abf
parent43375cf823479693a095f51db4fe2f3f1e168eaa
wifi: iwlwifi: match discrete/integrated to fix some names

Some device names were wrong because our internal data suggested
that discrete Ga devices have B-step RF, when they actually have
C-step. However, matching the step for them is bad anyway.

Change the code to be able to find the devinfo depending on the
device being integrated or discrete. This is only for the names,
since the RF config cannot be different for the same RF because
it's discrete or integrated, so add a kunit test that ensures
both (a) the RF config is the same and (b) the name is different
(the latter really only because that's the whole point of having
a match on the discrete/integrated bit.)

Remove the RF step matching since it's no longer needed now.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709081300.e048a94659f1.Ie5919c70e9d8e3a28152aaf3cdffd19ed3d4f5c7@changeid
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/pcie/drv.c
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
drivers/net/wireless/intel/iwlwifi/tests/devinfo.c