Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp542933pxb; Mon, 25 Oct 2021 13:23:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJLrBWc9njxGqVf60rDjTu/Z3TEylZmbVO0ohof/Jny7ctXP5hSdmgR6HwS45LGz26FNzl X-Received: by 2002:a63:36ca:: with SMTP id d193mr15349987pga.73.1635193422854; Mon, 25 Oct 2021 13:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635193422; cv=none; d=google.com; s=arc-20160816; b=SnIPbGpm6pwZSKZK3UvcGIdRmxy3FFIb4gaL+ABnDYscVcSZIz8TadUIBEwFFjegKJ tI8dbpNQqcu4SVIfAz3m0hYY07mBZ3dryT6hkvapn93IEZjC9N4h6WtDKXj9u44BLvhm 2GseN7jdzS0TOM9NQh+15FsXrZfQNpH+MIRYHnpHGaJMKbIyFB/1VVTg42ivEelrObfw 72Gg4aRisAvtozS0gH3cvpaZQa8jdi4QrPPXPr0d6DADAeopXbXEk3Pi2ge4Gks3vuOh DUhjs6FFcgT1X1JOmx4zIlbg6dXqTc1l5x0PsuF91YQFUlwHdmOkYfZwSkxS7v7DFJZ2 ZOzg== 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:dkim-signature; bh=GpkhE+rafTAix/3cb7phz/iDwq5GT627KOA3yMMtjXk=; b=GMQfg1Olkt/LKbvaejpMMC3LVmIGiqu1KMTmx44oEf3/TzKkrgSedE06nQXi3nozhq lDZkgzLa+eY59Kz0XMZrO+sifYfML9Q3cHCA6bg9qFiDPZqkPav+R3+A4Z622ALM8Ic3 Ehxab6dIkqZAKIv3PNcD5xuxq8rHAt//lE2w7I3w7nDAanq0r3QeiDj8d1HsZ/QLZyfT 6DCkxk0M716SACPhPqQklt9rdn2VGywCs/OMPMdSO4bdr9VYQdFit8VZDqJQqdxwZH8r t7g0cUXiEBTSTEkY42lxDEMaGzXzl75/kU4+WUCHKZV2w4OxzgcRJ4oyviST9rAIZgNf fHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=b5Pa57uY; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si16440161pjg.106.2021.10.25.13.23.33; Mon, 25 Oct 2021 13:23:42 -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=@sipsolutions.net header.s=mail header.b=b5Pa57uY; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236624AbhJYUZe (ORCPT + 67 others); Mon, 25 Oct 2021 16:25:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236626AbhJYUZ1 (ORCPT ); Mon, 25 Oct 2021 16:25:27 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A71DC04641D for ; Mon, 25 Oct 2021 13:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: 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=GpkhE+rafTAix/3cb7phz/iDwq5GT627KOA3yMMtjXk=; t=1635192562; x=1636402162; b=b5Pa57uYWElQdDzXxflaYGR8Hbgd9AeXamssE1MW4SxAB5+ 45E2TqkoQA7DyVjJzVQKhwSEzYlL1lINeCC87n/X0GlcVT2C7ZeotDQ6JWIsBSywXIu8yt7puD/VK NyFRr6Q0aJHOR1JgZ0WuZdCK211O4ptDcH7SycsRpZ11LxpgQhj+wlZnyz2ZMY54h9snwmkCq6EKR nLGKsO925diD8UqrrS/arGEXpodkMdjZrDq0dtP9U+//DZGF0sNqHtInoWhosCuztAeKgCeXeM79X MZHbtw24RRnXCkFD+2P0q278WN7rSfBgwrp+IQbTEYPBShWdP0fHTqINUxKSQSWQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1mf6HW-006qRd-1F; Mon, 25 Oct 2021 22:09:18 +0200 Message-ID: <18363bc18538ea9b7e8fe28f4c5595c54f3b93d3.camel@sipsolutions.net> Subject: Re: [PATCH v5] cfg80211: save power spectral density(psd) of regulatory rule From: Johannes Berg To: Wen Gong , Venkateswara Naralasetty Cc: Venkateswara Naralasetty , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, wgong=codeaurora.org@codeaurora.org Date: Mon, 25 Oct 2021 22:09:17 +0200 In-Reply-To: <0b05f6e555bcb89c49f56279c077ce63@codeaurora.org> References: <20210928085211.26186-1-wgong@codeaurora.org> <2afb1bf6f06cb53f43fe0d354afa4e7c@codeaurora.org> <2ed76cff292dcca18326de0407a93821@codeaurora.org> <1222384c2bc7d80bf572b65ab17660477bb27300.camel@sipsolutions.net> <562080d7fc3b7568811c47a8e8e79156@codeaurora.org> <0b05f6e555bcb89c49f56279c077ce63@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2021-10-11 at 15:48 +0800, Wen Gong wrote: > > > IMO, Only power rules and PSD info might vary for AP and STATION. Rest > > of the rules will remains same right? > > > The freq_range may also be different for AP and STATION. > and reg_rules number also may also be different for AP and STATION. > > for example: > SUBORDINATE CLIENT of STANDARD POWER reg rules number 2 > reg rule 1: (5945 - 6425 @ 160) (0, 30) (FLAGS 0) (psd flag 1 EIRP 17 > dB/MHz) > reg rule 2: (6525 - 6885 @ 160) (0, 30) (FLAGS 0) (psd flag 1 EIRP 17 > dB/MHz) > > INDOOR AP reg rules number 1 > reg rule 1: (5945 - 7125 @ 160) (0, 24) (FLAGS 0) (psd flag 0 EIRP 0 > dB/MHz) That seems right, but isn't that an orthogonal question? Here, on this patch, we're discussing what data we should have in the channel information, and it would seem that if it's different for AP/client, then we do need both information stored, so that we can cope with concurrency between AP and client? If we additionally need to have different data for the regulatory rules for AP and client, that might mean we need to go back and actually change the code there *as well*, and then fill in the right fields in this patch? Unless somehow we're convinced that for this feature we don't need to worry about concurrently using AP and client modes? johannes