Skip to content

Commit dbfff5b

Browse files
AviSternjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: remove old PASN station when adding a new one
If a PASN station is added, and an old PASN station already exists for the same mac address, remove the old station before adding the new one. Keeping the old station caueses old security context to be used in measurements. Fixes: 0739a7d ("iwlwifi: mvm: initiator: add option for adding a PASN responder") Signed-off-by: Avraham Stern <avraham.stern@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://msgid.link/20240415114847.ef3544a416f2.I4e8c7c8ca22737f4f908ae5cd4fc0b920c703dd3@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 8c75cdc commit dbfff5b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
5353
if (!pasn)
5454
return -ENOBUFS;
5555

56+
iwl_mvm_ftm_remove_pasn_sta(mvm, addr);
57+
5658
pasn->cipher = iwl_mvm_cipher_to_location_cipher(cipher);
5759

5860
switch (pasn->cipher) {

0 commit comments

Comments
 (0)