2021-09-29 19:12:44

by Sungbo Eo

[permalink] [raw]
Subject: [PATCH] wireless-regdb: Update regulatory rules for South Korea (KR)

This patch is based on MSIT Public Notification 2020-113 ("Unlicensed Radio
Equipment Established Without Notice"), officially announced on 2021-01-06.

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 <[email protected]>
---
I have two questions.

The regulation has one more restriction:
The TX power should not exceed 2.5 mW/MHz
when the frequency range includes the whole or a part of 5230-5250 MHz
and the bandwidth is equal to or less than 40 MHz.
That leads to the followings:
5230-5250 @ 20 -> 17 dBm
5210-5250 @ 40 -> 20 dBm
5170-5250 @ 80 -> 23 dBm
Is it possible to add this rule without lowering the TX power for 80 MHz bandwidth?

And do we need AUTO-BW for 6E channels? I thought it is for merging adjacent frequency ranges.
---
db.txt | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/db.txt b/db.txt
index 6e8dbef..31052cf 100644
--- a/db.txt
+++ b/db.txt
@@ -862,15 +862,20 @@ 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
(5250 - 5350 @ 80), (20), DFS, AUTO-BW
(5470 - 5725 @ 160), (20), DFS
- (5725 - 5835 @ 80), (23)
- # 60 GHz band channels 1-4,
- # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
+ (5725 - 5850 @ 80), (23)
+ # 6 GHz band
+ (5925 - 7125 @ 160), (24), NO-OUTDOOR, AUTO-BW
+ # 60 GHz band channels 1-4
(57000 - 66000 @ 2160), (43)

country KW: DFS-ETSI
--
2.33.0


2021-10-06 14:09:07

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH] wireless-regdb: Update regulatory rules for South Korea (KR)

On Thu, Sep 30, 2021 at 02:27:28AM +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.
>
> 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 <[email protected]>
> ---
> I have two questions.
>
> The regulation has one more restriction:
> The TX power should not exceed 2.5 mW/MHz
> when the frequency range includes the whole or a part of 5230-5250 MHz
> and the bandwidth is equal to or less than 40 MHz.
> That leads to the followings:
> 5230-5250 @ 20 -> 17 dBm
> 5210-5250 @ 40 -> 20 dBm
> 5170-5250 @ 80 -> 23 dBm
> Is it possible to add this rule without lowering the TX power for 80 MHz bandwidth?

I've tried to look at the documents, but much of the information appears
to be in images where machine translation doesn't work, and I haven't
been able to find English versions.

Taking the above at face value, I actually get slightly lower EIRP
values for a PSD of 2.5 mW/MHz (EIRP = PSD + 10 * log(bandwidth)): 16
dBm for 20 MHz and 19 dBm for 40 MHz. We don't currently have any way to
express PSD limits in the database nor a way to express different power
limits for different bandwidths, so it's not possible to comply with the
PSD limits for 20/40 MHz without also lowering the EIRP for 80 MHz.

> And do we need AUTO-BW for 6E channels? I thought it is for merging adjacent frequency ranges.

That is correct. Since there are no adjacent rules, AUTO-BW doesn't make
sense.

Thanks,
Seth

2021-10-06 19:19:26

by Sungbo Eo

[permalink] [raw]
Subject: Re: [PATCH] wireless-regdb: Update regulatory rules for South Korea (KR)

On 2021-10-06 23:07, Seth Forshee wrote:
> On Thu, Sep 30, 2021 at 02:27:28AM +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.
>>
>> 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 <[email protected]>
>> ---
>> I have two questions.
>>
>> The regulation has one more restriction:
>> The TX power should not exceed 2.5 mW/MHz
>> when the frequency range includes the whole or a part of 5230-5250 MHz
>> and the bandwidth is equal to or less than 40 MHz.
>> That leads to the followings:
>> 5230-5250 @ 20 -> 17 dBm
>> 5210-5250 @ 40 -> 20 dBm
>> 5170-5250 @ 80 -> 23 dBm
>> Is it possible to add this rule without lowering the TX power for 80 MHz bandwidth?
>
> I've tried to look at the documents, but much of the information appears
> to be in images where machine translation doesn't work, and I haven't
> been able to find English versions.

Oops, sorry. I should have prepared it in more convertible format.
There's no English version of it, but at least I could find a HWP
document file [1] that contains regular tables instead of images. (The
URL is from the "attached files" tab in the source link.)

You can open it with a dedicated viewer [2] or an online viewer [3]. But
those free viewers do not offer conversion to DOC or HTML. (It seems the
dedicated one has "print to PDF" feature, though.)

I also tried an online convert tool but it failed due to the long
processing time... I can send you converted versions myself if you prefer.

[1] https://www.law.go.kr/LSW//flDownload.do?flSeq=93728653
[2] https://www.hancom.com/cs_center/csDownload.do
[3] https://hwp.polarisoffice.com/

>
> Taking the above at face value, I actually get slightly lower EIRP
> values for a PSD of 2.5 mW/MHz (EIRP = PSD + 10 * log(bandwidth)): 16
> dBm for 20 MHz and 19 dBm for 40 MHz.

I thought log(2.5) equals 0.4? We also have 2.5 mW/MHz * 40 MHz = 100 mW.

> We don't currently have any way to
> express PSD limits in the database nor a way to express different power
> limits for different bandwidths, so it's not possible to comply with the
> PSD limits for 20/40 MHz without also lowering the EIRP for 80 MHz.

Too bad. :( I'll prepare v2 soon.

>
>> And do we need AUTO-BW for 6E channels? I thought it is for merging adjacent frequency ranges.
>
> That is correct. Since there are no adjacent rules, AUTO-BW doesn't make
> sense.

Okay, thanks!

Regards,
Sungbo

>
> Thanks,
> Seth
>

2021-10-06 22:17:16

by Seth Forshee

[permalink] [raw]
Subject: Re: [wireless-regdb] [PATCH] wireless-regdb: Update regulatory rules for South Korea (KR)

On Thu, Oct 07, 2021 at 04:18:01AM +0900, Sungbo Eo wrote:
> On 2021-10-06 23:07, Seth Forshee wrote:
> > On Thu, Sep 30, 2021 at 02:27:28AM +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.
> > >
> > > 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 <[email protected]>
> > > ---
> > > I have two questions.
> > >
> > > The regulation has one more restriction:
> > > The TX power should not exceed 2.5 mW/MHz
> > > when the frequency range includes the whole or a part of 5230-5250 MHz
> > > and the bandwidth is equal to or less than 40 MHz.
> > > That leads to the followings:
> > > 5230-5250 @ 20 -> 17 dBm
> > > 5210-5250 @ 40 -> 20 dBm
> > > 5170-5250 @ 80 -> 23 dBm
> > > Is it possible to add this rule without lowering the TX power for 80 MHz bandwidth?
> >
> > I've tried to look at the documents, but much of the information appears
> > to be in images where machine translation doesn't work, and I haven't
> > been able to find English versions.
>
> Oops, sorry. I should have prepared it in more convertible format.
> There's no English version of it, but at least I could find a HWP document
> file [1] that contains regular tables instead of images. (The URL is from
> the "attached files" tab in the source link.)
>
> You can open it with a dedicated viewer [2] or an online viewer [3]. But
> those free viewers do not offer conversion to DOC or HTML. (It seems the
> dedicated one has "print to PDF" feature, though.)
>
> I also tried an online convert tool but it failed due to the long processing
> time... I can send you converted versions myself if you prefer.
>
> [1] https://www.law.go.kr/LSW//flDownload.do?flSeq=93728653
> [2] https://www.hancom.com/cs_center/csDownload.do
> [3] https://hwp.polarisoffice.com/
>
> >
> > Taking the above at face value, I actually get slightly lower EIRP
> > values for a PSD of 2.5 mW/MHz (EIRP = PSD + 10 * log(bandwidth)): 16
> > dBm for 20 MHz and 19 dBm for 40 MHz.
>
> I thought log(2.5) equals 0.4? We also have 2.5 mW/MHz * 40 MHz = 100 mW.

Yeah ... I did the math again and your numbers are right, guess I made a
mistake the first time.

> > We don't currently have any way to
> > express PSD limits in the database nor a way to express different power
> > limits for different bandwidths, so it's not possible to comply with the
> > PSD limits for 20/40 MHz without also lowering the EIRP for 80 MHz.
>
> Too bad. :( I'll prepare v2 soon.
>
> >
> > > And do we need AUTO-BW for 6E channels? I thought it is for merging adjacent frequency ranges.
> >
> > That is correct. Since there are no adjacent rules, AUTO-BW doesn't make
> > sense.
>
> Okay, thanks!
>
> Regards,
> Sungbo
>
> >
> > Thanks,
> > Seth
> >
>
> _______________________________________________
> wireless-regdb mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/wireless-regdb

2021-10-24 11:43:59

by Sungbo Eo

[permalink] [raw]
Subject: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
---
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
(5250 - 5350 @ 80), (20), DFS, AUTO-BW
(5470 - 5725 @ 160), (20), DFS
- (5725 - 5835 @ 80), (23)
- # 60 GHz band channels 1-4,
- # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
+ (5725 - 5850 @ 80), (23)
+ # 6 GHz band
+ (5925 - 7125 @ 160), (24), NO-OUTDOOR
+ # 60 GHz band channels 1-4
(57000 - 66000 @ 2160), (43)

country KW: DFS-ETSI
--
2.33.1

2021-10-27 21:30:19

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
> ---
> 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?

Thanks,
Seth

> (5250 - 5350 @ 80), (20), DFS, AUTO-BW
> (5470 - 5725 @ 160), (20), DFS
> - (5725 - 5835 @ 80), (23)
> - # 60 GHz band channels 1-4,
> - # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
> + (5725 - 5850 @ 80), (23)
> + # 6 GHz band
> + (5925 - 7125 @ 160), (24), NO-OUTDOOR
> + # 60 GHz band channels 1-4
> (57000 - 66000 @ 2160), (43)
>
> country KW: DFS-ETSI
> --
> 2.33.1
>

2021-10-29 16:12:46

by Sungbo Eo

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
>> ---
>> 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.

Regards,
Sungbo

>
> Thanks,
> Seth
>
>> (5250 - 5350 @ 80), (20), DFS, AUTO-BW
>> (5470 - 5725 @ 160), (20), DFS
>> - (5725 - 5835 @ 80), (23)
>> - # 60 GHz band channels 1-4,
>> - # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
>> + (5725 - 5850 @ 80), (23)
>> + # 6 GHz band
>> + (5925 - 7125 @ 160), (24), NO-OUTDOOR
>> + # 60 GHz band channels 1-4
>> (57000 - 66000 @ 2160), (43)
>>
>> country KW: DFS-ETSI
>> --
>> 2.33.1
>>

2021-12-12 15:21:17

by Sungbo Eo

[permalink] [raw]
Subject: [PATCH v3] wireless-regdb: Update regulatory rules for South Korea (KR)

This patch is based on MSIT Public Notification 2021-86 ("Unlicensed Radio
Equipment Established Without Notice"), officially announced on 2021-11-29.

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/20 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 2 dBm/MHz PSD
* Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25 mW EIRP
Here only the latter entry is added.

And also update the regulatory source links.

Signed-off-by: Sungbo Eo <[email protected]>
---
v3:
* update regulatory source to newer revision
* replace "indoor only" 6E rule with "both indoor and outdoor" rule
as "indoor only" rule limits PSD instead of EIRP

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 b898799..9be03ee 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=2100000205195
+# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205187
+# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000206568
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
(5250 - 5350 @ 80), (20), DFS, AUTO-BW
(5470 - 5725 @ 160), (20), DFS
- (5725 - 5835 @ 80), (23)
- # 60 GHz band channels 1-4,
- # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
+ (5725 - 5850 @ 80), (23)
+ # 6 GHz band
+ (5925 - 6425 @ 160), (14)
+ # 60 GHz band channels 1-4
(57000 - 66000 @ 2160), (43)

country KW: DFS-ETSI
--
2.34.1


2021-12-17 22:02:46

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
> > > ---
> > > 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

2021-12-18 07:39:58

by Sungbo Eo

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
>>>> ---
>>>> 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. ;)

Regards,
Sungbo

2021-12-20 21:10:18

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
> > > > > ---
> > > > > 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.

Thanks,
Seth

2022-01-13 21:59:15

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
> > > > > > ---
> > > > > > 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.

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.

Thanks,
Seth

2022-02-01 10:33:17

by Sungbo Eo

[permalink] [raw]
Subject: Re: [PATCH v2] wireless-regdb: Update regulatory rules for South Korea (KR)

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 <[email protected]>
>>>>>>> ---
>>>>>>> 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

2022-02-01 10:37:51

by Sungbo Eo

[permalink] [raw]
Subject: [PATCH v4] wireless-regdb: Update regulatory rules for South Korea (KR)

This patch is based on MSIT Public Notification 2021-86 ("Unlicensed Radio
Equipment Established Without Notice"), officially announced on 2021-11-29.

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 limit for >20 MHz bandwidth is 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.

Wi-Fi 6E is now allowed with the following restrictions:
* Indoor: the full 1.2 GHz range, up to 160 MHz bandwidth and 2 dBm/MHz PSD
* Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25 mW EIRP
Here only the former entry is added.

And also update the regulatory source links.

Signed-off-by: Sungbo Eo <[email protected]>
---
v4:
* merge 5210-5230 MHz band rule
* revert back to "indoor only" 6E rule as its power limit is higher

v3:
* update regulatory source to newer revision
* replace "indoor only" 6E rule with "both indoor and outdoor" rule
as "indoor only" rule limits PSD instead of EIRP

v2:
* split 5150-5250 MHz band rule to accommodate the PSD limit
* remove AUTO-BW flag from 6 GHz band rule
---
db.txt | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/db.txt b/db.txt
index b898799..9b02a2c 100644
--- a/db.txt
+++ b/db.txt
@@ -862,15 +862,21 @@ country KP: DFS-JP
(5490 - 5630 @ 20), (30), DFS
(5735 - 5815 @ 20), (30)

+# Source:
+# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205195
+# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205187
+# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000206568
country KR: DFS-JP
- # ref: https://www.rra.go.kr
(2400 - 2483.5 @ 40), (23)
- (5150 - 5250 @ 80), (23), AUTO-BW
+ (5150 - 5230 @ 40), (23), AUTO-BW
+ # max. PSD 2.5 mW/MHz in 5230-5250 MHz frequency range
+ (5230 - 5250 @ 20), (17), AUTO-BW
(5250 - 5350 @ 80), (20), DFS, AUTO-BW
(5470 - 5725 @ 160), (20), DFS
- (5725 - 5835 @ 80), (23)
- # 60 GHz band channels 1-4,
- # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
+ (5725 - 5850 @ 80), (23)
+ # 6 GHz band
+ (5925 - 7125 @ 160), (15), NO-OUTDOOR
+ # 60 GHz band channels 1-4
(57000 - 66000 @ 2160), (43)

country KW: DFS-ETSI
--
2.35.0

2022-02-14 09:49:51

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v4] wireless-regdb: Update regulatory rules for South Korea (KR)

On Sun, Jan 30, 2022 at 09:49:07PM +0900, Sungbo Eo wrote:
> This patch is based on MSIT Public Notification 2021-86 ("Unlicensed Radio
> Equipment Established Without Notice"), officially announced on 2021-11-29.
>
> 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 limit for >20 MHz bandwidth is 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.
>
> Wi-Fi 6E is now allowed with the following restrictions:
> * Indoor: the full 1.2 GHz range, up to 160 MHz bandwidth and 2 dBm/MHz PSD
> * Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25 mW EIRP
> Here only the former entry is added.
>
> And also update the regulatory source links.
>
> Signed-off-by: Sungbo Eo <[email protected]>

Applied, thanks!

2022-02-14 10:14:58

by Seth Forshee

[permalink] [raw]
Subject: Re: [PATCH v4] wireless-regdb: Update regulatory rules for South Korea (KR)

On Sun, Jan 30, 2022 at 09:49:07PM +0900, Sungbo Eo wrote:
> This patch is based on MSIT Public Notification 2021-86 ("Unlicensed Radio
> Equipment Established Without Notice"), officially announced on 2021-11-29.
>
> 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 limit for >20 MHz bandwidth is 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.
>
> Wi-Fi 6E is now allowed with the following restrictions:
> * Indoor: the full 1.2 GHz range, up to 160 MHz bandwidth and 2 dBm/MHz PSD
> * Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25 mW EIRP
> Here only the former entry is added.
>
> And also update the regulatory source links.
>
> Signed-off-by: Sungbo Eo <[email protected]>
> ---
> v4:
> * merge 5210-5230 MHz band rule
> * revert back to "indoor only" 6E rule as its power limit is higher
>
> v3:
> * update regulatory source to newer revision
> * replace "indoor only" 6E rule with "both indoor and outdoor" rule
> as "indoor only" rule limits PSD instead of EIRP
>
> v2:
> * split 5150-5250 MHz band rule to accommodate the PSD limit
> * remove AUTO-BW flag from 6 GHz band rule
> ---
> db.txt | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
>
> diff --git a/db.txt b/db.txt
> index b898799..9b02a2c 100644
> --- a/db.txt
> +++ b/db.txt
> @@ -862,15 +862,21 @@ country KP: DFS-JP
> (5490 - 5630 @ 20), (30), DFS
> (5735 - 5815 @ 20), (30)
>
> +# Source:
> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205195
> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205187
> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000206568
> country KR: DFS-JP
> - # ref: https://www.rra.go.kr
> (2400 - 2483.5 @ 40), (23)
> - (5150 - 5250 @ 80), (23), AUTO-BW
> + (5150 - 5230 @ 40), (23), AUTO-BW
> + # max. PSD 2.5 mW/MHz in 5230-5250 MHz frequency range
> + (5230 - 5250 @ 20), (17), AUTO-BW
> (5250 - 5350 @ 80), (20), DFS, AUTO-BW
> (5470 - 5725 @ 160), (20), DFS
> - (5725 - 5835 @ 80), (23)
> - # 60 GHz band channels 1-4,
> - # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
> + (5725 - 5850 @ 80), (23)
> + # 6 GHz band
> + (5925 - 7125 @ 160), (15), NO-OUTDOOR

I'm curious about this power limit. In v1/v2 it was 24 dBm, then in v3
you lowered it for indoor/outdoor. Now you've chaned it back to indoor
only, but the limit is 15 dBm rather than the 24 you had in v1/v2. Why
the change?

Thanks,
Seth

> + # 60 GHz band channels 1-4
> (57000 - 66000 @ 2160), (43)
>
> country KW: DFS-ETSI
> --
> 2.35.0
>

2022-02-14 10:18:24

by Sungbo Eo

[permalink] [raw]
Subject: Re: [PATCH v4] wireless-regdb: Update regulatory rules for South Korea (KR)

On 2022-02-13 01:26, Seth Forshee wrote:
> On Sun, Jan 30, 2022 at 09:49:07PM +0900, Sungbo Eo wrote:
>> This patch is based on MSIT Public Notification 2021-86 ("Unlicensed Radio
>> Equipment Established Without Notice"), officially announced on 2021-11-29.
>>
>> 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 limit for >20 MHz bandwidth is 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.
>>
>> Wi-Fi 6E is now allowed with the following restrictions:
>> * Indoor: the full 1.2 GHz range, up to 160 MHz bandwidth and 2 dBm/MHz PSD
>> * Outdoor: the lower 500 MHz range, up to 160 MHz bandwidth and 25 mW EIRP
>> Here only the former entry is added.
>>
>> And also update the regulatory source links.
>>
>> Signed-off-by: Sungbo Eo <[email protected]>
>> ---
>> v4:
>> * merge 5210-5230 MHz band rule
>> * revert back to "indoor only" 6E rule as its power limit is higher
>>
>> v3:
>> * update regulatory source to newer revision
>> * replace "indoor only" 6E rule with "both indoor and outdoor" rule
>> as "indoor only" rule limits PSD instead of EIRP
>>
>> v2:
>> * split 5150-5250 MHz band rule to accommodate the PSD limit
>> * remove AUTO-BW flag from 6 GHz band rule
>> ---
>> db.txt | 16 +++++++++++-----
>> 1 file changed, 11 insertions(+), 5 deletions(-)
>>
>> diff --git a/db.txt b/db.txt
>> index b898799..9b02a2c 100644
>> --- a/db.txt
>> +++ b/db.txt
>> @@ -862,15 +862,21 @@ country KP: DFS-JP
>> (5490 - 5630 @ 20), (30), DFS
>> (5735 - 5815 @ 20), (30)
>>
>> +# Source:
>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205195
>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000205187
>> +# https://www.law.go.kr/LSW//admRulLsInfoP.do?chrClsCd=&admRulSeq=2100000206568
>> country KR: DFS-JP
>> - # ref: https://www.rra.go.kr
>> (2400 - 2483.5 @ 40), (23)
>> - (5150 - 5250 @ 80), (23), AUTO-BW
>> + (5150 - 5230 @ 40), (23), AUTO-BW
>> + # max. PSD 2.5 mW/MHz in 5230-5250 MHz frequency range
>> + (5230 - 5250 @ 20), (17), AUTO-BW
>> (5250 - 5350 @ 80), (20), DFS, AUTO-BW
>> (5470 - 5725 @ 160), (20), DFS
>> - (5725 - 5835 @ 80), (23)
>> - # 60 GHz band channels 1-4,
>> - # ref: http://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%AC%B4%EC%84%A0%EC%84%A4%EB%B9%84%EA%B7%9C%EC%B9%99
>> + (5725 - 5850 @ 80), (23)
>> + # 6 GHz band
>> + (5925 - 7125 @ 160), (15), NO-OUTDOOR
>
> I'm curious about this power limit. In v1/v2 it was 24 dBm, then in v3
> you lowered it for indoor/outdoor. Now you've chaned it back to indoor
> only, but the limit is 15 dBm rather than the 24 you had in v1/v2. Why
> the change?

24 dBm in v1/v2 was from max EIRP for 160 MHz, but I realized I should
use PSD instead of EIRP, and I got 2 dBm/MHz * 20 MHz = 15 dBm (to fit
the smallest bandwidth).

Regards,
Sungbo