aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-10-25 20:44:00 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-25 21:41:04 (GMT)
commit061dac1d3ccc1103712797bf4a6fcd36d3010114 (patch)
tree05ae669fa573b264f7a39a3847e802dd6db52b68 /wpa_supplicant
parentff338fab9227a2fc44befdbe2afa1b06ad49eedf (diff)
downloadhostap-061dac1d3ccc1103712797bf4a6fcd36d3010114.zip
hostap-061dac1d3ccc1103712797bf4a6fcd36d3010114.tar.gz
hostap-061dac1d3ccc1103712797bf4a6fcd36d3010114.tar.bz2
FILS: Claim FILS capability only if driver supports it
"GET_CAPABILITY fils" used to return "FILS" based on wpa_supplicant configuration. This can be made more useful by checking both for wpa_supplicant and driver support for FILS. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 9d9aaea..a929a7d 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -4048,7 +4048,8 @@ static int wpa_supplicant_ctrl_iface_get_capability(
#endif /* CONFIG_ACS */
#ifdef CONFIG_FILS
- if (os_strcmp(field, "fils") == 0) {
+ if (os_strcmp(field, "fils") == 0 &&
+ (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SUPPORT_FILS)) {
res = os_snprintf(buf, buflen, "FILS");
if (os_snprintf_error(buflen, res))
return -1;