diff mbox series

Add FT-PSK to GET_CAPABILITY key_mgmt

Message ID 20190205210644.9051-1-masashi.honma@gmail.com
State Accepted
Headers show
Series Add FT-PSK to GET_CAPABILITY key_mgmt | expand

Commit Message

Masashi Honma Feb. 5, 2019, 9:06 p.m. UTC
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
---
 wpa_supplicant/ctrl_iface.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Jouni Malinen Feb. 5, 2019, 10:24 p.m. UTC | #1
Thanks, applied.
diff mbox series

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 7882dcf84..a0db9e42f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -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");