From: Aloka Dixit Date: Mon, 13 Mar 2023 09:11:23 +0000 (-0700) Subject: FILS: Make HE a requirement for FILS discovery X-Git-Tag: hostap_2_11~1239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecae45ff6649c00063f8937ae0db0e5b7ee84fac;p=thirdparty%2Fhostap.git FILS: Make HE a requirement for FILS discovery FILS discovery frame generation currently assumes HE support for calculating the number of spatial streams. Add a check to reject the configuration if the feature is enabled without enabling HE. Signed-off-by: Aloka Dixit --- diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index 0e5b8d82b..fd80bbd82 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -2120,6 +2120,8 @@ own_ip_addr=127.0.0.1 # If fils_discovery_max_interval is non-zero, the AP enables FILS Discovery # frame transmission. These values use TUs as the unit and have allowed range # of 0-10000. fils_discovery_min_interval defaults to 20. +# This feature is currently supported only when ieee80211ax is enabled for +# the radio and disable_11ax is not set for the BSS. #fils_discovery_min_interval=20 #fils_discovery_max_interval=0 diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index dd73e68b3..2b1041de8 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -1444,6 +1444,13 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss, #endif /* CONFIG_SAE_PK */ #ifdef CONFIG_FILS + if (full_config && bss->fils_discovery_max_int && + (!conf->ieee80211ax || bss->disable_11ax)) { + wpa_printf(MSG_ERROR, + "Currently IEEE 802.11ax support is mandatory to enable FILS discovery transmission."); + return -1; + } + if (full_config && bss->fils_discovery_max_int && bss->unsol_bcast_probe_resp_interval) { wpa_printf(MSG_ERROR,