From: Purushottam Kushwaha Date: Thu, 14 Aug 2025 10:39:06 +0000 (+0530) Subject: Use SCS reconfiguration logic under CONFIG_NO_ROBUST_AV X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e527704b912abb6b7bcfb01178330fd12382003;p=thirdparty%2Fhostap.git Use SCS reconfiguration logic under CONFIG_NO_ROBUST_AV 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 --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index d388f31ff..37241b9f2 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -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 &&