[PATCH] wpa_supplicant: prohibit open network security for 6 GHz.

Jouni Malinen j at w1.fi
Fri Apr 28 07:46:07 PDT 2023


On Thu, Apr 27, 2023 at 09:37:59PM -0700, David Downey wrote:
> diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
> @@ -628,6 +628,11 @@ static int wpa_supplicant_ssid_bss_match(struct
> wpa_supplicant *wpa_s,
>      if (ret >= 0)
>          return ret;
> 
> +    if (is_6ghz_bss && (ssid->key_mgmt & WPA_KEY_MGMT_NONE)) {
> +        wpa_dbg(wpa_s, MSG_DEBUG, "   skip - 6 GHz open network illegal");
> +        return 0;
> +    }

This does not look correct. This would prevent any association on the 6
GHz band regardless of the AP's configuration if the local network
profile happens to allow open mode connections _on any band_. There is a
check for no RSNE on the 6 GHz band just a couple of lines after this
location in the function.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list