]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Handle BSS membership selector indication for H2E-only in STA mode
authorJouni Malinen <jouni@codeaurora.org>
Sat, 7 Sep 2019 12:24:24 +0000 (15:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 Oct 2019 12:39:22 +0000 (15:39 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/events.c

index 1a2fcd26c102d0cc1669449c43c3a7ee297315db..523b7bd4639bb6e71143f299c5d85953feb7b5be 100644 (file)
@@ -850,6 +850,19 @@ static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
                                continue;
                        }
 
+#ifdef CONFIG_SAE
+                       if (flagged && ((rate_ie[j] & 0x7f) ==
+                                       BSS_MEMBERSHIP_SELECTOR_SAE_H2E_ONLY)) {
+                               if (wpa_s->conf->sae_pwe == 0) {
+                                       if (debug_print)
+                                               wpa_dbg(wpa_s, MSG_DEBUG,
+                                                       "   SAE H2E disabled");
+                                       return 0;
+                               }
+                               continue;
+                       }
+#endif /* CONFIG_SAE */
+
                        if (!flagged)
                                continue;