Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp408542pxb; Tue, 1 Feb 2022 02:33:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyPQ7/hgFtVHVcuxSwtbB/pFMIREK+xtX9QkTTOPgakIwxq+it4bYQdB8GqH00Es3PJwtV X-Received: by 2002:a63:2153:: with SMTP id s19mr2251721pgm.235.1643711597302; Tue, 01 Feb 2022 02:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643711597; cv=none; d=google.com; s=arc-20160816; b=ptxkLbUVCO9K55h7x7WRPV4aubeXV64UzmnLlGleRkz6RJv3uKsEVyemWVIwAFy+tc 9kRL/OpltMGAvd30eP/nfnuvI7s7HYnrK/HjSiIU5MjBae4jXA97ev5Ipp9TwIK7RMg3 KYUSCo5nv7rdAR+PsZGkx1nN6gVjvuYciM5qfNAHWN9SpfT8KkdBYFQ1LAd6aACnWl3B zCwzZx4V6oO5nGp29/h9Iu4WK8uRsAwka2jxa7RZ4w9qKzuRJddgRcLyKxIDbxdicLG+ u9FBaq9HD4YvWiboFMt6G0bFOV5LVYCvvjT4oH+IFcgUqQ0Qc6vbkrP0xhBdA10lY24U 1Npg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:mime-version:date:message-id :dkim-signature; bh=P0d7mihoPDQ+NHRGZrzaxZGxWCcSsFQaNq+0DTegaw0=; b=K1kuczyD5ZAKQrq9F4pKoPE9tjFLZVl2y9B9B3rm3DEPemESF2ITDY9iE7xZJl/3Rz 8ZNwpLqFul4q1pXxSlyBoNfem/PiUAxDlWspiSsCzmhDTi9VAxqSvF39Fi8UDnpYR1Tt fgSTe/A31l9qTqnJDgheFk/lNbRuvmqLpeiPQGbTjV9eW80LGdV4R08RnN6ltShGd9ko nXFJmXsmncpptVVfTQPCIiUPvPje0f4x4LZpz+fQC3VSyoodNl2ZhkzjHDhC7LcwJcmx o+rZN65zNp6DEPJSz3na9lWSt2gptzLinv7dMZw/TPDh3BmYn1Ax3ZaCbJ5siF6uRHKK ez9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=Ro09G4Ty; 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=NONE dis=NONE) header.from=gorani.run Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh11si2131111pjb.126.2022.02.01.02.33.08; Tue, 01 Feb 2022 02:33:17 -0800 (PST) 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=@gorani.run header.s=MBO0001 header.b=Ro09G4Ty; 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=NONE dis=NONE) header.from=gorani.run Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354762AbiA3MZ0 (ORCPT + 71 others); Sun, 30 Jan 2022 07:25:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354760AbiA3MZZ (ORCPT ); Sun, 30 Jan 2022 07:25:25 -0500 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050::465:201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66CCBC061714 for ; Sun, 30 Jan 2022 04:25:25 -0800 (PST) Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Jmr4f3Gfcz9sSL; Sun, 30 Jan 2022 13:25:22 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1643545520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P0d7mihoPDQ+NHRGZrzaxZGxWCcSsFQaNq+0DTegaw0=; b=Ro09G4TyT9HXas/uXZFG28kZfiiuIMMwClO/jUnqZm/GBXWQQIOINy5TGDUTfPyB+aDj3n 7rjq2SfuhgzYSp8zp/fCaAe4hci2WuC0zBg9UhtTZ+GXPbodqsswOqvu8Oz7PP6ggx7lT7 oUHlfOSTYcJnY/p1StlLkd10eybxMtYc+2cKy33H+bN09dlIGOXwpTaoXadR3rSbMu/3FK mHS5lHqvBHETsJEE72nMsOVrrLIEN0ewBxR7woCUWHSWu0xGGyJBgOXgUX5vs9yDWU/1TZ 8j6lN3daEWoHEgwd1xq/1GY60NMaBqSwueXrXSfHjJrmzl73mYkX8en0dJA1MQ== Message-ID: <77045141-4a4a-4827-8577-c1f78060aff8@gorani.run> Date: Sun, 30 Jan 2022 21:24:39 +0900 MIME-Version: 1.0 Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR) To: Seth Forshee Cc: wireless-regdb@lists.infradead.org, linux-wireless@vger.kernel.org References: <20210929172728.7512-1-mans0n@gorani.run> <20211024113821.51538-1-mans0n@gorani.run> <4f05b6b1-084d-9046-4c63-6975c25d7615@gorani.run> From: Sungbo Eo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2022-01-14 06:59, Seth Forshee wrote: > On Mon, Dec 20, 2021 at 03:10:12PM -0600, Seth Forshee wrote: >> On Sat, Dec 18, 2021 at 04:31:17PM +0900, Sungbo Eo wrote: >>> On 2021-12-18 07:02, Seth Forshee wrote: >>>> On Sat, Oct 30, 2021 at 01:12:08AM +0900, Sungbo Eo wrote: >>>>> On 2021-10-28 03:06, Seth Forshee wrote: >>>>>> On Sun, Oct 24, 2021 at 08:38:21PM +0900, Sungbo Eo wrote: >>>>>>> This patch is based on MSIT Public Notification 2020-113 ("Unlicensed Radio >>>>>>> Equipment Established Without Notice"), officially announced on 2021-01-06. >>>>>>> >>>>>>> The PSD must not exceed 2.5 mW/MHz if the frequency range includes all or >>>>>>> part of 5230-5250 MHz and the bandwidth is equal to or less than 40 MHz. >>>>>>> This leads to the following: >>>>>>> * 5230-5250 @ 20 -> 17 dBm >>>>>>> * 5210-5250 @ 40 -> 20 dBm >>>>>>> Here the power limits for 80/160 MHz bandwidth are also lowered to 17 dBm, >>>>>>> as it's not possible to set different power limits for different bandwidths >>>>>>> at the moment. >>>>>>> >>>>>>> Extend the last 5 GHz frequency range to 5850 MHz. >>>>>>> >>>>>>> WiFi 6E is now allowed with the following restrictions: >>>>>>> * Indoor: the full 1.2 GHz range, up to 160 MHz bandwidth and 250mW EIRP >>>>>>> * Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25mW EIRP >>>>>>> Here only the former entry is added. >>>>>>> >>>>>>> And also update the regulatory source links. >>>>>>> >>>>>>> Signed-off-by: Sungbo Eo >>>>>>> --- >>>>>>> v2: >>>>>>> * split 5150-5250 MHz band rule to accommodate the PSD limit >>>>>>> * remove AUTO-BW flag from 6 GHz band rule >>>>>>> --- >>>>>>> db.txt | 17 ++++++++++++----- >>>>>>> 1 file changed, 12 insertions(+), 5 deletions(-) >>>>>>> >>>>>>> diff --git a/db.txt b/db.txt >>>>>>> index 6e8dbef..387ac93 100644 >>>>>>> --- a/db.txt >>>>>>> +++ b/db.txt >>>>>>> @@ -862,15 +862,22 @@ country KP: DFS-JP >>>>>>> (5490 - 5630 @ 20), (30), DFS >>>>>>> (5735 - 5815 @ 20), (30) >>>>>>> +# Source: >>>>>>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000196972 >>>>>>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000196973 >>>>>>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000196974 >>>>>>> country KR: DFS-JP >>>>>>> - # ref: https://www.rra.go.kr >>>>>>> (2400 - 2483.5 @ 40), (23) >>>>>>> - (5150 - 5250 @ 80), (23), AUTO-BW >>>>>>> + (5150 - 5210 @ 40), (23), AUTO-BW >>>>>>> + # max. PSD 2.5 mW/MHz in 5230-5250 MHz frequency range >>>>>>> + (5210 - 5230 @ 20), (20), AUTO-BW >>>>>>> + (5230 - 5250 @ 20), (17), AUTO-BW >>>>>> >>>>>> Even with 5210-5230 split out like this, 5210-5250 @ 40 still gets >>>>>> limited to 17 dBm by the 5230-5250 rule. So why do we need to split out >>>>>> 5210-5230 separate from 5150-5210? >>>>> >>>>> I did some tests with regdb and I found out that the rule to be applied >>>>> depends on the main 20 MHz channel. With the rules above, if I select >>>>> channel 48 (5230-5250) and enable VHT40, then the TX power is set to 17 dBm. >>>>> OTOH if I select channel 44 (5210–5230) and enable VHT40, then the TX power >>>>> is set to 20 dBm. I'm not sure whether my result is really correct, though. >>>> >>>> I'm sorry, when I saw the v3 patch I realized that I forgot to reply to >>>> this email. I had wanted to take a look at the kernel source to try and >>>> understand the behavior you described. >>>> >>>> I took a quick look, and from what I'm seeing the minimum of the power >>>> limits for the two ranges should be used. This is the behavior I expect. >>>> Can you provide more detail about how you're getting that result? >>>> >>>> Thanks, >>>> Seth >>> >>> I've got the result on MT7623+MT7615N AP with OpenWrt installed. (kernel >>> 5.10) >>> I set the channel and bandwidth in /etc/config/wireless (in OpenWrt-standard >>> way) and checked the tx power with `iw dev wlan0 info` and Android WiFi >>> Analyzer app. >>> >>> # channel 48, htmode VHT40 >>> type AP >>> channel 48 (5240 MHz), width: 40 MHz, center1: 5230 MHz >>> txpower 17.00 dBm >>> >>> # channel 44, htmode VHT40 >>> type AP >>> channel 44 (5220 MHz), width: 40 MHz, center1: 5230 MHz >>> txpower 20.00 dBm >>> >>> The WiFi Analyzer app also reported higher RSSI for the channel 44 case. >>> >>> I also had a quick look at net/wireless/reg.c and it seems you're right. >>> Perhaps my tests were bad, I do believe your comments more than my result. >>> ;) >> >> That definitely seems odd. I'll try to have another look and see if I >> can figure out why that's happening. I'd have suspected that what's >> displayed by iw might just be a result of how the information is >> reported or displayed, but the higher RSSI argues against that. > > I've spent a little more time looking at this. I think the issue is that > the regulatory rules are only used to establish channel definititions > for 20 MHz channels, and these channel definitions are what get used > when establishing tx parameters. While the flags are checked against the > chandefs of secondary channels, only the primary channel's power limits > are used for tx power. So I think the behavior of the kernel is incorect > here. Thanks for your confirm. I also did my own research and came to the same conclusion. > > However, I think the regulatory database should reflect the regulatory > data as accurately as possible, so I'd prefer we not split out 5210-5230 > and try to get the bug fixed in the kernel. Okay, sounds reasonable. I'll send v4 soon. Regards, Sungbo