aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-11-19 12:12:10 (GMT)
committerJouni Malinen <j@w1.fi>2017-11-19 12:13:20 (GMT)
commitf9cf7d03f17038e3bacdeea6e2d60f195935fdaf (patch)
treefe48dddc133def4eada40e041b5fdd972178fbae /wpa_supplicant
parent655e82b1bb679c2e2aac79932f74ccd59c5cae03 (diff)
downloadhostap-f9cf7d03f17038e3bacdeea6e2d60f195935fdaf.zip
hostap-f9cf7d03f17038e3bacdeea6e2d60f195935fdaf.tar.gz
hostap-f9cf7d03f17038e3bacdeea6e2d60f195935fdaf.tar.bz2
DPP: Protocol testing for invalid Config Attrib Object value
Extend dpp_test to cover a case where Config Attrib Object value is invalid in Configuration Request frame. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dpp_supplicant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index e34f68d..0d81d2e 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -1275,6 +1275,12 @@ static void wpas_dpp_start_gas_client(struct wpa_supplicant *wpa_s)
"\"wi-fi_tech\":\"infra\","
"\"netRole\":\"%s\"}",
wpa_s->dpp_netrole_ap ? "ap" : "sta");
+#ifdef CONFIG_TESTING_OPTIONS
+ if (dpp_test == DPP_TEST_INVALID_CONFIG_ATTR_OBJ_CONF_REQ) {
+ wpa_printf(MSG_INFO, "DPP: TESTING - invalid Config Attr");
+ json[29] = 'k'; /* replace "infra" with "knfra" */
+ }
+#endif /* CONFIG_TESTING_OPTIONS */
wpa_printf(MSG_DEBUG, "DPP: GAS Config Attributes: %s", json);
offchannel_send_action_done(wpa_s);