Sub topic 2
Unlicensed Spectrum and Regulatory Domains
This chapter assumes you know what a frequency and a channel are in general terms, and that you can read short Python and shell snippets. It explains why Wi-Fi can use the 2.4, 5 and 6 GHz bands without a license, and why the same access point may offer different channels in different countries.
What "unlicensed" means
Radio spectrum is a shared public resource, and governments regulate it. Most bands are licensed. A mobile carrier, a TV broadcaster or an aircraft radar pays for, or is assigned, exclusive rights to a slice of spectrum. Nobody else may transmit there.
An unlicensed band is different. Anyone may transmit in it without applying for a license, as long as their equipment follows the rules for that band. Those rules usually limit:
- the transmit power, so one device does not drown out its neighbors
- the antenna gain, which together with transmit power sets the effective radiated power
- the type of equipment, which must be tested and certified before sale
- in some bands, the behavior of the device, such as yielding to radar
"Unlicensed" does not mean "unregulated". The user needs no license, but the manufacturer must have the device certified for each market where it is sold.
Unlicensed bands are also called ISM bands (industrial, scientific and medical), because they were first set aside for equipment such as microwave ovens and medical heaters. Some newer bands, such as parts of 5 GHz and 6 GHz, are called U-NII (Unlicensed National Information Infrastructure) in the United States.
Consequences of sharing
Because anyone may use the band, Wi-Fi gets no protection from other users. Three things follow.
- Interference is expected. Neighboring Wi-Fi networks, Bluetooth devices, cordless phones, baby monitors and microwave ovens can all share 2.4 GHz.
- Devices must cooperate. Wi-Fi uses listen-before-talk rules (CSMA/CA, covered in a later chapter) so that stations take turns.
- Power is limited. Low limits keep each network local, which lets many networks reuse the same channels at different places.
Regulatory domains
A regulatory domain is a set of rules that applies in a country or region. Each domain defines:
- which channels may be used in each band
- the maximum transmit power, often per channel or per channel width
- whether indoor and outdoor use are treated differently
- whether Dynamic Frequency Selection (DFS) is required on certain 5 GHz channels
Well-known regulators include the FCC in the United States, ETSI in Europe, and national agencies such as Japan's MIC or Canada's ISED. Their rules differ, and the differences show up in everyday behavior.
| Band | United States (FCC) | Europe (ETSI) | Japan |
|---|---|---|---|
| 2.4 GHz | Channels 1 to 11 | Channels 1 to 13 | Channels 1 to 13 (14 for 802.11b only) |
| 5 GHz | Several sub-bands, some with DFS | Several sub-bands, DFS common | Several sub-bands, DFS common |
| 6 GHz | Large block opened for unlicensed use | A smaller block, lower part | Opened with its own limits |
The table is a simplified summary. Rules change, so check the current regulation or your device's documentation before relying on a specific number.
Why this matters for 2.4 GHz
The 2.4 GHz band shows the effect clearly. A device configured for the United States offers channels 1 to 11. A device in Europe may offer 1 to 13. The Python function from the previous chapter, which converts a channel number to a center frequency, accepts channels 1 to 13 because the formula is valid for all of them. Whether a channel is legal to use is a separate question that depends on the domain.
# Channels allowed in the 2.4 GHz band for a few example domains.
# Simplified for illustration; real rules also limit power and mode.
ALLOWED_24 = {
"US": range(1, 12),
"EU": range(1, 14),
"JP": range(1, 15),
}
def channel_allowed(domain, channel):
"""Return True if the channel is permitted in the given domain."""
try:
return channel in ALLOWED_24[domain]
except KeyError:
raise ValueError(f"unknown domain {domain}")
print(channel_allowed("US", 12)) # False
print(channel_allowed("EU", 12)) # True
print(channel_allowed("EU", 14)) # FalseA practical consequence: if you set an access point to channel 13 in Europe, a device sold only for the US may not see the network at all. Using channels 1, 6 and 11 avoids this, because they are legal almost everywhere.
How devices learn their domain
Access points and client devices carry a country setting. It is chosen in several ways:
- The manufacturer fixes it at the factory for the market where the device is sold.
- The administrator selects it in the access point configuration.
- A client learns it from beacons. An access point can include a country information element, and many clients adopt that country's limits.
- A client may also use its own settings, such as the region chosen in the operating system.
On Linux, the kernel uses a regulatory database, and you can inspect the active setting with the iw tool.
# Show the regulatory domain the kernel is using
iw reg get
# Set the domain (needs root; the code is a two-letter country code)
sudo iw reg set DEThe output of iw reg get lists the allowed frequency ranges, the maximum bandwidth for each range, and the maximum power. Flags such as DFS on a range mean radar detection is required there.
Common errors
- Setting the wrong country on an access point. An access point set to a country with looser rules may transmit with more power or on channels that are not legal where it is installed. This can cause interference with other services and may breach the law for the person operating it.
- Assuming all clients see all channels. A client with a different domain may skip channels the access point uses. This is a frequent cause of "only some devices can find the network".
- Using DFS channels without planning for radar. On a DFS channel the access point must leave the channel when it detects radar. Clients are disconnected for a short time while the access point moves. A later chapter covers DFS in detail.
- Treating the channel list as permanent. Regulators open new spectrum from time to time, and 6 GHz is the recent example. A device certified before a rule change may not be able to use the new channels without a firmware update.
Summary of the model
Spectrum is licensed or unlicensed. Wi-Fi operates in unlicensed bands, so it needs no license from the user but must obey regional rules on channels, power and radar avoidance. The same hardware may therefore offer different channels in different places, and a good channel plan starts by checking which domain is set.
Exercise
An access point in Germany is set to channel 13 on 2.4 GHz. A visitor's laptop, last used in the United States, cannot see the network. Give the most likely reason, and name a channel choice that would avoid the problem.
Show answer
The laptop is still using US rules, which allow only channels 1 to 11 on 2.4 GHz, so it never scans channel 13. Using channel 1, 6 or 11 avoids the problem, because those channels are allowed in nearly every domain.
Exercise
Explain the difference between "unlicensed" and "unregulated" for Wi-Fi spectrum, and give two kinds of rule that still apply in an unlicensed band.
Show answer
Unlicensed means a user needs no license to transmit, but the band is still regulated. Rules still apply to the equipment, for example limits on transmit power and antenna gain, certification of devices, and in some 5 GHz channels a requirement to detect radar and leave the channel (DFS).