wifi: iwlwifi: mvm: factor out iwl_mvm_sta_fw_id_mask()
authorJohannes Berg <johannes.berg@intel.com>
Sun, 16 Apr 2023 12:47:30 +0000 (15:47 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 17 Apr 2023 07:53:24 +0000 (09:53 +0200)
commit66a588bff29e61345df6d281c56d9864b84eb8cc
tree9c21866bf0cc29b0ca92ef3bdfe31dee7da93c8e
parentbb7fcb37c9004ce7e296f7bb4e56ce65119b83b4
wifi: iwlwifi: mvm: factor out iwl_mvm_sta_fw_id_mask()

We are going to need this in more places than just the
key code, so factor out the functionality of getting
the FW station ID mask (filtered to a specific link if
needed) to a separate function that can now be called
both under RCU and mvm->mutex protection.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230416154301.eff92b93025d.I2c50290a0537d5db3d3460f4d57c78a4712ffb75@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-key.c
drivers/net/wireless/intel/iwlwifi/mvm/mld-sta.c
drivers/net/wireless/intel/iwlwifi/mvm/sta.h