From: Jouni Malinen Date: Thu, 24 Dec 2015 20:11:50 +0000 (+0200) Subject: Add "GET_CAPABILITY acs" to allow ACS build option to be detected X-Git-Tag: hostap_2_6~1098 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d2f67433dcdf404818e640290809fd3993a97b0;p=thirdparty%2Fhostap.git Add "GET_CAPABILITY acs" to allow ACS build option to be detected This allows upper layer software to check whether wpa_supplicant can use ACS for AP mode. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index d1274f6df..ecf8d2dd4 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -3937,6 +3937,15 @@ static int wpa_supplicant_ctrl_iface_get_capability( } #endif /* CONFIG_FIPS */ +#ifdef CONFIG_ACS + if (os_strcmp(field, "acs") == 0) { + res = os_snprintf(buf, buflen, "ACS"); + if (os_snprintf_error(buflen, res)) + return -1; + return res; + } +#endif /* CONFIG_ACS */ + wpa_printf(MSG_DEBUG, "CTRL_IFACE: Unknown GET_CAPABILITY field '%s'", field);