[PATCH v3 0/2] dpp: Fix association with hidden SSID via directed probing

Gustavo Bertoli gubertoli at gmail.com
Mon Jun 1 14:46:39 PDT 2026


v3: Set scan_ssid conditionally — use wpa_bss_get() to check whether
    the provisioned SSID is visible in scan results. A hidden AP
    advertises an empty SSID in beacons so its real SSID is never
    found, enabling directed probing only when actually required.
    Broadcast SSIDs keep scan_ssid=0, preserving privacy.
    Per review feedback from Johannes Berg.

v2: Add hwsim test case for the hidden SSID scenario.

v1: https://lists.infradead.org/pipermail/hostap/2026-May/045191.html

When a DPP enrollee receives a configuration object for a hidden SSID
network, wpa_supplicant fails to associate because wpas_dpp_add_network()
leaves scan_ssid=0. The subsequent passive scan never discovers the AP.

This series fixes the issue by conditionally setting scan_ssid=1 only
when the provisioned SSID is not already visible in scan results, and
adds a hwsim test to cover the scenario.

Gustavo Bertoli (2):
  dpp: Fix association with hidden SSID via directed probing
  tests: Add hwsim test for DPP provisioning with hidden SSID

 tests/hwsim/test_dpp.py         | 23 +++++++++++++++++++++++
 wpa_supplicant/dpp_supplicant.c |  3 +++
 2 files changed, 26 insertions(+)

-- 
2.43.0




More information about the Hostap mailing list