OSDN Git Service

wifi: iwlwifi: mvm: rs-fw: properly access sband->iftype_data
authorJohannes Berg <johannes.berg@intel.com>
Mon, 17 Apr 2023 08:41:27 +0000 (11:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Apr 2023 12:47:55 +0000 (14:47 +0200)
commit8884730eab8773325579c4e8202b6647a42a1b94
treececedf1f857fcaa0c99a1d83d26249fb84b0fcd9
parentc45217bd3f2e01f89f2afe6ee28151df12420f65
wifi: iwlwifi: mvm: rs-fw: properly access sband->iftype_data

We need to look up the correct version of this struct depending
on the interface type, rather than just checking if the pointer
is non-NULL. Fix that.

Fixes: befebbb30af0 ("iwlwifi: rs: consider LDPC capability in case of HE")
Fixes: b009cf71a982 ("iwlwifi: mvm: only enable HE DCM if we also support TX")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230417113648.1fd54368a02c.Ie4db5e8ae224d9a4a63b528da5d63e1b957b9cef@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c