regdomain: Automatically set the wireless regularity domain#207
regdomain: Automatically set the wireless regularity domain#207
Conversation
Signed-off-by: Peter Jung <admin@ptr1337.dev>
|
|
||
| if [ -f "$LOCALTIME" ] | ||
| then | ||
| ZONE=$(readlink -f $LOCALTIME) |
There was a problem hiding this comment.
Why not just query it via timedatectl show -P "Timezone"?
There was a problem hiding this comment.
This has been mainly picked from the KDE distribution. We can of course make changes
Signed-off-by: Peter Jung <admin@ptr1337.dev>
|
Must it be set the correct country instead of If not, just set it to US to get full band. |
It depends on the country. Some countries do not allow Wifi 7 for example and enabling it at them would be an violation. Reason this would be important, specially for mobile device to not use illegal frequencies. |
That responsibility should be on the AP side but okay. |
No, because the device itself can also set specific frequencies. The device also needs to enable/disable these specific frequencies if not allowed. You can research in regulations. |
My understanding is that this responsibility lies with the AP. A client can request but does not control spectrum usage. It is the AP that would be at fault for transmitting on an illegal band. |
No, thats not true :) I work in this sector for UWB in my daytoday job and its required to implement the detection on the client side. as example in russia its not allowed to enable UWB, either on client or AP/receiver side. That is because you could interfere with signals from the military or other restricted frequency/usecases. Right now on CachyOS to get Wifi 7 the user needs to set the US as region for example manually. This PR will set it automatically. |
Signed-off-by: Peter Jung <admin@ptr1337.dev>
sirlucjan
left a comment
There was a problem hiding this comment.
lucjan at cachyos ~ 21:24:54
❯ systemctl status cachyos-iw-set-regdomain.service
○ cachyos-iw-set-regdomain.service - Set Wireless Regulatory Domain on Timezone Change
Loaded: loaded (/usr/lib/systemd/system/cachyos-iw-set-regdomain.service; static)
Active: inactive (dead) since Fri 2026-02-27 21:21:03 CET; 3min 54s ago
Invocation: f305361cb1fc444ab7734dd9ad63b2e3
Process: 999 ExecStart=/usr/lib/iw-set-regdomain (code=exited, status=0/SUCCESS)
Main PID: 999 (code=exited, status=0/SUCCESS)
Mem peak: 2.5M
CPU: 9ms
lut 27 21:21:03 cachyos systemd[1]: Starting Set Wireless Regulatory Domain on Timezone Change...
lut 27 21:21:03 cachyos systemd[1]: cachyos-iw-set-regdomain.service: Deactivated successfully.
lut 27 21:21:03 cachyos systemd[1]: Finished Set Wireless Regulatory Domain on Timezone Change.
lucjan at cachyos ~ 21:24:57
❯ iw reg get
global
country PL: DFS-ETSI
(2400 - 2483 @ 40), (N/A, 20), (N/A)
(5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS, AUTO-BW
(5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS
(5725 - 5875 @ 80), (N/A, 13), (N/A)
(5945 - 6425 @ 320), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 66000 @ 2160), (N/A, 40), (N/A)
Signed-off-by: Peter Jung <admin@ptr1337.dev>
|
Time to merge this! Thanks for KDE for giving this awesome idea! :)) |
|
Can I disable it? |
Yes, you can remove iw or mask the user service |
Mostly taken from https://invent.kde.org/kde-linux/kde-linux/-/commit/8cc8ad3989d338eedae01d037728b358f0ebc69a