]> git.hungrycats.org Git - linux/commit
wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask
authorJohannes Berg <johannes.berg@intel.com>
Mon, 25 Mar 2024 17:08:51 +0000 (18:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:06 +0000 (09:49 +0200)
commit692e903e7cd48194b83ab143fef05dd5da7f063f
tree69dd6e5d445c59b2bd406c22fbae13ef25521057
parent8d252f05135b93ae0a67b724d9c5b2f28e6aeb78
wifi: iwlwifi: mvm: fix check in iwl_mvm_sta_fw_id_mask

[ Upstream commit d69aef8084cc72df7b0f2583096d9b037c647ec8 ]

In the previous commit, I renamed the variable to differentiate
mac80211/mvm link STA, but forgot to adjust the check. The one
from mac80211 is already non-NULL anyway, but the mvm one can
be NULL when the mac80211 isn't during link switch conditions.
Fix the check.

Fixes: 2783ab506eaa ("wifi: iwlwifi: mvm: select STA mask only for active links")
Reviewed-by: Daniel Gabay <daniel.gabay@intel.com>
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240325180850.e95b442bafe9.I8c0119fce7b00cb4f65782930d2c167ed5dd0a6e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c