SAE: Handle BSS membership selector indication for H2E-only in STA mode

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
Jouni Malinen 2019-09-07 15:24:24 +03:00 committed by Jouni Malinen
parent cc0da0ff4c
commit 293a01f3b3

View file

@ -850,6 +850,19 @@ static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
continue; 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) if (!flagged)
continue; continue;