From b16b88acdb757450ed4d7160bbc854af594e48a8 Mon Sep 17 00:00:00 2001 From: Aloka Dixit Date: Tue, 27 Jul 2021 16:42:26 -0700 Subject: [PATCH] RNR: Do not allow FILS Discovery and unsolicited Probe Response simultaneously Reduced neighbor report has a field to indicate whether unsolicited Probe Response transmission is active. Add a check to return failure if both FILS discovery and unsolicited Probe Response are enabled at the same time to ensure that RNR includes valid data. Signed-off-by: Aloka Dixit --- src/ap/ap_config.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c index 2e0af2b7e..86b6e097c 100644 --- a/src/ap/ap_config.c +++ b/src/ap/ap_config.c @@ -1423,6 +1423,15 @@ 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 && + bss->unsol_bcast_probe_resp_interval) { + wpa_printf(MSG_ERROR, + "Cannot enable both FILS discovery and unsolicited broadcast Probe Response at the same time"); + return -1; + } +#endif /* CONFIG_FILS */ + return 0; }