Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1147208rwb; Thu, 19 Jan 2023 07:11:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXs15gT9fhUGXWJbqT5QWYARP1eQZb4zL8BIZxtl/lVS7o38UlzN4ig24JCm8KgpGksgxP76 X-Received: by 2002:a17:902:e887:b0:193:e89:f5ff with SMTP id w7-20020a170902e88700b001930e89f5ffmr43284540plg.28.1674141071363; Thu, 19 Jan 2023 07:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674141071; cv=none; d=google.com; s=arc-20160816; b=gxvQzs9Ex9TTMTlba7lmgT/KbF4VEpYYL0eRQ0hw04diJTi9PFkt2NHXsKSVWDgFDa JAPsk9gnsXdCINai3T+TT8bY3szM3vikVEgPIDq9bkaQF3lQAOjp739vRZAzqUxk8nXY nESDHok7P/VoA3A4Xf1c1g7oqhfpTxpVV0BGa6enlV/2PpSFpp71s4ELxWgOfV65AVG+ aN4wYfIsgkMhpvpUTJu3U2fOUS/ZhEqY4rlN6CB25l1A+hZNMaFIjoKUAR2PNDn/0bGY mz5hZ/X89ViBobLNqSzBuqYLn7cmRuap1o8DeBl03WvKeEOYgAy4T8sjDzpeUDxRAqgp R4Gg== 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=fSwHA9PomlSjQpLyQfCb4Of4h1G5qH8wXJrataBuYyM=; b=NL+h9bhoyFRYaPGGODSMDF23WKtkAz9DjWzZLg96C0W1EBhTKRxlgABoESf8C3BfqN /COtqVsAlJ7IlQoCQbo8uSKlZujV4iIueHPN9deOmirvD8ZxPaDXiOG+KmTvEX2abe/G 6TY9Dv8aJefgbI5sHb+PIwjAzFcJ581T7GWFviBWrLTyvgDrLWa0xnKXMLrMzB0NWc33 IVYcvKgHE02ZznAU/cXVPGT4+Sd/Khp3FHCgtKKtcz1jN93BZRzVOiW46d8I1eLSzPHu hyzrY/j/vPMgUdvYqpIzzLhmvQtXlGKR1jltCfj4LLrGGjOUXGGieCT6RZm4YxfuPtSm /tFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=g9Jx7aqx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b00189c6fbf963si45133804plh.478.2023.01.19.07.11.03; Thu, 19 Jan 2023 07:11:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=g9Jx7aqx; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbjASPJv (ORCPT + 63 others); Thu, 19 Jan 2023 10:09:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbjASPJt (ORCPT ); Thu, 19 Jan 2023 10:09:49 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74D4769239 for ; Thu, 19 Jan 2023 07:09:48 -0800 (PST) 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=fSwHA9PomlSjQpLyQfCb4Of4h1G5qH8wXJrataBuYyM=; t=1674140988; x=1675350588; b=g9Jx7aqxXRxy0pdnzWN9iRv0ii79zNA4R7T4MpFz/WladQC /l6sJeNOBK32qTMxz+bCqxsk8XuGi6kEyG+zBnkMAG25xbWpzPbKcrPEngLLf3BGQDeRsy10FQkaB rGkHtfDpZ0CzwkRbdolZnHZX9HJVg5wVYG7/iFZBpBsuKFVhugDzKMuV/as+YRS+4WhQNYrZTk6qZ oVogoTe/2NDsQZ0WNfmsZzdLTqkiaQaa3DtLgwMXp016hV//lR3ws7v4e2qgtKgAOH+kU2hSmJG9t APU9nuRC1a1LP9TwiG/bs02DMaEPJEG041n6DjPYWvN9GLFJrRuzYJL9Nw2izdAg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1pIWXy-006YUq-2H; Thu, 19 Jan 2023 16:09:46 +0100 Message-ID: <3e269bce8d73577fb1183697655d6ad66edf866f.camel@sipsolutions.net> Subject: Re: [RFC v2 5/6] mac80211_hwsim: add TPC per packet support From: Johannes Berg To: Jonas Jelonek Cc: linux-wireless@vger.kernel.org, Felix Fietkau Date: Thu, 19 Jan 2023 16:09:45 +0100 In-Reply-To: <951FA42C-E52F-4FDB-AB73-AEF76435380C@gmail.com> References: <20220920104032.496697-1-jelonek.jonas@gmail.com> <20220920104032.496697-6-jelonek.jonas@gmail.com> <5d15d193c76dcc2cbd59b26912973e3bce34c776.camel@sipsolutions.net> <951FA42C-E52F-4FDB-AB73-AEF76435380C@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2023-01-19 at 15:32 +0100, Jonas Jelonek wrote: > >=20 > > Not sure I like this either - I think we should probably create the > > wiphys dynamically for most features these days? >=20 > just to make sure I got it correctly: so you propose that these > params, that are=20 > currently done with module_param(), should be switched to a dynamic > netlink approach, or only for TPC and RCTBL for now? We do have dynamic parameters for all the module parameters I believe, but we've shied away from actually removing the existing module parameters for legacy/compatibility reasons. However, I think that for new parameters, there's really no good reason to provide module parameters, since the test scripting etc. can dynamically create wiphys with the necessary capabilities. Even the hostap/hwsim tests can and do already do that :) > As a first step I focused on providing a proof-of-concept > implementation in hwsim for my > TPC proposal, implementing netlink to set tx power and other could be > part of the next step. > Do you think this could be fine or do you propose something different? I'm not quite sure what you mean by that, tbh. I guess I kind of thought you were going to adjust minstrel to do TPC automatically. We already have netlink support for setting per-station TX power which I guess this should then listen to? See NL80211_ATTR_STA_TX_POWER_SETTING and NL80211_ATTR_STA_TX_POWER etc. I think it's not supported in mac80211, but probably could easily be after your patches? johannes