Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1483105lqd; Thu, 25 Apr 2024 18:09:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyuBDIhbLoHb7bSe+2GjzaHczTlsJbfxtK5lBrAlYnu9GHNKYxSbr6irnMGtwDftHw1bx2Cu2Iwhew/XEq6RipePsKc6ZT4tXSVbWYWQ== X-Google-Smtp-Source: AGHT+IHj/no2YV3UlAktQdKnYjAH4q++d1BNs+j3Ziwl24/hrdTC3mPXZpgDBE9N8+7/koJNVI0v X-Received: by 2002:a17:906:360c:b0:a58:84c0:2dbd with SMTP id q12-20020a170906360c00b00a5884c02dbdmr789873ejb.25.1714093747129; Thu, 25 Apr 2024 18:09:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714093747; cv=pass; d=google.com; s=arc-20160816; b=TeGtUAhCZAGoTKZ3KUAxoc26owy2ouGBVnQux4KPF8K/KpfK5DVPL/1I2flg4k9N2i BQFkyzIX3UlWeS59PRsYQ+U2M5vXoA82uZDU2OhYTvr+aBc6V/Pg1n4L1GKF94Fyynow oAAeCQbLbVhqZbpmGA23b1jUMWqyss148xBPlJwixQd1nA2ubgpfC1SgMRETY8tvg+mK cHRSMtmkv0wlDsfrCR6vtcl+30MuzpCTu+w1K/FCAYbojHkcd0RSZ+vQShf6edWwiJBE s8/AYGIY1pQp0tdSH7Bz9zyTu++biUQtcMxO40HxL9k0722xFAdhlyxZUWQupZMo0EAQ L1ug== ARC-Message-Signature: i=2; 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=mD85VhI3w15gmvfp3YL8kqnwEiMwGThbedZmJ+FmX40=; fh=RL6lqtH6pgy64osY6T09NDyPg70Jmj/obnniiAAnfjY=; b=1Jcr99g1jMYL0VPpn2V6M5wF78YNJJcSD+qm4GLS4YM+EGPq4ZjyY7M/Bi7Fv+G1rK roL+sfLUzR2JHx87GqjILgBKybax/mepNq1ieqKwDvLQ02eC3Gm03QineOTfTj5uMunu 14R6NdXpry0/NGPWRVLnJu5u0btJEoPhmzGCtxzV5kfPIVyqZ7d8/QzdpyGTiD54CpK1 yjtnV0b75DowRsO0k/umGhlyGmTaysJK6Fa9O53dFGdEIUUAwP2g7kG1AhWXQId5hvOJ 7oIQaFfcpjRmHCnyvYXaMuzRcKlGaw8mVtwDoq8KGfFaxJsjE3k0box3/otM1p/R1yMz VoFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XvVYalsQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-wireless+bounces-6908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bh26-20020a170906a0da00b00a4737d45afasi10753892ejb.449.2024.04.25.18.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 18:09:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XvVYalsQ; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-wireless+bounces-6908-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6908-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A77741F2262F for ; Fri, 26 Apr 2024 01:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CBCBE17EF; Fri, 26 Apr 2024 01:09:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XvVYalsQ" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 0A06B17C2 for ; Fri, 26 Apr 2024 01:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714093741; cv=none; b=eYNW3Ah9RCjFk/6Jjqwd1tnItyfVnvmp/usxbPQpIPUak3e2ECW4gQr2rneVhUvw0LEREEXknO0qjDNhd9eMLaczvTt4yflzjBbAOSZX/fz4OYsBehcJnVjxbKHXOWFMfJHrir26tzbbQui4JckMW5ABQgSXtAhRCIixWngmgHQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714093741; c=relaxed/simple; bh=mD85VhI3w15gmvfp3YL8kqnwEiMwGThbedZmJ+FmX40=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Zzr3HtWYGO9DsZbDeRfqFQxbGzJMXhRuoHXopkl3l0c+dQaEqNhper2eF6yZl/lDMfz0RQHmpOn9jAKfTSHZxbMt82WNqhiwW6/8bNPJ+lmSB2FiMfcp6fTUSexAWbfsPnfe353IgOCxfy4sYByMlWvnu/dlclOaO05cbBVhswo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=XvVYalsQ; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a55ab922260so221380666b.3 for ; Thu, 25 Apr 2024 18:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1714093738; x=1714698538; 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=mD85VhI3w15gmvfp3YL8kqnwEiMwGThbedZmJ+FmX40=; b=XvVYalsQ/fKnSwsJURMvjMYcTHJTNy5tNeqQvkAntsJhd07ABwPWeX+bR8ICii317l +m/hvaOv/y1Ud9N+6JIo9RhAyoSx9/Tg97QhvyI6S7bNcuIHrMltRPXtD4RXuyqHEWas ZmZDVJTy56nXSr/7IneMlxs/z9eaIdwPSWQ5A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714093738; x=1714698538; 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=mD85VhI3w15gmvfp3YL8kqnwEiMwGThbedZmJ+FmX40=; b=pC0UTVpyuN51+1jgTviR58+SoFw4oM9Grw47sFY5Vn6ctyIISoc1FBv7SFrDyhkiex 4bpmt/fChLd+mzuBn9A1q4HkNF1RTQoqvFjCQeO/ID8tw/CvIgk0gcTr4gISVLsxuaA4 F9yzI6cxwBA8NU2lZ9RJiIaaXe6UQN1fc/VGjtFOs6s3i3Xyfd0kQWA7KBC7dLbCUgXp vsIFbd+nA3xhr73Kpj2QVd4IV4kYdLBocEMYFIYBAJhCPnLIk77vEXz1M/DmCH8T9OVs nxRj1Nu5mr8chS1yfs3yFdm1nMa5DxZfwUpmpflRaCn7ryy5SIsyiuQjUByb8M7a6ELC x+HA== X-Forwarded-Encrypted: i=1; AJvYcCXVtntWeBwg3Dn7D3K4MRIGJfraUAfqFix97UOc3J0ksbpQfWq+mSG1AGauR29+6/82k0TWySleeR5yz74+mOjdAdruwe6i6zWRz8rfvsg= X-Gm-Message-State: AOJu0YzuzAzVxA5JPzwTqD1yMLuHxRVbH78XrD5LgZh6Qdiwk5TizpE8 /fulX2jcn1Fpur/uVdgrqtR/F7DwTTiBgo5BNQV8ccP3i8bOS/5bUyQX6LPJERlKiDokmfzUTn9 p9w== X-Received: by 2002:a17:906:15d7:b0:a46:bfe2:521f with SMTP id l23-20020a17090615d700b00a46bfe2521fmr818668ejd.24.1714093738018; Thu, 25 Apr 2024 18:08:58 -0700 (PDT) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com. [209.85.218.46]) by smtp.gmail.com with ESMTPSA id le23-20020a170906ae1700b00a4e4c944e77sm10033668ejb.40.2024.04.25.18.08.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Apr 2024 18:08:57 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a58a36008ceso205954466b.0 for ; Thu, 25 Apr 2024 18:08:57 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVWh8jx1Qqi/tbilMkTnSUwi/gNvWnVn3bprmxhOxyfI6s1nqZaSFTndYeNznYzErxLF+cHjL/rbxZGK9J2lkT33mg3CeIgCX2SByBm7tI= X-Received: by 2002:a17:906:2718:b0:a52:65bd:a19a with SMTP id z24-20020a170906271800b00a5265bda19amr753070ejc.57.1714093737062; Thu, 25 Apr 2024 18:08:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240418060626.431202-1-yu-hao.lin@nxp.com> <0ED16BAB-6E7D-487C-BBCA-E63FEF37C60D@holtmann.org> <6CB59E09-F34E-4986-AA88-8EC4EE5E71DF@holtmann.org> In-Reply-To: From: Brian Norris Date: Thu, 25 Apr 2024 18:08:46 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [EXT] [PATCH v10 0/2] wifi: mwifiex: add code to support host mlme To: David Lin Cc: Marcel Holtmann , "linux-wireless@vger.kernel.org" , LKML , Kalle Valo , "francesco@dolcini.it" , Pete Hsieh , "rafael.beims" , Francesco Dolcini Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi David, On Wed, Apr 24, 2024 at 7:40=E2=80=AFPM David Lin wrot= e: > > From: Marcel Holtmann > > > > Hi David, > > > > > Johannes agreed that cfg80211 is the correct way for the development > > > of mwifiex > > > (mac80211 can't offload association process to driver/FW). > > > > that was never my question here. > > > > This is previous topic discussed with Johannes to confirm cfg80211 is cor= rect decision for NXP FW. To be clear: external_auth() is a cfg80211 feature. So this part of your response still isn't very relevant. > > > This patch is used to fully leverage SME of wpa_supplicant and hostap= d > > which can complete the missing WPA3 feature of mwifiex. > > > The patch series had been reviewed and discussed. It looks like there= is no > > more comments for patch v10. > > > I wonder can patch v10 be accepted by you? > > > > If your hardware is a FullMac hardware then what is the point in now > > separating auth/assoc out. Is this done just for WPA3 or also for WPA2/= WPA1. > > Yes. Our FW can's support WPA3, so this patch is used to hook separating = auth/assoc to > leverage SME of wpa_supplicant and hostapd. WPA2 is also handled by SME o= f > wpa_supplicant and hostapd. > > > Are you no longer a FullMac hardware? > > You can check previous discussion with Johannes, FW still needs to involv= e association > process, so mac80211 is not suitable for NXP FW. For the record, that's the v9 thread, around here: https://lore.kernel.org/all/7a08dbcaded25ec0d32865647d571afbd66062fe.camel@= sipsolutions.net/ > > You keep saying that you just want to support WPA3 and if previously th= e HW > > worked as FullMac hardware, then external_auth should be the way to go = for > > having SAE handled by wpa_supplicant (or iwd for that matter). > > Although external_auth is one way to support SAE, but we think hook separ= ating auth/assoc will > be the better way to resolve this issue. In this way, offloading SME to w= pa_supplicant/hostpad will > let any future changes be easy to support (we only need to check if there= is anything that we should > do when converting association request to the association command support= ed by FW). Perhaps I'm missing something (very likely), but I don't immediately see much difference (with respect to your FW API, and future extensibility) between external_auth() and your current solution (of intercepting auth()/assoc() and constructing your own AUTH frames). It mostly just means the AUTH mgmt frames will be coming in via NL80211_CMD_FRAME instead of being manually constructed within your .auth() hook. The external_auth() approach actually looks *more* natural than your current solution. How exactly does your solution make "future changes [easier] to support [than with external_auth]"? Do you not trust that wpa_supplicant will provide exactly the right NL80211_CMD_FRAME content you're looking for, and you need to tweak it to make your firmware happy? You're talking in extreme generality, which doesn't make it easy for me (and presumably Marcel) to understand why you're choosing one solution and rejecting another preexisting one. > > Now if you are fully embracing to auth/assoc and we can remove the supp= ort > > for the connect ops, then lets do it. However I don=E2=80=99t see anyth= ing properly > > described in the commit message. You keep saying WPA3 support and nothi= ng > > else explain what the new Key V2 API of the firmware would do. > > We give a flag to let user to decide to use connect ops or separating aut= h/assoc. We will remove > connect ops for our new nxpwifi driver. New key V2 API supports more key = solutions. To add to this: AFAIK, you don't even have "v2 API" firmware published for all chips that mwifiex currently supports, so even if we wanted to completely convert this driver, we can't do that today. Brian