]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Show selected negotiation channel in DPP_BOOTSTRAP_INFO
authorJouni Malinen <jouni@codeaurora.org>
Mon, 27 Jan 2020 15:31:10 +0000 (17:31 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jan 2020 18:36:09 +0000 (20:36 +0200)
Make the selected channel available for upper layer software to use,
e.g., when starting DPP listen operation during NFC negotiated
connection handover.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c

index 4a0bdf06eae1f9e0bd2ee94aec654ecd5e3fe3db..80b6e1767af245cc069f5990326b182815839352 100644 (file)
@@ -9169,12 +9169,14 @@ int dpp_bootstrap_info(struct dpp_global *dpp, int id,
                           "mac_addr=" MACSTR "\n"
                           "info=%s\n"
                           "num_freq=%u\n"
+                          "use_freq=%u\n"
                           "curve=%s\n"
                           "pkhash=%s\n",
                           dpp_bootstrap_type_txt(bi->type),
                           MAC2STR(bi->mac_addr),
                           bi->info ? bi->info : "",
                           bi->num_freq,
+                          bi->num_freq == 1 ? bi->freq[0] : 0,
                           bi->curve->name,
                           pkhash);
 }