Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2833478lqp; Mon, 25 Mar 2024 10:26:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXf5ChVJV3tB+4Qu4tCThArmg4oYZlId/TBDAACiqizbzDUnw0kGuPBfwzudeq1J/tRxguW5QlkMrCufGM9lAJ/IbCovsHEh6QweBrEmQ== X-Google-Smtp-Source: AGHT+IEViaIPbmXfdbVpCLJFMN3AC3Xjg3biv+reHPNyxTCREQOydDU1yRdD8gnTwwLp8ccEnkoo X-Received: by 2002:ac2:538c:0:b0:513:93dd:9ecd with SMTP id g12-20020ac2538c000000b0051393dd9ecdmr5217521lfh.21.1711387592342; Mon, 25 Mar 2024 10:26:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711387592; cv=pass; d=google.com; s=arc-20160816; b=QERYUOl7jPcwno34/X+vkJe5hfep9KksxhAxsy1PegKjptKHZr1FLu0tyEp/8EiZQt bGcx0s2duj/JfT/dhNDtJP9p4IJklfJAnybHdhAS/AqtZjiTBXiYdt1u8CCz9UMq0tQX RfAanhbZgbPLRVREJZZmt/7v9f83+uDCEziLGWFiIKRRO6ozyCpMheuQO8WQ1cCsteC0 YNpGARfJOAbZCnvSAtddn15e6ozAXnqMmRou5Rmp+/o4TuK0FwNbjUFAowZr8iecUdll J90uKOwJLUaMWdXZe9u7KC6HHx3EiWzhVN/jH8UwB8KMEyUj5lWh2wFm8fnsZcyI46Tl 2L9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=rjspqZsDWKxvQxYi5AzFtoSi9F2zWzwMbG+B1uCJKOg=; fh=LdZjNq/2ntB7ZMunsPU7r9gXHwyeXCsHinVvXKdguZo=; b=t7AToMpUchZTRSbqQplvMLTOplA5QS4fJ5IL9wLwOXu/kp7d8RDo+cVGV1RXKYcjMJ N4jekPJGf2AW2O3lw/s17Fukt90jj2+xeT8QN9y2+DyOrcNgZSZCSD/KWwKRbpinItE0 tzzhFLRZg4KeiLcKbrR9987j/4ye19ou69xuTRKFzmgORT79BQU3gK6xrVcldpg1geYJ ply2S7V/R1xIGwo6oQNDqf5u8i8xF7yVRLfACrVaR+dBBBZOkJz7+EBw7WABzEuqR8az K7SBkVS0NzSsbft3+F1fYs4e0sjcwaz2THPaPvxMUwqwZw7aGB3tEIfM3RjwVwaMoUgZ EnDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=ctE1BbDJ; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-117442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ho39-20020a1709070ea700b00a47474bb9a9si2391276ejc.673.2024.03.25.10.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117442-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=@sipsolutions.net header.s=mail header.b=ctE1BbDJ; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-117442-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 E64161F654CB for ; Mon, 25 Mar 2024 17:24:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 95A136F071; Mon, 25 Mar 2024 16:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="ctE1BbDJ" Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 03435762E4; Mon, 25 Mar 2024 16:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711383324; cv=none; b=XDmwFVQSAZ8E58LnymLP9smqwEIuE4vGFCvsxActhb5vyFSdUeO9FRS3KzEN+Y7eFnQ4fP5I7HuYuA4/RykSa7DRz9Sen/tbELi4Hl+U+ZMfPS1nc4Exp73JLpWSv+1SbQ9SCsXZg8lUSpUfUrUkg6gbjvg9+RhrXGBEcRkoRUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711383324; c=relaxed/simple; bh=rjspqZsDWKxvQxYi5AzFtoSi9F2zWzwMbG+B1uCJKOg=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=AR7eFesJxHAnFuY11ysVY+Ft+j3zR23re6ifIb7+GrKoyDhLeSWevt7EtAZGpsNNZ1QXNd8Gl0nw9Pnw4GN7Mfi51nFc0KAlmoXlVWpgrDOGNGccd1CUNYaxs0SKRcbfjrnS2rai22Gw8mqGDoKhuuIGslQq8UcdCerxbyyCvMM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=ctE1BbDJ; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=rjspqZsDWKxvQxYi5AzFtoSi9F2zWzwMbG+B1uCJKOg=; t=1711383319; x=1712592919; b=ctE1BbDJfe/IZ4XW0ueCfiq0gF4JZ6OeTwB9k1n7QChuVBj 6x+u5is2EWyP1/wIFdHDyV3DFuiAsL6L/jR+wosHX+uOaBzRb8GUFsMo6m6em2i6LPwGyhrGc8CRi FVt9ZBq5y4PXlLZtWM6YeuUUdTI+I48yDvw1lCxoCOsoLSbdtrSXArQjgHe/nDk+BkwUhsYofki3R TTMLlg9Xc+QFkPu5AsrRqwdm1vCDlrXWnwWAnRSbhiQDOeeivFLQxeUlKTca9vpDIGdPkHQhKdSyj k2j8zA7TNfP8ginAGDFzFnAzjBkewJqfTjjZDCugZuvqmIu1iwgUfKgJu/253gbg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1romye-0000000DwQZ-3Wpf; Mon, 25 Mar 2024 17:15:13 +0100 Message-ID: <4e5f3741819e457c5c79d825c6520cb9ee531b95.camel@sipsolutions.net> Subject: Re: [EXT] Re: [PATCH v9 0/2] wifi: mwifiex: add code to support host mlme From: Johannes Berg To: Brian Norris , David Lin Cc: Francesco Dolcini , "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Pete Hsieh , "rafael.beims" , Francesco Dolcini Date: Mon, 25 Mar 2024 17:15:11 +0100 In-Reply-To: References: <20240306020053.18054-1-yu-hao.lin@nxp.com> <20240315094927.GA6624@francesco-nb> <969e95ccc4a1d35b45212b7fcb536ee90995e3b5.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Fri, 2024-03-22 at 18:06 -0700, Brian Norris wrote: > We appreciate it's well tested, but testing is still orthogonal to the > architectural questions. Architectural questions are important because > they affect the future maintainability of the mainline Linux wireless > stack. If the assumption is that *either* a driver is a cfg80211 driver > (with firmware-MLME, etc.) or a mac80211 driver (with host MLME), then > your series is breaking those assumptions. Maybe, maybe not, actually. The auth command _is_ somewhat special in that it mostly hands stuff down from userspace via cfg80211, but does require sending frames. As long as you don't have full offload, at least. The way I see it, the issue here isn't necessarily the fact that this uses the auth command (and then requires assoc, of course), but that we see here this is "growing" towards a more mac80211-like model, with the code duplication (albeit little that it is today) implied by that. To me, it seems like the firmware is moving into the "oh we can't do all _that_ in firmware" territory, and that brings it closer to mac80211. At the same time, as you say, mac80211 is doing more and more offload capability, so it seems like apart from "today the firmware requires an assoc command rather than assoc frame processing in the host", it's actually not _that_ far apart any more! Now that may be an issue in the short term, but I wouldn't be surprised at all if desiring to implement FILS and other new features in this space would make the driver move to assoc frame processing in the host as well, because it's getting more and more complex, just like auth. At which point - yeah the APIs are still significantly different, but again we'd end up implementing something that exists in mac80211 today and taking it into mwifiex? > It may be harder to add > future additions to the mac80211 stack [*], if we have to add new > concerns of a non-mac80211 implementation in the mix. Not sure that makes a difference for mac80211 in itself, obviously changes in this space would then affect mwifiex, but that shouldn't be much of an issue. I'm less worried about this individual patch than what it says about the direction this driver and firmware are taking, and I fear we'll end up in a situation where over time this driver actually gets to a point where it should be using mac80211, but because it's such a piece-meal affair (auth frames now, etc.) and large architectural change, they'd never actually do that. To be fair, that might also require firmware API changes in some way. I used to think that was something we should never require, but I'm not so sure now any more - certainly we've changed our (Intel) FW API in support of Linux architecture many times, and overall that's for a better product (on Linux at least.) Also: David, I'd appreciate if you actually took this discussion seriously; so far you've not really contributed any technical arguments. johannes