]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use SCS reconfiguration logic under CONFIG_NO_ROBUST_AV
authorPurushottam Kushwaha <pkushwah@qti.qualcomm.com>
Thu, 14 Aug 2025 10:39:06 +0000 (16:09 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 14 Aug 2025 19:51:39 +0000 (22:51 +0300)
Fix build failure caused by missing SCS renegotiation logic under
CONFIG_NO_ROBUST_AV. Commit 1adffc200 (SCS: Renegotiate configured SCS
policies with new AP after roaming) introduced logic for SCS
renegotiation for roaming but did not include corresponding changes
for CONFIG_NO_ROBUST_AV.

Add the necessary handling to ensure consistent behavior and successful
builds when this flag is enabled.

Fixes: 1adffc200 ("SCS: Renegotiate configured SCS policies with new AP after roaming")
Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
wpa_supplicant/events.c

index d388f31ff5cbb34ee446f17a03796ea6400641e0..37241b9f258f76b8fd76a15be723a80230a7fac7 100644 (file)
@@ -433,7 +433,9 @@ void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s)
 
        wpa_s->wps_scan_done = false;
        wpas_reset_mlo_info(wpa_s);
+#ifndef CONFIG_NO_ROBUST_AV
        wpas_scs_deinit(wpa_s);
+#endif /* CONFIG_NO_ROBUST_AV */
 
 #ifdef CONFIG_SME
        wpa_s->sme.bss_max_idle_period = 0;
@@ -6321,11 +6323,13 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                                   "Ignore unexpected EVENT_ASSOC in disconnected state");
                        break;
                }
+#ifndef CONFIG_NO_ROBUST_AV
                if (dl_list_len(&wpa_s->active_scs_ids) > 0) {
                        wpa_printf(MSG_DEBUG,
                                   "SCS rules renegotiation required after roaming");
                        wpa_s->scs_reconfigure = true;
                }
+#endif /* CONFIG_NO_ROBUST_AV */
                wpa_supplicant_event_assoc(wpa_s, data);
                wpa_s->assoc_status_code = WLAN_STATUS_SUCCESS;
                if (data &&