]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP2: Fix connection status result wait in hostapd
authorJouni Malinen <j@w1.fi>
Sat, 20 Mar 2021 10:17:58 +0000 (12:17 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Mar 2021 10:17:58 +0000 (12:17 +0200)
The waiting_conn_status_result flag was not set which made hostapd
discard the Connection Status Result. Fix this to match the
wpa_supplicant implementation.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dpp_hostapd.c

index e1e5a3ac4bb36a73de3d65d57e96332f59467112..fcdbb4c98fa46a15bbf7fc407f8bc80463430546 100644 (file)
@@ -1189,6 +1189,7 @@ static void hostapd_dpp_rx_conf_result(struct hostapd_data *hapd, const u8 *src,
                wpa_printf(MSG_DEBUG, "DPP: Wait for Connection Status Result");
                eloop_cancel_timeout(hostapd_dpp_config_result_wait_timeout,
                                     hapd, NULL);
+               auth->waiting_conn_status_result = 1;
                eloop_cancel_timeout(
                        hostapd_dpp_conn_status_result_wait_timeout,
                        hapd, NULL);