]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Add 'GET_CAPABILITY fils' for runtime check
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 1 Sep 2015 17:04:20 +0000 (20:04 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 10 Oct 2016 18:11:46 +0000 (21:11 +0300)
This can be used to check whether the running wpa_supplicant version was
built with CONFIG_FILS=y.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c

index bfe8efe260a3a542f36630dffcd4f85232e3e94c..6da068e47ca19107cda114812b4c251e7cffc957 100644 (file)
@@ -4006,6 +4006,15 @@ static int wpa_supplicant_ctrl_iface_get_capability(
        }
 #endif /* CONFIG_ACS */
 
+#ifdef CONFIG_FILS
+       if (os_strcmp(field, "fils") == 0) {
+               res = os_snprintf(buf, buflen, "FILS");
+               if (os_snprintf_error(buflen, res))
+                       return -1;
+               return res;
+       }
+#endif /* CONFIG_FILS */
+
        wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown GET_CAPABILITY field '%s'",
                   field);