connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Daniel Wagner <wagi@monom.org>
To: Ariel D'Alessandro <ariel.dalessandro@collabora.com>
Cc: connman@lists.linux.dev, iwd@lists.01.org,
	Sven.Dembianny@bshg.com, marcel@holtmann.org
Subject: Re: [connman v1] wifi: Set ieee80211w as required for WPA3-Personal-only mode
Date: Tue, 3 Aug 2021 09:41:04 +0200	[thread overview]
Message-ID: <20210803074104.dawii3v3bknovg2e@beryllium.lan> (raw)
In-Reply-To: <20210802151006.28183-1-ariel.dalessandro@collabora.com>

Hi Ariel,

Thanks for tracking this! Just a stupid question:

On Mon, Aug 02, 2021 at 12:10:06PM -0300, Ariel D'Alessandro wrote:
> From wpa_supplicant docs [0] section "ieee80211w":
> 
>   "WPA3-Personal-only mode: ieee80211w=2 and key_mgmt=SAE".
> 
> This means that the parameter ieee80211w has to be set to 2 (required)
> if SAE is used. Fix it.
> 
> [0] https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf
> ---
>  plugins/wifi.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/plugins/wifi.c b/plugins/wifi.c
> index 578b4be7..02603e85 100644
> --- a/plugins/wifi.c
> +++ b/plugins/wifi.c
> @@ -2174,7 +2174,12 @@ static void ssid_init(GSupplicantSSID *ssid, struct connman_network *network)
>  	security = connman_network_get_string(network, "WiFi.Security");
>  	ssid->security = network_security(security);
>  	ssid->keymgmt = network_data->keymgmt;
> -	ssid->ieee80211w = G_SUPPLICANT_MFP_OPTIONAL;
> +	/*
> +	 * From wpa_supplicant docs:
> +	 * "WPA3-Personal-only mode: ieee80211w=2 and key_mgmt=SAE".
> +	 * Set ieee80211w as required, which is sent if SAE key is used.
> +	 */
> +	ssid->ieee80211w = G_SUPPLICANT_MFP_REQUIRED;

Should we check the keymgmt is SAE and only then set the ieee80211w
value?

Thanks,
Daniel

       reply	other threads:[~2021-08-03  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210802151006.28183-1-ariel.dalessandro@collabora.com>
2021-08-03  7:41 ` Daniel Wagner [this message]
2021-08-04 21:17   ` [connman v1] wifi: Set ieee80211w as required for WPA3-Personal-only mode Ariel D'Alessandro
2021-08-05  6:03     ` Daniel Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210803074104.dawii3v3bknovg2e@beryllium.lan \
    --to=wagi@monom.org \
    --cc=Sven.Dembianny@bshg.com \
    --cc=ariel.dalessandro@collabora.com \
    --cc=connman@lists.linux.dev \
    --cc=iwd@lists.01.org \
    --cc=marcel@holtmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).