]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP3: Update version capability indication for hostapd
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 14 Dec 2021 17:43:54 +0000 (19:43 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 14 Dec 2021 17:45:43 +0000 (19:45 +0200)
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 <quic_jouni@quicinc.com>
hostapd/ctrl_iface.c

index a00dc4f028e09c986596ea3a1f98eb182b431e40..86adf18e5fe374d52f1e7d4ed1483690608737c8 100644 (file)
@@ -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");