]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: iwlwifi: mld: KUnit: create chanctx with a custom width
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 12 Mar 2025 22:22:32 +0000 (00:22 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2025 08:51:25 +0000 (09:51 +0100)
commit2907c039ff396d43d13ef19b0dbd9b86791f2520
treef6cf7d8c3b5afe200a841cf7e9bc6114d5c443a1
parentde5ca699bc3f7fe9f90ba927d8a6e7783cd7311d
wifi: iwlwifi: mld: KUnit: create chanctx with a custom width

Currently iwlmld_kunit_add_chanctx receives a band, picks a predefined
static chandef, and creates the chanctx from it.
Change it to receive a bandwidth as well. Otherwise, the bandwidth in
the chanctx/phy will be different than what test specified in the
iwl_mld_kunit_link.

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20250313002008.85a1285d34cd.Ia71cdcd4241fe73501bc93e3cb2c6bb3f631b9ec@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
drivers/net/wireless/intel/iwlwifi/mld/tests/utils.h