Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp535582rdh; Tue, 19 Dec 2023 06:29:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+KoIpWYQkDJ+x+ZFruAYaQMjElXCzySX9G2G5Fckwx/V4ZPmwCN9ZQqE8dbE/sYXPORUZ X-Received: by 2002:a50:f69c:0:b0:553:b243:70f0 with SMTP id d28-20020a50f69c000000b00553b24370f0mr104876edn.60.1702996168372; Tue, 19 Dec 2023 06:29:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996168; cv=none; d=google.com; s=arc-20160816; b=D/MIJtZc2JEuClAZKkVLhQnOFzaYab3i3lm2bhScfMJq7iUjyR20+eagocefhauEQB JkqDIB176Gt7XktUkAFAecL2/O70AB5aFtWUZWb69lBhKnQgkqYf6QWxmJOI6kFk0GI2 UbYajBuTZF80yj9qmn15fqhKkr3kYyIDThbU+1js7NjYs4wkD2a6KXH2hSMuB0cS9uvD isD4JvctzUOPq12RbSFZCGt+DPWRnzS503hMmucZDy6tihgneUpqMYSY8nazQYSCbkaU G5LexyD7xeSoQ46rFuZSQo3o8Ty9dtiwfns+wwsQxg78wHALjYl3fmrj0TIc8yxKhG3h wHvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=wM23hrtmmwZJoFn95qL7Z6AlVX+PhKPgm+RhZG4LXDU=; fh=25UfBzwY3ppbXGwBZ9Abj1JcZ6z8GguRp7lCP6Qwfos=; b=dCHbUkXF1/xqsMXPcJKKBP/zK0myfozzcOLZHIgV8r8Odo0kUEqhU7esJ0KNpGSO86 90uIMhJHIXnHFamUKPOu5H/st80Hlt9d3+0lVjVar+Af6LNAJaKn51pOnfkLd6RW1uAH QrvSsya/uNBGuFQWe0CRQIxwFy0GAc5XUYVu3AeTAVtK1rCId0yCYuzWdOpD+E4ThjGR T30QTBjl8/CXKJCxx6JhD1nM2HQv+SPOXEm91C4wOfdY0+zT8cpqgjDJpQbtQZDorBo6 MHYGvPHQpgrnzjMDoPqkQshGtxlXS1XyHGilJZY26q8VUo31qbxNvEDxawZeog9cTTpT Lapw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gnlr7Eio; spf=pass (google.com: domain of linux-wireless+bounces-994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id da3-20020a056402176300b00553811d96basi997130edb.183.2023.12.19.06.29.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:29:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gnlr7Eio; spf=pass (google.com: domain of linux-wireless+bounces-994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F07B11F2828C for ; Tue, 19 Dec 2023 14:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5379C20DD4; Tue, 19 Dec 2023 14:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gnlr7Eio" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFD881D541; Tue, 19 Dec 2023 14:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f179.google.com with SMTP id af79cd13be357-77fa980b50aso295982785a.3; Tue, 19 Dec 2023 06:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702996001; x=1703600801; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wM23hrtmmwZJoFn95qL7Z6AlVX+PhKPgm+RhZG4LXDU=; b=gnlr7EioWil2fvGqN4ej6ZgFJ2RRaTEyo2drpWLDfnXWXEjZf37mdBvz6EjdH3nDNj eKvU2zfe/kruqGIbjMNFA5sW246kMLeHBU6ZrB5udqzMmSETLdUiKuDGAfDdq++frXcX zRMpq6aNmUMVomUz+STr7HIBmM8SmonvXSrq/9gvdv0RGntIbppa5fUbQAcazdMB/05v N6Z7V8DDC/AmMQXh5U3AP1NcHqA+BWs+nLffpxWCq6OR2klqGZ0sehPSU04uPWjgS/kG MsP6xvOcTtUyBobLb0EogQ2wXOg4Nq8mQJg3Ra1W20lbFk/csu1wLkysE4i4qeGBcM10 RpZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702996001; x=1703600801; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wM23hrtmmwZJoFn95qL7Z6AlVX+PhKPgm+RhZG4LXDU=; b=wHldcC2iLy2nyFFvveWoYg2eRDKp0IhXTxZnqCuEwqW6rTFt4FhNOpByoCJGw+nhc0 s21grv/B2cAMtflB4NZlRthCGekuFXCJ9i2hLpelSL4WB7FQ7Oow2rv6wk1hxKEQ5TdT feW8Tb1+TdXHXwgGIqpoaAs3zTtXnZR729HNaCmcUAZWtmLyV+R93pwed5OZ3medp/zw oq3G1ssdW1/G7hcpvT12wWeNX3guYr9XxKKZ8Kx4bMxGeNhRJ+TIQW9qd4ZtfSYmZcdi AdU6HeMCsig5113c2/2zv/06UZtK/Aq7xF0CHvaAsW52CLtRlSCbyDlYFXtXA0C6NVlt s1wQ== X-Gm-Message-State: AOJu0YynzFfWWGMno9xUINXkjA9CJfFpKfrBRbUdsmJNa4WjOn/FrViT J1ur24EGW0ZkSDkNxF1ogTkyh6rSsK6ziPLsGzM= X-Received: by 2002:a05:6214:5287:b0:67f:3f4f:82c9 with SMTP id kj7-20020a056214528700b0067f3f4f82c9mr4575429qvb.45.1702996001532; Tue, 19 Dec 2023 06:26:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231107-brcmfmac-wpa3-v1-1-4c7db8636680@marcan.st> <170281231651.2255653.7498073085103487666.kvalo@kernel.org> <18c80d15e30.279b.9b12b7fc0a3841636cfb5e919b41b954@broadcom.com> <1b51997f-2994-46e8-ac58-90106d1c486d@marcan.st> In-Reply-To: From: Julian Calaby Date: Wed, 20 Dec 2023 01:26:30 +1100 Message-ID: Subject: Re: [PATCH] wifi: brcmfmac: cfg80211: Use WSEC to set SAE password To: Arend van Spriel , Kalle Valo Cc: Hector Martin , Arend van Spriel , Franky Lin , Hante Meuleman , Daniel Berlin , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com, linux-kernel@vger.kernel.org, asahi@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arend and Kalle, On Wed, Dec 20, 2023 at 12:47=E2=80=AFAM Arend van Spriel wrote: > > On 12/19/2023 12:01 PM, Hector Martin wrote: > > > > > > On 2023/12/19 17:52, Arend Van Spriel wrote: > >> On December 17, 2023 12:25:23 PM Kalle Valo wrote: > >> > >>> Hector Martin wrote: > >>> > >>>> Using the WSEC command instead of sae_password seems to be the suppo= rted > >>>> mechanism on newer firmware, and also how the brcmdhd driver does it= . > >>>> > >>>> According to user reports [1], the sae_password codepath doesn't act= ually > >>>> work on machines with Cypress chips anyway, so no harm in removing i= t. > >>>> > >>>> This makes WPA3 work with iwd, or with wpa_supplicant pending a supp= ort > >>>> patchset [2]. > >>>> > >>>> [1] https://rachelbythebay.com/w/2023/11/06/wpa3/ > >>>> [2] http://lists.infradead.org/pipermail/hostap/2023-July/041653.htm= l > >>>> > >>>> Signed-off-by: Hector Martin > >>>> Reviewed-by: Neal Gompa > >>> > >>> Arend, what do you think? > >>> > >>> We recently talked about people testing brcmfmac patches, has anyone = else > >>> tested this? > >> > >> Not sure I already replied so maybe I am repeating myself. I would pre= fer > >> to keep the Cypress sae_password path as well although it reportedly d= oes > >> not work. The vendor support in the driver can be used to accommodate = for > >> that. The other option would be to have people with Cypress chipset te= st > >> this patch. If that works for both we can consider dropping the > >> sae_password path. > >> > >> Regards, > >> Arend > > > > So, if nobody from Cypress chimes in ever, and nobody cares nor tests > > Cypress chipsets, are we keeping any and all existing Cypress code-path= s > > as bitrotting code forever and adding gratuitous conditionals every tim= e > > any functionality needs to change "just in case it breaks Cypress" even > > though it has been tested compatible on Broadcom chipsets/firmware? > > > > Because that's not sustainable long term. > > You should look into WEXT just for the fun of it. If it were up to me > and a bunch of other people that would have been gone decades ago. Maybe > a bad example if the sae_password is indeed not working, but the Cypress > chipset is used in RPi3 and RPi4 so there must be a couple of users. There are reports that WPA3 is broken on the Cypress chipsets the Raspberry Pis are using and this patch fixes it: https://rachelbythebay.com/w/2023/11/06/wpa3/ Based on that, it appears that all known users of WPA3 capable hardware with this driver require this fix. Thanks, --=20 Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/