]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix config check to allow unsolicited broadcast Probe Response
authorKarthikeyan Kathirvel <quic_kathirve@quicinc.com>
Thu, 31 Mar 2022 06:04:51 +0000 (11:34 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 4 Apr 2022 21:33:33 +0000 (00:33 +0300)
Unsolicited broadcast Probe Response frame configuration did not work in
hostapd due fils_discovery_min_int being used by mistake where
fils_discovery_max_int should have been used in checking for conflicting
configuration. The latter is the one used to decide whether FILS
discovery is enabled or not.

Signed-off-by: Karthikeyan Kathirvel <quic_kathirve@quicinc.com>
src/ap/ap_config.c

index f2d13ea713ff4da1f8b1258059539d511bb8007b..051b843e9375304600fa1e62b1315c4cb675b59a 100644 (file)
@@ -1427,7 +1427,7 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
 #endif /* CONFIG_SAE_PK */
 
 #ifdef CONFIG_FILS
-       if (full_config && bss->fils_discovery_min_int &&
+       if (full_config && bss->fils_discovery_max_int &&
            bss->unsol_bcast_probe_resp_interval) {
                wpa_printf(MSG_ERROR,
                           "Cannot enable both FILS discovery and unsolicited broadcast Probe Response at the same time");