Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp425169lqp; Wed, 12 Jun 2024 06:04:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJr5/A44WZYAx+jtbqkH94fJO7fIG5MjwkT8K5e3kk8WDiRMmBN29K1eYEnTNhjaiiMy+PoxPlv0xueCKVOlR6JxGvCuo/YV7msTZEDA== X-Google-Smtp-Source: AGHT+IF+Mo6rg/G5ge/OMdTQAYeSTQsFZyG0EgNS/QjZ8E4rx8QPWmThbulv3qFI+7uMGixmRKp3 X-Received: by 2002:a05:622a:d4:b0:440:279c:fa0a with SMTP id d75a77b69052e-4415ac5ef17mr14070181cf.53.1718197474666; Wed, 12 Jun 2024 06:04:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718197474; cv=pass; d=google.com; s=arc-20160816; b=NTkMVU8d7BAmwiEIwCiiWtSsTpd+nOmmEsJpwixfg5ugKtSqGaLWjk8/ONkIMww8Qs g7vhFt9XcixtQfB2csfi+OfCrw65gNwlFTNbnmUx8Txk1EmvmvEvPtSVdJifacLRL6ib o4JRpkEZEDEI56VotlrjC7P/jaZnnjvTApqHCCVqhKPHGT23J9NJ3sH6a/6CfRop/ZfD fH0XZ/MJk6C7kZIJAh7C5LU4R7eE0140cLtvu+WDe/HY4Y/4wDPXIDxQU5sAPvHE5PFU zsBX4Vn8pyecgLwriS073ULlNwq1R4KsF896Bmnzt3DyXQ6TCYWqm/Py3avx45356IK/ Y/SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=/5kMr0HD9YcPr/FKY6plJSc20RApcR7At3GuJfz8vwM=; fh=aKY/Jf7CgkqJuElyHo24AgDaf1F0+hb+c7jp/hr4x4E=; b=bf/oROrYH1XxTXF9N7P+WJeQ94tjHwt5e3urSqHUpqRdXUHhlIc2/N7MhOChlHFv4I fTuYxYbup5U0PLRPCn6x/wTeoNUe1dqPbVr7GAE1AI0dQZyMjq2bmq0c+DEi34oXKRn3 7JRLP/ff9Acwy0uRCU8x/NrR7k4X7HSUh40f6+/ZucB3Bqhr7BCJZ98UGbLVliVTq46Y TRisCmrpqQXWU3E3jKJiAlMisM43VXKLJxJCuGAKFErYDDEiLo9Qt0vbPPNju+whS79d UQpmuLL5yu44ApIjko7whPf4cIuHacxE/WJunEgS7GGm7kEFyU7s+ttCany8ne0dg3NS fsJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8881-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-4412999dab9si49921871cf.170.2024.06.12.06.04.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 06:04:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-wireless+bounces-8881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8881-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7E2BE1C20A6D for ; Wed, 12 Jun 2024 13:04:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E96E717799B; Wed, 12 Jun 2024 13:04:12 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C328176AD4 for ; Wed, 12 Jun 2024 13:04:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718197452; cv=none; b=ERzJXXvR0nMY/Bh3If//7VSSLiiVRZ2DUH75r2H98hM2nFthmvf5XtJUgF7b+Fjoicpk0VKigin3wh9W4FBu8WzUbmCAC9mKArgaoSbo9LRu4OvOheApdIZolObk/cWdMc6SJ+EgHhjIkb+9J1l281auabrUwrby1USh9H5z8kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718197452; c=relaxed/simple; bh=OsXaaGOBhD19JYLTP3o3NcrZQzURqDDVdkeF/tStYCM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Es/bRt0NnymIic8xH4/SwQu76QzdMm4sB/zrKqvVsuOBafVOeZrCkWIbIQJQYbDCrPexPCEvaOeDm0IlK+ui+X6u1xgdjcU3BRTVPp92+Ciwj32/jI7eS8rpeKKqKiHi1mQFJp2ogzzH2GWa7YTptGCVKfwNbwUi1Men0xoowhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sHNdu-0007qM-Bf; Wed, 12 Jun 2024 15:03:58 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sHNdt-001nHG-F9; Wed, 12 Jun 2024 15:03:57 +0200 Received: from sha by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sHNdt-006Yzr-1D; Wed, 12 Jun 2024 15:03:57 +0200 Date: Wed, 12 Jun 2024 15:03:57 +0200 From: "s.hauer@pengutronix.de" To: Marcel Ziswiler Cc: "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "francesco@dolcini.it" , "linux-kernel@vger.kernel.org" , "briannorris@chromium.org" , "yu-hao.lin@nxp.com" Subject: Re: [PATCH] wifi: mwifiex: increase max_num_akm_suites Message-ID: References: <20240530130156.1651174-1-s.hauer@pengutronix.de> <171767674666.2401308.2539321240473169281.kvalo@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org On Tue, Jun 11, 2024 at 01:12:26PM +0000, Marcel Ziswiler wrote: > Hi Sascha > > On Mon, 2024-06-10 at 09:27 +0200, Sascha Hauer wrote: > > On Thu, Jun 06, 2024 at 12:25:48PM +0000, Kalle Valo wrote: > > > Sascha Hauer wrote: > > > > > > > The maximum number of AKM suites will be set to two if not specified by > > > > the driver. Set it to CFG80211_MAX_NUM_AKM_SUITES to let userspace > > > > specify up to ten AKM suites in the akm_suites array. > > > > > > > > Without only the first two AKM suites will be used, further ones are > > > > ignored. > > > > > > > > Signed-off-by: Sascha Hauer > > > > > > I assume you that you have also tested this on a real device, right? > > > > Sure. It was tested with a MAYA-W161-00B module from u-blox with a IW416 > > chipset. > > > > BTW I haven't mentioned this, but It fixes the same problem as mentioned here: > > > > https://lore.kernel.org/linux-kernel/20240523081428.2852276-1-s.hauer@pengutronix.de/T/ > > As we are also using the IW416 albeit from the MAYA-W160-00B module on our Verdin AM62, we were wondering about > the exact use case this patch helps solving. Could you reveal some more details around this? Thanks! You'll need this patch once wpa_supplicant specifies more than two akm suites in the key_mgmt (in AP mode). With the current mainline driver using NetworkManager to setup a hotspot with: nmcli device wifi hotspot con-name leica ssid mywifi band bg password hallo123 NetworkManager ends up setting the key_mgmt option to 'WPA-PSK WPA-PSK-SHA256'. These are two entries and this works fine. However, when the patches adding host mlme support are applied (see https://lore.kernel.org/lkml/Zk6TklTIbxZxIWyb@google.com/T/), NetworkManager will set key_mgmt to 'WPA-PSK WPA-PSK-SHA256 SAE'. These are three entries and thus exceed the current array size of two. The effect is that SAE is ignored by the driver and SAE is not enabled in the device. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |