Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3175065rdb; Wed, 13 Sep 2023 04:40:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsVr05GnlarfRp4+3BHqDmJ3v89TxIl6ecTRvghedxkW6jLzsS3qp7jxAGP/o5KmuezWLH X-Received: by 2002:a05:6359:5d20:b0:13a:a85b:d024 with SMTP id ps32-20020a0563595d2000b0013aa85bd024mr1749461rwb.30.1694605216679; Wed, 13 Sep 2023 04:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694605216; cv=none; d=google.com; s=arc-20160816; b=HvuPpe1MKn7tDqeBy4+OlrRI9EjcAhBq7a2ik6UHxxM0u0GhN1xT6EsIkQNRzAN93J B+Zts0ilvhq+6jeUHLH8k6JOKxtKSBcHDzX5L61syg1X5KP2xOaBzwTpRadfrvukYtOq yrgfH+OPk1pBgOLPPVV0ZWaM8UASH2tUxPqu6A0JdMtJSzJymSwR3n5XkIjU/U2amjBz 4ZUbUJiUgN9EehhXPcw0+I2PZOgjpc01skpySvqIKnAKej/o/FeujAFDn4/xYivmdMWy 5RVsS+ZDvg3F8P4EzdOBxq1eY2zVSZS19F6bR1TRmO4guFdjBdrTqWMXGsO+skNhvnLz yquA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Bmm8ROjiU7jXVvIzKcZfOvVErcHfo8gWfx2kFUdED7E=; fh=wwyMslDhgts/rvRRk78GKsVbriwxQL3Ee7B0q9Eg9H0=; b=lobddfNbAyweTpawhKf//1JXNVqHUm8e7J7hoqMPHXdCVSC8Zjo6Pv85RaW4vBtLdx 6fbk1PTIlRV9PCRTiOBoOeKr3jDhOKeum8pyo6qRy6usEubXK9F4zT9Z+49br7PundgA UXcozF7gYj+wIlvuC2u2X6n3lPCVMxpiAcdpB1fOLjFUl0O5LKtTnYZczyApDy8LBmei WyyxmpTGAmf1uym9hUTTNwalVIPGD8rzSH7JKPaWvYcqaPXCgyBCydShEx+c5sYFk8DP h0sV97FL73ibtwfQsA83J0oRlc2vuA0jNeo8JMCWUknwvkAGy9RB1HZEco+Sovn8ocTI uVTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=yO6PYzf4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w24-20020a637b18000000b00565550ba905si7193161pgc.622.2023.09.13.04.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 04:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=yO6PYzf4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 15B5B82C4019; Wed, 13 Sep 2023 02:54:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236400AbjIMJyH (ORCPT + 56 others); Wed, 13 Sep 2023 05:54:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239548AbjIMJxz (ORCPT ); Wed, 13 Sep 2023 05:53:55 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65462D62 for ; Wed, 13 Sep 2023 02:53:14 -0700 (PDT) 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=Bmm8ROjiU7jXVvIzKcZfOvVErcHfo8gWfx2kFUdED7E=; t=1694598795; x=1695808395; b=yO6PYzf4h13loclhNT7jrK/SoKWzIhvsimRL4T4HoNXG3AM s3JvU+wHlTc6ZoPyvAkyb53FSLHZmkAlR8pGovC432zqaajyQCDVU6QL7t/0VvypXO8OP72xguC8q 3A1hMGmAXon5Pm9yFRTqns3yPwIqf8Bf7ddamFlZ3u3j0NH8rr1kgpjm5xRaBT7oRXVm/C0ywKv10 FYholrDUQpCagDDGfUPU6MzvjJAFKX0vB4rInUrN8JoUGMyiTHUgjOBucElk8O/QercHt4qgLn2JS TPU9PO+B14rynC9cLnjwlqwJOZHYV1ySQ57pxFYvBybH2Y88e4uG0w2Wkyc90gHw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgMYZ-00El0k-2o; Wed, 13 Sep 2023 11:53:12 +0200 Message-ID: <7fe399002ba482ee8e55a937b5075e0f78d77898.camel@sipsolutions.net> Subject: Re: [PATCH v6 3/3] wifi: cfg80211: Handle driver updated MU-EDCA params From: Johannes Berg To: Muna Sinada Cc: linux-wireless@vger.kernel.org, Jeff Johnson , Jouni Malinen Date: Wed, 13 Sep 2023 11:53:10 +0200 In-Reply-To: <1682960363-15452-3-git-send-email-quic_msinada@quicinc.com> References: <1682960363-15452-1-git-send-email-quic_msinada@quicinc.com> <1682960363-15452-3-git-send-email-quic_msinada@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 02:54:05 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email > * The number of peers that HW timestamping can be enabled for concurren= tly > * is indicated by %NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS. > * > + * @NL80211_CMD_UPDATE_HE_MUEDCA_PARAMS: Updated MU-EDCA parameters from > + * driver. This event is used to update dynamic MU-EDCA parameters in > + * management frames, coming from driver and now need to be reflected in > + * management frames. Not sure I'm happy with this description - it has all the right information but feels a bit odd? And the first sentence isn't even a valid sentence. Please rephrase. > + * @NL80211_ATTR_HE_MUEDCA_PARAMS: MU-EDCA AC parameters for the > + * %NL80211_CMD_UPDATE_HE_MUEDCA_PARAMS command in format described in > + * P802.11ax_D4.0 section 9.4.2.245 "in the format described" or maybe "as described"? > diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c > index e9e939706630..af36440f2a51 100644 > --- a/net/wireless/nl80211.c > +++ b/net/wireless/nl80211.c > @@ -816,6 +816,8 @@ static const struct nla_policy nl80211_policy[NUM_NL8= 0211_ATTR] =3D { > [NL80211_ATTR_HW_TIMESTAMP_ENABLED] =3D { .type =3D NLA_FLAG }, > [NL80211_ATTR_EMA_RNR_ELEMS] =3D { .type =3D NLA_NESTED }, > [NL80211_ATTR_DYN_MUEDCA_ENABLE] =3D { .type =3D NLA_FLAG }, > + [NL80211_ATTR_HE_MUEDCA_PARAMS] =3D > + NLA_POLICY_EXACT_LEN(sizeof(struct ieee80211_mu_edca_param_set))= , This is output only, so arguably should be NLA_REJECT, or just not listed? > +EXPORT_SYMBOL(cfg80211_update_muedca_params_event); And again here (adding Jeff and Jouni), we have an exported cfg80211 function that, as far as I can tell, you have no plans whatsoever to use in an upstream driver. Yes it's only 130 lines of code or so, but still, someone has to maintain it ... So please resend this only when you have a user. Until then you can trivially use a vendor event for this and I don't have to care, and I don't even have to review it and address all the stupid little issues like missing documentation that you'd have found if you had any internal review worth calling that. johannes