From: Jouni Malinen Date: Tue, 14 Dec 2021 17:43:54 +0000 (+0200) Subject: DPP3: Update version capability indication for hostapd X-Git-Tag: hostap_2_10~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cab51021c64f5b80524bd42df9189e5f40013585;p=thirdparty%2Fhostap.git DPP3: Update version capability indication for hostapd The "GET_CAPABILITY dpp" command in wpa_supplicant was already extended to cover DPP version 3, but the matching change for hostapd was forgotten. Add that now. Signed-off-by: Jouni Malinen --- diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index a00dc4f02..86adf18e5 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -3463,7 +3463,9 @@ static int hostapd_ctrl_iface_get_capability(struct hostapd_data *hapd, if (os_strcmp(field, "dpp") == 0) { int res; -#ifdef CONFIG_DPP2 +#ifdef CONFIG_DPP3 + res = os_snprintf(buf, buflen, "DPP=3"); +#elif defined(CONFIG_DPP2) res = os_snprintf(buf, buflen, "DPP=2"); #else /* CONFIG_DPP2 */ res = os_snprintf(buf, buflen, "DPP=1");