Skip to content

Commit 3ad6197

Browse files
AviSternjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: fix setting the TK when associated
When running secured ranging and the initiator is associated with the responder, the TK was not set in the range request command. Fix it. Signed-off-by: Avraham Stern <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://patch.msgid.link/20250308231427.603dc31579d9.Icd19d797e56483c08dd22c55b96fee481c4d2f3d@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent c7f50d0 commit 3ad6197

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,11 @@ iwl_mvm_ftm_set_secured_ranging(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
672672

673673
target.bssid = bssid;
674674
target.cipher = cipher;
675+
target.tk = NULL;
675676
ieee80211_iter_keys(mvm->hw, vif, iter, &target);
677+
678+
if (!WARN_ON(!target.tk))
679+
memcpy(tk, target.tk, TK_11AZ_LEN);
676680
} else {
677681
memcpy(tk, entry->tk, sizeof(entry->tk));
678682
}

0 commit comments

Comments
 (0)