Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1066350pxu; Thu, 8 Oct 2020 02:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFPBU2j0CyOV0Y+kK5e8/Hppae2+wwnfMj6+MBI2+4Y0zPLkwNxc9UkGuuMjq+DSoRQSxU X-Received: by 2002:aa7:c442:: with SMTP id n2mr7870980edr.309.1602148861464; Thu, 08 Oct 2020 02:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602148861; cv=none; d=google.com; s=arc-20160816; b=HNt125j++bcwgjfDmt08Uy1NeObzMMfTvuHabLlh5T4JD4cjQLwT1DiCK48xWL2m99 sI2ZdZrkVyTn3TrN+BYHk1myPsvgaSpQOSEJf1WgHzBXhgN3Tqwe6spR8kNj0SRII96S de7FvXiu1Jt6VUk7FRRsPtN+tHWx2wa8HScs2tuCfEMVS1dq6jk1Ex91MRFYbhaZg6m6 Abb8ELBsw3jpHwkII2VAvEVzR0xbnXsp2LgKQz1vLflSqW1YkcCry+wrH7Vo/eSWte0+ 6NzI0oY4i73oLcb+g7LZsmRmBoYVE5wKQl7UC+DWbNhSPJ9bV8Z2C0cAdrWba7XLGNHa raLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=1QnQkH5vWbNwBBDp9UARaOwW5PZA5TDnmAZx7EYatbA=; b=JjskBglfBue8U17+uiwZ1AUgLnnIf0H6X+ailzoYXpXYhnZe2wZcwsrS1tVvh1E0jv I0XvBHIkF9jtNu97EXHVqHrCGfTf3dnhawwHyS/YGeQqe1pEN+64rZHfLiO9cTm25Vnx Me3dWIgyLFn9m8dO/Lfa4dxggh9KexZsfKrQWC2mwL3ZEPu5hZE41a/dzJpfQ5ORYgh4 hM6tWGJL4q4UGOL9HSzPek26NasuiGUdsskB4xhotqh7eqF+EZBRGnCN86Z4NCRl8fk5 k3NyEOyC2Aj3NgxJT7X7mfAzqyCJCwQ3bthR2qFdCczQLWU4S57dNOeeQXGZ+ac/gKN+ O95Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si3329918ejj.163.2020.10.08.02.20.36; Thu, 08 Oct 2020 02:21:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728611AbgJHJJY (ORCPT + 99 others); Thu, 8 Oct 2020 05:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgJHJJW (ORCPT ); Thu, 8 Oct 2020 05:09:22 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17318C061755 for ; Thu, 8 Oct 2020 02:09:22 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kQRvM-001VLH-BN; Thu, 08 Oct 2020 11:09:20 +0200 Message-ID: <7b0080517b301ccd32d03b25b2f16663238959df.camel@sipsolutions.net> Subject: Re: [PATCH v2] cfg80211: add support to configure HE MCS for beacon rate From: Johannes Berg To: Rajkumar Manoharan Cc: linux-wireless@vger.kernel.org Date: Thu, 08 Oct 2020 11:09:19 +0200 In-Reply-To: (sfid-20201008_110659_738848_40D7EFF9) References: <1601762257-14934-1-git-send-email-rmanohar@codeaurora.org> (sfid-20201008_110659_738848_40D7EFF9) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2020-10-08 at 11:06 +0200, Johannes Berg wrote: > On Sat, 2020-10-03 at 14:57 -0700, Rajkumar Manoharan wrote: > > This allows an option to configure a single HE MCS beacon tx rate. > > > > Signed-off-by: Rajkumar Manoharan > > --- > > v2: clear mcs ratemask when beacon tx rate is not set. > > I can't believe I didn't realize this before, but ... Never mind that comment ... it wasn't there before, I was confused :) > I mean, why not just skip the > > /* Default to all rates enabled */ > for (i = 0; i < NUM_NL80211_BANDS; i++) { > [...] > } > > code? Right now you're first setting it, and then clearing it again when > is_beacon_tx_rate is set ... > > > I'd prefer a "default_all_enabled" parameter, and then call the above > loop conditionally on it (perhaps moving it to a separate function to > not have all the deep indentation to worry about). And maybe that should be a separate patch. johannes