From 5433351ed5ab62c2d4fbd15a2c4d8c4aeacb93dc Mon Sep 17 00:00:00 2001 From: Evan Benn Date: Thu, 29 Feb 2024 11:09:38 +1100 Subject: [PATCH] APP-2573: Emit a DPP PB_STATUS event when push button starts --- src/ap/dpp_hostapd.c | 1 + wpa_supplicant/dpp_supplicant.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/ap/dpp_hostapd.c b/src/ap/dpp_hostapd.c index b7cca47c714b..3025eef204d2 100644 --- a/src/ap/dpp_hostapd.c +++ b/src/ap/dpp_hostapd.c @@ -3960,6 +3960,7 @@ int hostapd_dpp_push_button(struct hostapd_data *hapd, const char *cmd) eloop_register_timeout(100, 0, hostapd_dpp_push_button_expire, hapd, NULL); + wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_PB_STATUS "started"); return 0; } diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c index ab06ff8d32c1..24e4bb3c444d 100644 --- a/wpa_supplicant/dpp_supplicant.c +++ b/wpa_supplicant/dpp_supplicant.c @@ -5676,6 +5676,7 @@ static int wpas_dpp_push_button_configurator(struct wpa_supplicant *wpa_s, eloop_register_timeout(100, 0, wpas_dpp_push_button_expire, wpa_s, NULL); + wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_PB_STATUS "started"); return 0; } @@ -5749,6 +5750,7 @@ int wpas_dpp_push_button(struct wpa_supplicant *wpa_s, const char *cmd) wpa_supplicant_req_scan(wpa_s, 0, 0); res = 0; + wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_PB_STATUS "started"); out: /* If push button mode failed to start, restart the chirp forever timer */ -- 2.42.0.530.g692be87cbba5