]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RNR: Do not allow FILS Discovery and unsolicited Probe Response simultaneously
authorAloka Dixit <alokad@codeaurora.org>
Tue, 27 Jul 2021 23:42:26 +0000 (16:42 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 9 Nov 2021 16:02:02 +0000 (18:02 +0200)
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 <alokad@codeaurora.org>
src/ap/ap_config.c

index 2e0af2b7ed7ea7a0501b098a99657b926f1e7990..86b6e097cf89b305eeee75ed022d62b426cde8d9 100644 (file)
@@ -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;
 }