DPP: Emit a DPP PB_STATUS event when push button starts
To implement an action script that listens for DPP push button events and for example blinks a LED it is useful to know when push button has started. Emit an event when push button starts. Signed-off-by: Evan Benn <evan.benn@morsemicro.com>
This commit is contained in:
parent
d8dca78a3a
commit
35df7ee09e
2 changed files with 3 additions and 0 deletions
|
@ -3941,6 +3941,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;
|
||||
}
|
||||
|
||||
|
|
|
@ -5672,6 +5672,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;
|
||||
}
|
||||
|
||||
|
@ -5733,6 +5734,7 @@ int wpas_dpp_push_button(struct wpa_supplicant *wpa_s, const char *cmd)
|
|||
wpa_s->scan_req = MANUAL_SCAN_REQ;
|
||||
wpa_s->scan_res_handler = wpas_dpp_pb_scan_res_handler;
|
||||
wpa_supplicant_req_scan(wpa_s, 0, 0);
|
||||
wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_PB_STATUS "started");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue