]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: iwlwifi: mvm: Fix associated initiator key setting
authorIlan Peer <ilan.peer@intel.com>
Tue, 18 Jun 2024 16:44:10 +0000 (19:44 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:28:50 +0000 (10:28 +0200)
commita02079af2491b076a4bb6b1a5d668621efbb4b4e
tree3c22abceaf5a2e0b9ad1838c26d83aa57422197f
parent7714a40561c3905764140cc3e971469671b07187
wifi: iwlwifi: mvm: Fix associated initiator key setting

When setting the keys for secure measurement with an AP the station
is associated with, the TK should only be referenced and not copied.

In addition set the cipher only when the correct station is found.

Fixes: 626be4bf99f6 ("wifi: iwlwifi: mvm: modify iwl_mvm_ftm_set_secured_ranging() parameters")
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240618194245.be2a5327554d.Ie53220b075dacb23a8d073f6008aafd339368592@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c