From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 300BCC4338F for ; Fri, 30 Jul 2021 10:01:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A87A60E93 for ; Fri, 30 Jul 2021 10:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238337AbhG3KBv (ORCPT ); Fri, 30 Jul 2021 06:01:51 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:62888 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238193AbhG3KBf (ORCPT ); Fri, 30 Jul 2021 06:01:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627639278; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=6RM5Uu/oSEmhpz4cWgunG9ycHktCXaT1NMpEnZ6L2H0=; b=lhjUBwcUSL7hWtpEAjhVxo+XBQ/rjU459idFufhMHHPi8we1OHP7ibWqP088W+nrlYIHpU4n lk8hpJAC8ZrvSSYqTjwU2B2BxYkwL7Vu1YC1AJmvkq7OtimTcoUGqDpBw2WNNGj76/qfrc9t xLPJwDJ29OZmfCDteVhRhyheoK8= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 6103cdd2e81205dd0a46d84b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 30 Jul 2021 10:00:50 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 291A8C43460; Fri, 30 Jul 2021 10:00:50 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 01DB8C433D3; Fri, 30 Jul 2021 10:00:48 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 30 Jul 2021 18:00:48 +0800 From: Wen Gong To: Johannes Berg Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 4/9] cfg80211: add definition for 6G power spectral density(psd) In-Reply-To: <1553c2923cc332acf3da00b49e2d2ac17cc12ba0.camel@sipsolutions.net> References: <20210517201932.8860-1-wgong@codeaurora.org> <20210517201932.8860-5-wgong@codeaurora.org> (sfid-20210517_222029_605505_DDB76CEE) <1553c2923cc332acf3da00b49e2d2ac17cc12ba0.camel@sipsolutions.net> Message-ID: <03159ab593d309353d69cd65db0a8da8@codeaurora.org> X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-07-23 17:24, Johannes Berg wrote: > On Mon, 2021-05-17 at 16:19 -0400, Wen Gong wrote: >> >> + * @IEEE80211_CHAN_PSD: power spectral density (in dBm) >> + * on this channel. > > Do we need that? Which really is just another way of asking > >> + * @psd: power spectral density (in dBm) > > whether or not 0 is a valid value for this? yes, 0 is also a valid value. It also have negative, such as -1dBm. > >> +++ b/include/uapi/linux/nl80211.h >> @@ -4040,6 +4040,7 @@ enum nl80211_sched_scan_match_attr { >>   * @NL80211_RRF_NO_80MHZ: 80MHz operation not allowed >>   * @NL80211_RRF_NO_160MHZ: 160MHz operation not allowed >>   * @NL80211_RRF_NO_HE: HE operation not allowed >> + * @NL80211_RRF_PSD: channels has power spectral density value > > It doesn't seem like we need this, after all, there must be some kind > of > attribute for the PSD, and then its presence/absence already indicates > this? Now the psd value 0 is also a valid value, so now we can not consider the psd 0 as NON-PSD, so we need this flag to check it is psd or NON-psd. > > johannes From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 076FDC4338F for ; Fri, 30 Jul 2021 10:01:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA7A760E93 for ; Fri, 30 Jul 2021 10:01:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BA7A760E93 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5aI4RtfJFbZf9iCLTyIQn5Adji+a5i5qHQXdu1K8TzM=; b=ujazABmX+EQ0CsTNFyOIJorpJM vfjtK4a4hHYu3dYPrQOmhqfGlHf5H1K+DQ2TXVTFsPmjvc2ZFPpTd8Yz7kPfZmwi4/aBYVqaL3mjq QpePMg+mdB4wn7XAj/rW72euEpD7xLi5GiRaamffP4sEqVsjDUu6R5dPG/DVSGkiJcTODn+WfsIH2 G6tWWcdlDrNKSEz+3tYwU2cc4SpX+14YUx25z7zcTGTaFlfK+spD8nexqVZbfZ+iepy3N9d4PjD/Z XDOppbZmG2BSUHac1SRIqs+p9k3j4t78d4V/OX/XnyyrYM6MIVPdb3WJaMNTjFR9h7ZOljN6dKDek A5yljb3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9PKD-0082j0-O3; Fri, 30 Jul 2021 10:01:05 +0000 Received: from so254-9.mailgun.net ([198.61.254.9]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m9PKB-0082hD-GK for ath11k@lists.infradead.org; Fri, 30 Jul 2021 10:01:04 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627639261; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=6RM5Uu/oSEmhpz4cWgunG9ycHktCXaT1NMpEnZ6L2H0=; b=QWyX6uVQABB2nodBfbohDPZe8slSJzexpFnXsAzsIZJZwrjKt9Vmvesu8SNfCXTkJ+iXsT9n XUWVcFoq3muJVx6hWAQ7FpXF/qocsS9/kBo2zoT+dXXY1iTa2I4Adrh6GcMGZnewFU150ddL iE17RLM5pvMptUqscUREuaqlRg4= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyJmOGQ2ZiIsICJhdGgxMWtAbGlzdHMuaW5mcmFkZWFkLm9yZyIsICJiZTllNGEiXQ== Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 6103cdd2b653fbdaddd03214 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 30 Jul 2021 10:00:50 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 46471C433F1; Fri, 30 Jul 2021 10:00:49 +0000 (UTC) Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 01DB8C433D3; Fri, 30 Jul 2021 10:00:48 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 30 Jul 2021 18:00:48 +0800 From: Wen Gong To: Johannes Berg Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 4/9] cfg80211: add definition for 6G power spectral density(psd) In-Reply-To: <1553c2923cc332acf3da00b49e2d2ac17cc12ba0.camel@sipsolutions.net> References: <20210517201932.8860-1-wgong@codeaurora.org> <20210517201932.8860-5-wgong@codeaurora.org> (sfid-20210517_222029_605505_DDB76CEE) <1553c2923cc332acf3da00b49e2d2ac17cc12ba0.camel@sipsolutions.net> Message-ID: <03159ab593d309353d69cd65db0a8da8@codeaurora.org> X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210730_030103_643390_CB9FBD6B X-CRM114-Status: GOOD ( 14.15 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "ath11k" Errors-To: ath11k-bounces+ath11k=archiver.kernel.org@lists.infradead.org T24gMjAyMS0wNy0yMyAxNzoyNCwgSm9oYW5uZXMgQmVyZyB3cm90ZToKPiBPbiBNb24sIDIwMjEt MDUtMTcgYXQgMTY6MTkgLTA0MDAsIFdlbiBHb25nIHdyb3RlOgo+PiAKPj4gKyAqIEBJRUVFODAy MTFfQ0hBTl9QU0Q6IHBvd2VyIHNwZWN0cmFsIGRlbnNpdHkgKGluIGRCbSkKPj4gKyAqCW9uIHRo aXMgY2hhbm5lbC4KPiAKPiBEbyB3ZSBuZWVkIHRoYXQ/IFdoaWNoIHJlYWxseSBpcyBqdXN0IGFu b3RoZXIgd2F5IG9mIGFza2luZwo+IAo+PiArICogQHBzZDogcG93ZXIgc3BlY3RyYWwgZGVuc2l0 eSAoaW4gZEJtKQo+IAo+IHdoZXRoZXIgb3Igbm90IDAgaXMgYSB2YWxpZCB2YWx1ZSBmb3IgdGhp cz8KeWVzLCAwIGlzIGFsc28gYSB2YWxpZCB2YWx1ZS4KSXQgYWxzbyBoYXZlIG5lZ2F0aXZlLCBz dWNoIGFzIC0xZEJtLgo+IAo+PiArKysgYi9pbmNsdWRlL3VhcGkvbGludXgvbmw4MDIxMS5oCj4+ IEBAIC00MDQwLDYgKzQwNDAsNyBAQCBlbnVtIG5sODAyMTFfc2NoZWRfc2Nhbl9tYXRjaF9hdHRy IHsKPj4gwqDCoCogQE5MODAyMTFfUlJGX05PXzgwTUhaO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