DPP: Report reception of Config Request to upper layers
This is mainly for protocol testing purposes. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
6333cb812b
commit
fd92095491
3 changed files with 5 additions and 0 deletions
|
@ -1731,6 +1731,8 @@ hostapd_dpp_gas_req_handler(struct hostapd_data *hapd, const u8 *sa,
|
|||
wpa_hexdump(MSG_DEBUG,
|
||||
"DPP: Received Configuration Request (GAS Query Request)",
|
||||
query, query_len);
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_CONF_REQ_RX "src=" MACSTR,
|
||||
MAC2STR(sa));
|
||||
resp = dpp_conf_req_rx(auth, query, query_len);
|
||||
if (!resp)
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, DPP_EVENT_CONF_FAILED);
|
||||
|
|
|
@ -176,6 +176,7 @@ extern "C" {
|
|||
#define DPP_EVENT_FAIL "DPP-FAIL "
|
||||
#define DPP_EVENT_PKEX_T_LIMIT "DPP-PKEX-T-LIMIT "
|
||||
#define DPP_EVENT_INTRO "DPP-INTRO "
|
||||
#define DPP_EVENT_CONF_REQ_RX "DPP-CONF-REQ-RX "
|
||||
|
||||
/* MESH events */
|
||||
#define MESH_GROUP_STARTED "MESH-GROUP-STARTED "
|
||||
|
|
|
@ -2048,6 +2048,8 @@ wpas_dpp_gas_req_handler(void *ctx, const u8 *sa, const u8 *query,
|
|||
wpa_hexdump(MSG_DEBUG,
|
||||
"DPP: Received Configuration Request (GAS Query Request)",
|
||||
query, query_len);
|
||||
wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_REQ_RX "src=" MACSTR,
|
||||
MAC2STR(sa));
|
||||
resp = dpp_conf_req_rx(auth, query, query_len);
|
||||
if (!resp)
|
||||
wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_FAILED);
|
||||
|
|
Loading…
Reference in a new issue