Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6812106pxv; Fri, 30 Jul 2021 03:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0zDfTl4pIDLL/XvrzDNkUobRDm+rdUB2W8XrLZyvhhszfWrjNacHc7lA4QLwzxajN7Ims X-Received: by 2002:a05:6402:30a2:: with SMTP id df2mr2012097edb.363.1627639372682; Fri, 30 Jul 2021 03:02:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627639372; cv=none; d=google.com; s=arc-20160816; b=IIjfQVkKcsSz5rnbmjxXybzVU8md6CF5+IEVaCET8EnubPHYuYR5O3U9+lbd42xDri muLoeeXPZOzHq9ajepx19XBP6ZOcse+wG8S9RAFeuPlmP0nH0lU5VLi+F4fK29N9z+5Y kB7PY9ERBDfCMgD9CQbKeB/1K8l9yFv2zhXq2NzXJ6WHKEgx64ez9Eqx2JYooUCYNQtc 5SV9AIsbe7kh/qGYF3t6sgano1o5C+Nv4NUsfWpYMWjI2hPLxNnqyYnK5lyTaXQ4R0u2 MfNr4ImEwhkQG2up5bhw5E6BN4LPlvqXFB1Edysc87ThsAVlSn9Jatyxa1bwmpbxM4CD pfXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=6RM5Uu/oSEmhpz4cWgunG9ycHktCXaT1NMpEnZ6L2H0=; b=i7LAg4CHf+4PtM1CMaGsfTPSEfPKy0WG0YhLKK9KTomB2Al4vTdSj/iNMSANajzbHj WlPGiNohGrxk4mQPSy/hQVxeBt9L/JXYjylWhUFZWFnxny44MH207ke0TsnS22Zr0XEU o0qsnbp4BblmjsplIcdof761tOhW/3xBdH1DZZPne3YEJrQC06FCiT4MPyxsFcVMjHf/ IxWAjegpkAW+cxU0HWgLoqtlpAABjKuRJTprsg6R2SgL9Zs6YSL//2/8VMf2XnOdScaF 4mdNH31ezspBiPnWbISdbL1/6o67fAu9I+XP995gNnvG4NF5WMF9ELYiqPrl58hwIw7e zaHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lhjUBwcU; 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 j23si1505949eje.551.2021.07.30.03.02.24; Fri, 30 Jul 2021 03:02:52 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=lhjUBwcU; 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 S238337AbhG3KBv (ORCPT + 99 others); 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) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 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