]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add FT-PSK to GET_CAPABILITY key_mgmt
authorMasashi Honma <masashi.honma@gmail.com>
Tue, 5 Feb 2019 21:06:44 +0000 (06:06 +0900)
committerJouni Malinen <j@w1.fi>
Tue, 5 Feb 2019 21:37:55 +0000 (23:37 +0200)
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
wpa_supplicant/ctrl_iface.c

index 7882dcf84f5de6a985b672c7a8ab8e7072d622cd..a0db9e42f658ca9f1f1950aeea5d72e458cc2fc4 100644 (file)
@@ -3994,6 +3994,14 @@ static int ctrl_iface_get_capability_key_mgmt(int res, char *strict,
        }
 #endif /* CONFIG_IEEE80211R */
 #endif /* CONFIG_FILS */
+#ifdef CONFIG_IEEE80211R
+       if (capa->key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_FT_PSK) {
+               ret = os_snprintf(pos, end - pos, " FT-PSK");
+               if (os_snprintf_error(end - pos, ret))
+                       return pos - buf;
+               pos += ret;
+       }
+#endif /* CONFIG_IEEE80211R */
 #ifdef CONFIG_SAE
        if (capa->key_mgmt & WPA_DRIVER_CAPA_KEY_MGMT_SAE) {
                ret = os_snprintf(pos, end - pos, " SAE");