From: Jeffin Mammen Date: Fri, 21 Apr 2017 15:44:04 +0000 (+0300) Subject: FILS: Add FILS Indication element into Beacon/Probe Response template X-Git-Tag: hostap_2_7~1380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5444aac4c9d411bcced819f66f9bb63edc0760e;p=thirdparty%2Fhostap.git FILS: Add FILS Indication element into Beacon/Probe Response template Signed-off-by: Jouni Malinen --- diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index f1394654d..e7b6800c1 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;