From d27f7bd9461b3408115157379d48ca56561f43e1 Mon Sep 17 00:00:00 2001 From: Karthikeyan Kathirvel Date: Thu, 31 Mar 2022 11:34:51 +0530 Subject: [PATCH] FILS: Fix config check to allow unsolicited broadcast Probe Response 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 --- src/ap/ap_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index f2d13ea71..051b843e9 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -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"); -- 2.47.2