aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-03-14 18:45:36 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-14 22:31:09 (GMT)
commitc98617b48dc508a06e61b05d6d2038281c08d76b (patch)
tree747e70e3e5aa2ce93e0197093fddbba7cd58e5db /wpa_supplicant
parentf77d106294737af6aff4d214b274df5bd752b079 (diff)
downloadhostap-c98617b48dc508a06e61b05d6d2038281c08d76b.zip
hostap-c98617b48dc508a06e61b05d6d2038281c08d76b.tar.gz
hostap-c98617b48dc508a06e61b05d6d2038281c08d76b.tar.bz2
DPP2: Make DPP version number support available over control interface
"GET_CAPABILITY dpp" can now be used to determine which version number of DPP is supported in the build. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index c627443..e8f3875 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -4443,6 +4443,19 @@ static int wpa_supplicant_ctrl_iface_get_capability(
return res;
}
+#ifdef CONFIG_DPP
+ if (os_strcmp(field, "dpp") == 0) {
+#ifdef CONFIG_DPP2
+ res = os_snprintf(buf, buflen, "DPP=2");
+#else /* CONFIG_DPP2 */
+ res = os_snprintf(buf, buflen, "DPP=1");
+#endif /* CONFIG_DPP2 */
+ if (os_snprintf_error(buflen, res))
+ return -1;
+ return res;
+ }
+#endif /* CONFIG_DPP */
+
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown GET_CAPABILITY field '%s'",
field);