aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-09-18 21:12:27 (GMT)
committerJouni Malinen <j@w1.fi>2019-09-18 21:21:47 (GMT)
commitf32aa244efe66dd102397a9521be1a7b07f4b6a7 (patch)
tree4fcb1460b4c80b8e992046945835fb991bcf8174
parent8f8c423a51edc82a7da2cf494bb0890ddedaf379 (diff)
downloadhostap-master.zip
hostap-master.tar.gz
hostap-master.tar.bz2
DPP: Debug print configRequest bandSupport on ConfiguratorHEADmaster
Go through the received bandSupport JSON array and print its contents in the debug log. This information might be exposed to upper layer configuration generation/use somehow in the future. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--src/common/dpp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common/dpp.c b/src/common/dpp.c
index 5b8d6a5..c76d872 100644
--- a/src/common/dpp.c
+++ b/src/common/dpp.c
@@ -5167,6 +5167,22 @@ dpp_conf_req_rx(struct dpp_authentication *auth, const u8 *attr_start,
if (token && token->type == JSON_STRING)
wpa_printf(MSG_DEBUG, "DPP: mudurl = '%s'", token->string);
+ token = json_get_member(root, "bandSupport");
+ if (token && token->type == JSON_ARRAY) {
+ wpa_printf(MSG_DEBUG, "DPP: bandSupport");
+ token = token->child;
+ while (token) {
+ if (token->type != JSON_NUMBER)
+ wpa_printf(MSG_DEBUG,
+ "DPP: Invalid bandSupport array member type");
+ else
+ wpa_printf(MSG_DEBUG,
+ "DPP: Supported global operating class: %d",
+ token->number);
+ token = token->sibling;
+ }
+ }
+
resp = dpp_build_conf_resp(auth, e_nonce, e_nonce_len, ap);
fail: