[PATCH v3 0/3] DPP: recover Enterprise provisioning from missed GAS comebacks
Gustavo Bertoli
gubertoli at gmail.com
Sun Nov 15 12:47:26 PST 2026
DPP Enterprise provisioning between two stations runs GAS off-channel
while an external CA signs the CSR. One lost frame fails it today: the
responder drops its entry when a comeback-delay response is not ACKed,
and the requester restarts on a new dialog token 150 ms after a missed
response, which loses the certBag prepared for the old token.
v3 is a redesign following your comments on v1. Changes since v2:
- The fragment resend (v2 1/5) is gone. No Fragment ID is sent twice.
- The responder no longer holds back a Comeback Request until the
previous TX status arrives (v2 2/5). Its only change is to keep the
entry after a no-ACK on a frame without response data (1/3).
- The requester retries on the same dialog token only after a 5 s
listen without a response, so a retry cannot overtake a response
still on its way. It is still opt-in, for the DPP Configuration
Request that carries a CSR.
- The test hooks moved out of gas_server.c, and the tests check that
the injected fault happened (3/3).
Each side works with an unmodified peer, and the requester change alone
is enough to recover. If an unmodified responder has already dropped its
entry, the patched requester gives up after 25 s instead of restarting.
Tested: dpp_enterprise_5000ms fails 13/100 runs on main and 0/100 with
this series; no regressions in the dpp, dpp3, gas, ap_hs20 and
p2p_service modules. On real hardware (ath9k_htc, rtw88) with CA delays
up to 75 s without a protocol failure.
Not in this series: hostapd as Enrollee (gas_query_ap.c).
Gustavo Bertoli (3):
GAS server: Keep a waiting entry when a comeback delay is not ACKed
GAS: Retry a missed DPP comeback on the same dialog token
tests: DPP Enterprise certBag with lost or held GAS comeback frames
src/common/dpp.h | 1 +
src/common/gas_server.c | 6 ++-
tests/hwsim/test_dpp.py | 74 ++++++++++++++++++++++++++++--
wpa_supplicant/dpp_supplicant.c | 3 ++
wpa_supplicant/gas_query.c | 79 +++++++++++++++++++++++++++++++++
wpa_supplicant/gas_query.h | 2 +
wpa_supplicant/wpa_supplicant.c | 12 +++++
7 files changed, 171 insertions(+), 6 deletions(-)
--
2.43.0
More information about the Hostap
mailing list