wifi: iwlwifi: mvm: set STA mask for keys in MLO
authorJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 10:12:03 +0000 (13:12 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Apr 2023 11:15:27 +0000 (13:15 +0200)
commitaea99650f7316b43a064311bb79064e397ed237c
treeee2cfb66e7ab9b2e3f3152cb9c1989d60a3242f0
parentd066a530af8e1833c7ea2cef7784004700c85f79
wifi: iwlwifi: mvm: set STA mask for keys in MLO

Implement the full STA mask and selecting the correct link
for key installation.

While at it, catch errors if this function returns a bad
zero station mask, rather than waiting for the firmware to
crash on it.

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