[PATCH] WPS: Force scan_ssid when SSID is specified
Baligh Gasmi
gasmibal at gmail.com
Sun Apr 12 06:39:11 PDT 2026
When WPS credentials include an SSID, ensure the scan_ssid flag is set
to force active scanning for that network. This guarantees proper
discovery of the network even when the SSID is not being broadcast.
Signed-off-by: Baligh Gasmi <gasmibal at gmail.com>
---
wpa_supplicant/wps_supplicant.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 25a5598ce..7ead9f63f 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -491,6 +491,7 @@ static int wpa_supplicant_wps_cred(void *ctx,
if (ssid->ssid) {
os_memcpy(ssid->ssid, cred->ssid, cred->ssid_len);
ssid->ssid_len = cred->ssid_len;
+ ssid->scan_ssid = !!cred->ssid_len;
}
switch (cred->encr_type) {
--
2.51.0
More information about the Hostap
mailing list