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 <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2020-01-27 17:31:10 +02:00 committed by Jouni Malinen
parent 5e287724ee
commit 566972fd6f

View file

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