I couldn’t find a better location but “Ask Fedora”. Its not actually a question, but rather a suggestion.
Most WiFi cards have a “Country setting”. This setting determines the allowable frequency range (bands), gain and output power of the WiFi card depending on frequency band.
Mine was sitting as country on: CN (China) instead of AU (Australia).
You will see on the displayed outputs of my Laptop that these are very different, depending on country.
Here is what it was sitting on:
country CN: DFS-FCC
(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
(5725 - 5850 @ 80), (N/A, 33), (N/A)
(57240 - 59400 @ 2160), (N/A, 28), (N/A)
(59400 - 63720 @ 2160), (N/A, 44), (N/A)
(63720 - 65880 @ 2160), (N/A, 28), (N/A)
And this is what it should be for Australia:
iw reg get
global
country AU: DFS-ETSI
(915 - 928 @ 8), (N/A, 30), (N/A)
(2400 - 2483 @ 40), (N/A, 36), (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 - 5600 @ 80), (N/A, 26), (0 ms), DFS
(5650 - 5730 @ 80), (N/A, 26), (0 ms), DFS
(5730 - 5850 @ 80), (N/A, 36), (N/A), AUTO-BW
(5850 - 5875 @ 20), (N/A, 13), (N/A), AUTO-BW
(5925 - 6585 @ 320), (N/A, 23), (N/A), NO-OUTDOOR
(57000 - 71000 @ 2160), (N/A, 43), (N/A), NO-OUTDOOR
If you look at the 2.4 GHz band (2400 - 2483) China has an allowable power output of: 20dBm, while Australia has an allowable output of: 36dBm !
We also have bands that China doesn’t have, bands broken up different with their allowable power output …etc.
Here is an explanation what each part means:
global: Indicates that this is the system-wide framework configuration. Individual physical devices (phy#0) can sometimes list their own “self-managed” parameters underneath. [1, 2]country US: The current active ISO 3166-1 alpha-2 country code. Code00denotes a restrictive fallback “World Roaming” domain used when no specific country is set. [1, 2, 3]DFS-FCC: The regulatory body governing the rules (e.g.,FCCfor the US,ETSIfor Europe). [1]
2. Frequency Bracket:
(2402 - 2472 @ 40)[1]
3. Power and Antenna Limits:
(N/A, 30)
- First Parameter (
N/A): Maximum antenna gain allowed in dBi (if specified by local laws).- Second Parameter (
30): Maximum allowable Transmit Power (TxPower) in dBm. A limit of30equals 1000mW (1 Watt). [1, 2, 3]
4. DFS Timeout:
(0 ms)or(N/A)
- The required dfs cac time (Channel Availability Check). If a radar signature is detected on this frequency, the card must listen silently for this exact duration before transmitting to verify the channel is clear. [1]
5. Regulatory Behavioral Flags
Flags at the end of a line place strict operational restrictions on those frequencies:
DFS: Dynamic Frequency Selection is mandatory. The card must actively monitor for radar signals (common on 5GHz bands).PASSIVE-SCAN: Disable active probing. The card cannot transmit probe requests to find networks; it must wait and listen for a beacon.NO-IBSS: Ad-hoc mode (Independent Basic Service Set) is banned. Direct device-to-device connections are prohibited.NO-OUTDOOR: The frequency range is legally restricted to indoor deployments only.PTMPT: Point-to-Multipoint architectures are permitted.AUTO-BW: Automatically scale down bandwidth if interference is detected.<
To see what your card is set to: iw reg get
To set the card to your country (example): (only during your current session. A reboot would set it back to what it was before): sudo iw reg set AU
(AU being for Australia, set to your country’s specific code).
To make it permanent using nano is the easiest. Mine actually created a new file and checking after a reboot showed that the change is permanent.
So use: sudo nano /etc/sysconfig/regdomain
Now paste in (with your countries code) COUNTRY=>your country’s code<
Use CTRL+O to write it to the file and press Enter.
Then CTRL+X to get out of the editor.
Check that the country code has taken using iw reg get
You might want to check again the next time you reboot that it stuck.