]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Report reception of Config Request to upper layers
authorJouni Malinen <jouni@codeaurora.org>
Wed, 10 Jan 2018 20:14:22 +0000 (22:14 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Thu, 11 Jan 2018 22:50:45 +0000 (00:50 +0200)
This is mainly for protocol testing purposes.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/dpp_hostapd.c
src/common/wpa_ctrl.h
wpa_supplicant/dpp_supplicant.c

index a606a7da1fbf383d15464fa4ac1937aa9fc0a72e..47b23b92e572e491ea48cfa5b208ffda967eaeef 100644 (file)
@@ -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);
index c5209883dd0578bf97ee2bf63b6a6f9234844bf0..604a40e6d3745aff48b60e7478d84baa37bae307 100644 (file)
@@ -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 "
index 6e947ed7748e7f11e1e99a07210fd00414262e7a..4deb8c95aa2e624a26d9ec069b5bda8955b221bf 100644 (file)
@@ -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);