gkswngh05
Posts: 3
Joined: Sat Sep 28, 2019 3:05 am

Why Wifi Country = KR has wrong channel selection?

Mon Jul 13, 2020 11:03 am

There's a big problem on Raspberry Pi users on South Korea.
Broken wifi channel setting applied to Wifi Country = KR while using internal wifi chipset.

According to iw reg get

Code: Select all

pi@LimePi:~ $ iw reg get
global
country KR: DFS-JP
        (2402 - 2482 @ 40), (N/A, 13), (N/A)
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5490 - 5710 @ 160), (N/A, 30), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57000 - 66000 @ 2160), (N/A, 43), (N/A)
and http://www.law.go.kr/%ED%96%89%EC%A0%95 ... ,20191223)
We can use wifi channel 1-13(2412Mhz ~ 2482Mhz)on 2.4Ghz band and 32-165(5170Mhz-5340Mhz, 5490Mhz-5835Mhz) on 5Ghz band.

But when i set the country to KR,

Code: Select all

pi@LimePi:~ $ iw phy
...
Frequencies:
                        * 2412 MHz [1] (disabled)
                        * 2417 MHz [2] (disabled)
                        * 2422 MHz [3] (disabled)
                        * 2427 MHz [4] (disabled)
                        * 2432 MHz [5] (disabled)
                        * 2437 MHz [6] (disabled)
                        * 2442 MHz [7] (disabled)
                        * 2447 MHz [8] (disabled)
                        * 2452 MHz [9] (disabled)
                        * 2457 MHz [10] (disabled)
                        * 2462 MHz [11] (disabled)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
...
Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (disabled)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (disabled)
 ...
Lots of channel is disabled.

So, I have a question: Why is lots of Wifi channel is disabled on South Korea country setting?
(sorry for bad english btw...)

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Why Wifi Country = KR has wrong channel selection?

Mon Jul 13, 2020 11:26 am

You need to post your question on the HostAP / WPA Supplicant mailing list at http://lists.infradead.org/mailman/listinfo/hostap (or check the archives there first).

The list of channels isn't defined by the RPF/RPTL folks, it's part and parcel of the WPA Supplicant package.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

gkswngh05
Posts: 3
Joined: Sat Sep 28, 2019 3:05 am

Re: Why Wifi Country = KR has wrong channel selection?

Tue Jul 14, 2020 12:15 pm

Ok, I should try that later.
Thanks for reply.

ganzgustav22
Posts: 82
Joined: Tue Feb 11, 2020 1:04 pm

Re: Why Wifi Country = KR has wrong channel selection?

Wed Jul 15, 2020 7:37 am

This is not defined by wpa_supplicant or hostap, it's wireless-regdb and crda which work together with the Linux kernel.

See here for more info:
https://wireless.wiki.kernel.org/en/dev ... less-regdb
https://wireless.wiki.kernel.org/en/dev ... atory/crda

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Why Wifi Country = KR has wrong channel selection?

Wed Jul 15, 2020 8:42 am

ganzgustav22 wrote:
Wed Jul 15, 2020 7:37 am
This is not defined by wpa_supplicant or hostap, it's wireless-regdb and crda which work together with the Linux kernel.

See here for more info:
https://wireless.wiki.kernel.org/en/dev ... less-regdb
https://wireless.wiki.kernel.org/en/dev ... atory/crda
Then you need to complain to the developers of those packages (or simply hack the database so it's correct for you).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “General discussion”