diff mbox series

wpa_supplicant: Do not invalidate PMKSA cache for bssid_* updates

Message ID 20231228131924.2443044-4-andrei.otcheretianski@intel.com
State Accepted
Headers show
Series wpa_supplicant: Do not invalidate PMKSA cache for bssid_* updates | expand

Commit Message

Andrei Otcheretianski Dec. 28, 2023, 1:19 p.m. UTC
From: Benjamin Berg <benjamin.berg@intel.com>

These updates do not cause the PMKSA cache to become invalid. As such,
allow setting any of bssid_hint, bssid_ignore, bssid_accept,
bssid_blacklist, bssid_whitelist without clearing the cache and causing
the current connection to be dropped immediately.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
---
 wpa_supplicant/ctrl_iface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Jan. 14, 2024, 4:24 p.m. UTC | #1
On Thu, Dec 28, 2023 at 03:19:24PM +0200, Andrei Otcheretianski wrote:
> These updates do not cause the PMKSA cache to become invalid. As such,
> allow setting any of bssid_hint, bssid_ignore, bssid_accept,
> bssid_blacklist, bssid_whitelist without clearing the cache and causing
> the current connection to be dropped immediately.

Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index b67b3b305c..15cb52ae17 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -3626,7 +3626,7 @@  static int wpa_supplicant_ctrl_iface_update_network(
 #endif /* CONFIG_BGSCAN */
 
 	if (os_strcmp(name, "bssid") != 0 &&
-	    os_strcmp(name, "bssid_hint") != 0 &&
+	    os_strncmp(name, "bssid_", 6) != 0 &&
 	    os_strcmp(name, "scan_freq") != 0 &&
 	    os_strcmp(name, "priority") != 0) {
 		wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid);