]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Make HE a requirement for FILS discovery
authorAloka Dixit <quic_alokad@quicinc.com>
Mon, 13 Mar 2023 09:11:23 +0000 (02:11 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 14 Mar 2023 09:15:06 +0000 (11:15 +0200)
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 <quic_alokad@quicinc.com>
hostapd/hostapd.conf
src/ap/ap_config.c

index 0e5b8d82bd116d91cf157342a85386cdbccfe63e..fd80bbd821b7f48e08b4dbae4a3f74c4850360e2 100644 (file)
@@ -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
 
index dd73e68b3b5767c66a751fa736dac323e5212947..2b1041de806324bf9c1077287a66390b4d38323f 100644 (file)
@@ -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,