]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
SAE: Extend automatic enabling of H2E on 6 GHz to additional cases
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 30 Jan 2023 21:07:21 +0000 (23:07 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 30 Jan 2023 21:21:06 +0000 (23:21 +0200)
Commit 3a0edb2cd86e ("SAE: Enable H2E for 6 GHz BSS") started enabling
H2E automatically for SAE use on the 6 GHz band, but it did not update
these steps in verifying whether the STA has matching configuration for
a BSS that mandates use of H2E and whether to use PT for SAE in SME.
Update these to be aware of automatic H2E enabling.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/events.c
wpa_supplicant/sme.c

index 6452a3beeaf19423324b244ac1eee07a2cdb1be0..b0648780525be0754684418419e4f06f92805168 100644 (file)
@@ -981,6 +981,7 @@ static int rate_match(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
                                if (wpa_s->conf->sae_pwe ==
                                    SAE_PWE_HUNT_AND_PECK &&
                                    !ssid->sae_password_id &&
+                                   !is_6ghz_freq(bss->freq) &&
                                    wpa_key_mgmt_sae(ssid->key_mgmt)) {
                                        if (debug_print)
                                                wpa_dbg(wpa_s, MSG_DEBUG,
index d04fb0d41e3557537584812259e836b732b072f5..1fffebbdd1113104d3be890d60c66d914174c6f4 100644 (file)
@@ -198,6 +198,9 @@ static struct wpabuf * sme_auth_build_sae_commit(struct wpa_supplicant *wpa_s,
        if (wpa_key_mgmt_sae_ext_key(key_mgmt) &&
            wpa_s->conf->sae_pwe != SAE_PWE_FORCE_HUNT_AND_PECK)
                use_pt = 1;
+       if (bss && is_6ghz_freq(bss->freq) &&
+           wpa_s->conf->sae_pwe != SAE_PWE_FORCE_HUNT_AND_PECK)
+               use_pt = 1;
 #ifdef CONFIG_SAE_PK
        if ((rsnxe_capa & BIT(WLAN_RSNX_CAPAB_SAE_PK)) &&
            ssid->sae_pk != SAE_PK_MODE_DISABLED &&