]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Do not invalidate PMKSA cache for bssid_* updates
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 28 Dec 2023 13:19:24 +0000 (15:19 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Jan 2024 15:50:17 +0000 (17:50 +0200)
These updates do not cause the PMKSA cache to become invalid. As such,
allow setting any of bssid_hint, bssid_ignore, and bssid_accept 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

index fed6b6c4da3fc56ffaa3ecebf803834225cf8f59..0708fbdff456428408a98bd1acf6d80639c5213d 100644 (file)
@@ -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);