All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miri Korenblit <miriam.rachel.korenblit@intel.com>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, Avraham Stern <avraham.stern@intel.com>
Subject: [PATCH 10/11] wifi: iwlwifi: mvm: remove old PASN station when adding a new one
Date: Mon, 15 Apr 2024 11:54:43 +0300	[thread overview]
Message-ID: <20240415114847.ef3544a416f2.I4e8c7c8ca22737f4f908ae5cd4fc0b920c703dd3@changeid> (raw)
In-Reply-To: <20240415085444.3840884-1-miriam.rachel.korenblit@intel.com>

From: Avraham Stern <avraham.stern@intel.com>

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: 0739a7d70e00 ("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>
---
 drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
index c9000c878005..72a3d71f46f0 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c
@@ -53,6 +53,8 @@ int iwl_mvm_ftm_add_pasn_sta(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
 	if (!pasn)
 		return -ENOBUFS;
 
+	iwl_mvm_ftm_remove_pasn_sta(mvm, addr);
+
 	pasn->cipher = iwl_mvm_cipher_to_location_cipher(cipher);
 
 	switch (pasn->cipher) {
-- 
2.34.1


  parent reply	other threads:[~2024-04-15  8:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-15  8:54 [PATCH 00/11] wifi: iwlwifi: updates - 2024-04-15 Miri Korenblit
2024-04-15  8:54 ` [PATCH 01/11] wifi: iwlwifi: bump FW API to 91 for BZ/SC devices Miri Korenblit
2024-04-15  8:54 ` [PATCH 02/11] wifi: iwlwifi: mvm: Refactor tracking of scan UIDs Miri Korenblit
2024-04-15  8:54 ` [PATCH 03/11] wifi: iwlwifi: mvm: move phy band to nl80211 band helper Miri Korenblit
2024-04-15  8:54 ` [PATCH 04/11] wifi: iwlwifi: mvm: extend STEP URM workaround for new devices Miri Korenblit
2024-04-15  8:54 ` [PATCH 05/11] wifi: iwlwifi: move WTAS macro to api file Miri Korenblit
2024-04-15  8:54 ` [PATCH 06/11] wifi: iwlwifi: add a device ID for BZ-W Miri Korenblit
2024-04-15  8:54 ` [PATCH 07/11] wifi: iwlwifi: move lari_config handlig to regulatory Miri Korenblit
2024-04-15  8:54 ` [PATCH 08/11] wifi: iwlwifi: mvm: Add support for PPAG cmd v6 Miri Korenblit
2024-04-15  8:54 ` [PATCH 09/11] wifi: iwlwifi: Add support for LARI_CONFIG_CHANGE_CMD v10 Miri Korenblit
2024-04-15  8:54 ` Miri Korenblit [this message]
2024-04-15  8:54 ` [PATCH 11/11] wifi: iwlwifi: mvm: return uid from iwl_mvm_build_scan_cmd Miri Korenblit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240415114847.ef3544a416f2.I4e8c7c8ca22737f4f908ae5cd4fc0b920c703dd3@changeid \
    --to=miriam.rachel.korenblit@intel.com \
    --cc=avraham.stern@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.