Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp91877lqp; Wed, 20 Mar 2024 14:50:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7GdTER5oXLAXsGiXzS79gQdmoFJDNP86WENLMHomGEQni5FT39dPZKeYHa5PpK0e3I5ynvBJzMhP5CSteRZX5alqqDXdvLDbqtlq+/A== X-Google-Smtp-Source: AGHT+IG+6lN0GTxDRWMFuuAADu5KbYPjwv5fmP36UGzQKWXAz4ZjSxb19c8CT7MZ/6QUN32055rY X-Received: by 2002:a05:6a20:4e28:b0:1a3:50be:b3bb with SMTP id gk40-20020a056a204e2800b001a350beb3bbmr2562643pzb.53.1710971437989; Wed, 20 Mar 2024 14:50:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710971437; cv=pass; d=google.com; s=arc-20160816; b=nlVMuLrUw8W9789+Lb1Q3cM/mtUHDHa4oUnKS4eHG8GSpJqqxyY/9PQsrKKvH9hArX 3Rv1Ss1NrQf/dBqcos1HP1dB80UQJqDzVodChWuwum835wuIgVvXjsKo0UEcxt3a/4z7 CzmcnvrsDbtlTZDw1PyQj8dHughcdjoP7mlvZFKSr+snmSpOrHEflETJBK9VO9ifXZzp 725pl+IjHTp0zl+cdCLQrwZUllMhMYuS7aPNpu4qYu5VNO6uIOZ6BJiVHbWszH04niSY tAr6jSJpKMxop76NXawf0ximdpMFTBsRuEEfJis6XF9LrwsiYB/ZtRr51DrQ2D9Qitzy /PlA== 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:dkim-signature; bh=7e5DS/yA7HbHfT6B5LGwx48ERu4SeNkBqpRXvy8fkH4=; fh=rM1DC3yeAD2l2VnKmRe8HnwtIe1DQm9kaKBwbN+jHM0=; b=EgjpnJnYqQKP9r2+gdfgiM/MNe2iYM54ICTMABVn4sGr0f/b400pqfLoXmQoIhwkuW l/rteTwbgFoa6Amuu8ZL3h/96SE7lUAOeGY4gjKXueb9QsI5vSLZ18+aM+lD+is/VdD/ IRZrADfBrk6dfQUBxkQ9ZYCc0LG3r2jfPhBiCwXS7fziFvRVpoelPaL2nEHfSAoQ2YBW ha7zBJHoR0NwXsUaGezoedQi42oEiI6awT2BEHIGnTcDVPHGsgHH/QFK4O62guGgHvSz FslV6gR5B4DdWCd/lDVXjum5hELHCLlXlqj+iCvFnXcAaM91C3nMtPyNfqkwRT6IZMMW 9jLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NVYwzLlt; 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-5064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5064-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 34-20020a630e62000000b005e81d20ec7dsi12974151pgo.877.2024.03.20.14.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 14:50:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NVYwzLlt; 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-5064-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5064-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C6D32831C8 for ; Wed, 20 Mar 2024 21:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 05F0185C45; Wed, 20 Mar 2024 21:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="NVYwzLlt" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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 5D4C5BA45 for ; Wed, 20 Mar 2024 21:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710971432; cv=none; b=KFvWmgKcjbQrXsgjMLAKkpYslN7w4v7vrDmBql7/Y/l+GHYiennXI73gnTwH6U0DksXSTZnBgP0sX9zum/CupdBdO1lp4jmMZD/xE6Fq3skRbFAFq1FJgkVObJFj+zsqHIiW/tfeqAI7wuHQwAuWOM+iklpb0+ihzh+l3VL/aFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710971432; c=relaxed/simple; bh=GIQekNhKN6ZhVqvNkVI/XRisn39GJLGs4aMBSBeIl80=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WOaRHeLB4/KID/ymN4x9pUOiImq582qJbq4ZuylTpURjExsKpFW1eyO2/fxYjYacPN8A7l5Wl8Q0ayu3mGF+B0CzDYggMdvdaZXkqEzVBH8lhPqCLzvTehIBtSFKQKSJ1FsUTarm8XO9bxIQg9FqvnIe276nM8fCOl68AQbrKno= 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=NVYwzLlt; arc=none smtp.client-ip=209.85.210.45 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-ot1-f45.google.com with SMTP id 46e09a7af769-6e67b5d6dd8so152566a34.2 for ; Wed, 20 Mar 2024 14:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710971429; x=1711576229; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7e5DS/yA7HbHfT6B5LGwx48ERu4SeNkBqpRXvy8fkH4=; b=NVYwzLlt+EZUjEHnZLPfCjl3Ly/CoWKyg8hQKVjMoUEGHZ1Lfl43lM+eOG2MVzfSjO VhvNzBfsJCSXBaIUEf8fA8Rkv9E7HzMFm3kWLfB6NtpboBkWKNmRoaY5SXgpQXSZcuHQ YyT+6XS7OMORMaq5fW025gX6PTMA+mdTbeEQw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710971429; x=1711576229; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7e5DS/yA7HbHfT6B5LGwx48ERu4SeNkBqpRXvy8fkH4=; b=vux0mSFM5Ap1Tqby+4u0fJMa39tYyG0Lyo9Txg23cwGkhjCA8I1JkF7ofBBbBlo1s6 cUhIlDjwUF9+SPzYm8xj4TCmj5yw5FI7mVtrrl4IICC2hOgIKH6Tg/b+bqHbprYCL7+q LVFBYFH/9j+Kjy6rIPCdi9O0jZu/VF3oScF6wUOelQY4cZvJJsh/jLrd0hQVqhSPejHe bKO+wOgLfdQonGMPUL7JU7UUPSu/he/bNL0HiuIYzeQGizxx6lR/25gViTa7Uog2BHJj 0O2gQTFPmOViFpZfB6SyjTjkaaWkIHu/gjG8dKZn/tIoUAVovMFr2AA0JtWPrlX4vgOI SNMQ== X-Forwarded-Encrypted: i=1; AJvYcCUoR3MkGCNaVoyIgdoRkzaq7E+CRchDQyf7NMiWry5ESjfxm3kmnlACq8L4TcEpLyiRLYycTZvWuEOKzKrSJCX7JsEX48J2U/gfykBPE4s= X-Gm-Message-State: AOJu0YwnRGgFjdU4LJnT42hgiYg6/eHacrwfJEByRDUrUrOBeFYK1smO yDb0bmuK7FFz39UqZ4ZHD3JubpKApkeHTwT23RWUcaK2prpJYEed6M4OS9NM1Q== X-Received: by 2002:a05:6870:527:b0:221:cb66:c36b with SMTP id j39-20020a056870052700b00221cb66c36bmr3566275oao.4.1710971429612; Wed, 20 Mar 2024 14:50:29 -0700 (PDT) Received: from localhost ([2620:15c:9d:2:8598:2b3d:6e11:4163]) by smtp.gmail.com with UTF8SMTPSA id k21-20020a628415000000b006e6bf165a3asm13056754pfd.91.2024.03.20.14.50.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 14:50:29 -0700 (PDT) Date: Wed, 20 Mar 2024 14:50:28 -0700 From: Brian Norris To: Johannes Berg Cc: David Lin , Francesco Dolcini , "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pete Hsieh , "rafael.beims" , Francesco Dolcini Subject: Re: [EXT] Re: [PATCH v9 0/2] wifi: mwifiex: add code to support host mlme Message-ID: References: <20240306020053.18054-1-yu-hao.lin@nxp.com> <20240315094927.GA6624@francesco-nb> <969e95ccc4a1d35b45212b7fcb536ee90995e3b5.camel@sipsolutions.net> 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: On Wed, Mar 20, 2024 at 10:12:45AM +0100, Johannes Berg wrote: > On Wed, 2024-03-20 at 01:10 +0000, David Lin wrote: > > > > > > > > Also decl.h should probably _shrink_ rather than grow, a number of > > > > things just replicate ieee80211.h (such as MWIFIEX_MGMT_HEADER_LEN > > > > really is just > > > > sizeof(ieee80211_mgmt) or so? Not quite correctly.) > > > > > > > > > > This can be done for feature patches. > > But this is a feature patch :-) I'm going to hazard a guess David may have meant "future"? But yeah, I get overwhelemed at how similar-but-not-quite-the-same definitions in this driver sometimes. It definitely could use some spring cleaning. > > > > So yeah, agree with Brian, not only would this be the first, but it's > > > > also something we don't really _want_. All other drivers that want > > > > stuff like this are stuck in staging ... > > > > > > > > So why is this needed for a supposedly "firmware does it all" driver, > > > > and why can it not be integrated with mac80211 if it's no longer "firmware > > > does it all"? > > > > > > > > Johannes > > > > > > Our proprietary driver is cfg80211 driver, it is very hard to create a brand new > > > mac80211 driver and still can port all tested stuffs from our proprietary driver. > > That basically doesn't matter for upstream at all. +1 > > BTW, vendor should have the choice to use cfg80211 or mac80211 for their chips, right? > > No, that's not how it works. The choice should be what makes sense > architecturally. And to put some specifics on it, that's what's described here: https://wireless.wiki.kernel.org/en/developers/documentation/mac80211 https://wireless.wiki.kernel.org/en/developers/documentation/cfg80211 (I don't consider myself an authority on this stuff, for the record. But:) I've often felt like the SoftMAC designation has a very fuzzy definition. Or, that definition is very much subject to the whims of the hardware/firmware vendor, and can change from day to day. For instance, it feels like there are plenty of "fat firmware" features in mac80211 drivers today, where pretty much anything and everything *might* be handled in some kind of firmware-offload feature, in addition or instead of on the host CPU. But a key point that *is* a pretty hard designation, from the mac80211 page: "SoftMAC devices allow for a finer control of the hardware, allowing for 802.11 frame management to be done in software for them, for both parsing and generation of 802.11 wireless frames" AFAICT, mwifiex firmware still isn't allowing "parsing and generation of 802.11 wireless frames" in any general form -- everything I see is still wrapped in custom firmware command protocols. I do see that the AUTH frame looks like it's essentially duplicating the standard mgmt format, and uses the driver's TX path for it, but there isn't a corresponding ASSOC management frame that I can see... ...so I really can't tell how much control this firmware *does* give the host regarding arbitrary 802.11 frame management. But that's pretty much business as usual for anybody but the vendor in priorietary firmware land; I can't answer pretty much any question, other than what I can glean from a driver. Brian