Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3304827rdb; Wed, 13 Sep 2023 08:12:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFChGmaSf/tAATBtO9jiMVwgX0J04GjWyjpM3ORmYmpeK369+FFEcj2dPfccIMiVzfGUeIz X-Received: by 2002:a05:6a20:734f:b0:14d:7b6:cf3b with SMTP id v15-20020a056a20734f00b0014d07b6cf3bmr8167877pzc.6.1694617967414; Wed, 13 Sep 2023 08:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694617967; cv=none; d=google.com; s=arc-20160816; b=rnk00joUGiwMSuorHRirtlX+6IDPUGovMFNt60jvkfYoDO/h2QDO8kOcUsjfSgC1SH lDyECHdNGnZ5Zj9nkDKKTEeccVpPj+MwXykx/cQhrAklxBk/jsHRVcTJZZus7yE/EnGa nSXDfmNNLJVTsz98eyY91cMVjAoWt04U8opYeJntCgzmj8j1r7nfNt78HykEEb9Urqpo AE5I0QMQXzMEu+SdwEGEPKoQa4u1KSXZu/fshSy48qHmb38RyejCiEBiOmBo2osigFca IoPmkxtWF7AvHYAS+PWR5bILIghI3ksMHJyJzxt8BLa+RPIfbkk+x0Ho2pTBJIUdx0Ph zlrg== 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=L8c85DCnO4azoBI+4LVfXkV94X/8ki+QpERiYVq3FmA=; fh=0WSufNserywV5Yqrz/dYn+ds7ZXpiOyMU7OU1BqXvbU=; b=EokNCA7m8y0KsLtfOQbWVXt0wk5gL1IYO3nSK9gA62jO52BMlzqwYMmKnSt/tvjzJs pQUMa/eFHmp8TvluS3ABsseF2VMzpSX0PzlcGkC2oNqCMbsrPnB1t/hc2sbGgW+r/+9x LY2y7yImtaJWTeuIjeL170TIAQrbE0+JTrucWhFbHeiTuH76/OMnyQIIlnqVVivXXH81 ji08xLIkU80FPl/7X2sldCVCn3zJu4lXdhhZhd4qefrmOjItElNLy9wE0qPuKwfWTCsZ tPRpoxIe8U5yrDp4ZUbSsPCtmgJP/AANf/ITohpRUZuTE9Wmr7hxZcKW781cAGjs5sep BQPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=ZTCT7feQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id k62-20020a636f41000000b00565eb0cf702si9831027pgc.310.2023.09.13.08.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=ZTCT7feQ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id BBCAE801B42D; Wed, 13 Sep 2023 07:58:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234029AbjIMO64 (ORCPT + 56 others); Wed, 13 Sep 2023 10:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbjIMO6z (ORCPT ); Wed, 13 Sep 2023 10:58:55 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8498B3 for ; Wed, 13 Sep 2023 07:58:51 -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=L8c85DCnO4azoBI+4LVfXkV94X/8ki+QpERiYVq3FmA=; t=1694617131; x=1695826731; b=ZTCT7feQYMV+pLquNKH6UjaMYwr/31N9xTjYT8NVkWVyOsK 4EZ4nDONY6dr0YeFH2R+U8QsFNXhiRKcQxeFkqLDLKy4ioJj5vE+C7LYq/ytANngXtV7SknBzAwSU qV2Mm6gt2lsNgQsVi1W0gl4z5fDCXhThiDpvHboaaGYmsQLR9xwUHsoXmY0/9KdRPFDyQLrdU41Sp L2PScbIDswLl00Mtm/HjLFzZWobRFoCXkyVlwegT13E9ht6RpJVhr6Rs8kQen+Oz0yobtU2SKxXxa TQGMSAA6lpaaw6IU5eRf/CxFbTj/uacMacCNLRUg8e/b1pRD8UXwH71B+xgY6S9A==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgRKL-00F3YB-13; Wed, 13 Sep 2023 16:58:49 +0200 Message-ID: <4cb3e92530d3f4db3b414e2a7536a0f01b765c4d.camel@sipsolutions.net> Subject: Re: [PATCH v3 2/9] wifi: cfg80211: save Power Spectral Density (PSD) of the regulatory rule From: Johannes Berg To: Aditya Kumar Singh Cc: linux-wireless@vger.kernel.org, Wen Gong Date: Wed, 13 Sep 2023 16:58:48 +0200 In-Reply-To: <20230315132904.31779-3-quic_adisi@quicinc.com> References: <20230315132904.31779-1-quic_adisi@quicinc.com> <20230315132904.31779-3-quic_adisi@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 (howler.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:58:53 -0700 (PDT) On Wed, 2023-03-15 at 18:58 +0530, Aditya Kumar Singh wrote: > @@ -8650,6 +8660,14 @@ static int parse_reg_rule(struct nlattr *tb[], > =20 > reg_rule->flags =3D nla_get_u32(tb[NL80211_ATTR_REG_RULE_FLAGS]); > =20 > + if (reg_rule->flags & NL80211_RRF_PSD) { > + if (!tb[NL80211_ATTR_POWER_RULE_PSD]) > + return -EINVAL; > + > + reg_rule->psd =3D > + nla_get_s8(tb[NL80211_ATTR_POWER_RULE_PSD]); > + } Wait ... I'm not sure why we've been adding stuff to this recently, but anyway, this part should only be used by CRDA which is deprecated anyway? So I'd say we shouldn't touch any of the code under #ifdef CONFIG_CFG80211_CRDA_SUPPORT any more since CRDA will not continue to developed with any updates here. johannes