From 566972fd6ff3158d060bd85283dbd6164cb94f49 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 27 Jan 2020 17:31:10 +0200 Subject: [PATCH] DPP: Show selected negotiation channel in DPP_BOOTSTRAP_INFO 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 --- src/common/dpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/dpp.c b/src/common/dpp.c index 4a0bdf06e..80b6e1767 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -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); }