aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorJeffin Mammen <jmammen@qti.qualcomm.com>2017-04-21 15:44:04 (GMT)
committerJouni Malinen <j@w1.fi>2017-04-21 15:44:59 (GMT)
commitd5444aac4c9d411bcced819f66f9bb63edc0760e (patch)
tree14ad6a2f2e61de7d5bf6ced8d9c6eb99db45a821 /src/ap/ap_drv_ops.c
parent8befe8a993be661492eae73e2bc76b62c7a9d9f6 (diff)
downloadhostap-d5444aac4c9d411bcced819f66f9bb63edc0760e.zip
hostap-d5444aac4c9d411bcced819f66f9bb63edc0760e.tar.gz
hostap-d5444aac4c9d411bcced819f66f9bb63edc0760e.tar.bz2
FILS: Add FILS Indication element into Beacon/Probe Response template
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index f139465..e7b6800 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -99,6 +99,13 @@ int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
goto fail;
#endif /* CONFIG_FST */
+#ifdef CONFIG_FILS
+ pos = hostapd_eid_fils_indic(hapd, buf, 0);
+ if (add_buf_data(&beacon, buf, pos - buf) < 0 ||
+ add_buf_data(&proberesp, buf, pos - buf) < 0)
+ goto fail;
+#endif /* CONFIG_FILS */
+
if (add_buf(&beacon, hapd->wps_beacon_ie) < 0 ||
add_buf(&proberesp, hapd->wps_probe_resp_ie) < 0)
goto fail;