]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Add FILS Indication element into Beacon/Probe Response template
authorJeffin Mammen <jmammen@qti.qualcomm.com>
Fri, 21 Apr 2017 15:44:04 +0000 (18:44 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 21 Apr 2017 15:44:59 +0000 (18:44 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ap_drv_ops.c

index f1394654d3a8e895aa4e9173dbe5a70e72df0761..e7b6800c113044b87a56dddcdfcf567a4f79f2e0 100644 (file)
@@ -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;