Sub topic 21
Choosing Channels and Widths in Practice
This chapter assumes you know what a band, a channel and a channel width are. It also assumes you know why 2.4 GHz channels overlap, and that you can read short Python and shell snippets. Here you turn that knowledge into decisions: which band, which channel, and how wide.
Start with the goal, not the maximum width
A wider channel raises the peak rate but costs you in three ways:
- Fewer non-overlapping channels. Neighboring access points (APs) have less room to avoid each other.
- Higher noise. Doubling the width admits twice the noise power, about 3 dB more. That lowers the signal-to-noise ratio (SNR) at the same distance, so the radio drops to a slower modulation sooner and range shrinks.
- More chances of interference. A wide channel is unusable whenever any 20 MHz piece of it is busy. Many radios then fall back to a narrower width for that frame, which wastes the benefit.
So choose the narrowest width that meets your throughput target, and widen only when the spectrum is clean.
Choosing the band
| Band | Typical use | Widths in practice | Main constraint |
|---|---|---|---|
| 2.4 GHz | Range, IoT, legacy devices | 20 MHz | Only three clean channels (1, 6, 11), plus many non-Wi-Fi interferers |
| 5 GHz | Default for laptops and phones | 20, 40, 80 MHz; 160 MHz rarely | Some channels need DFS |
| 6 GHz | High-density, low-latency, Wi-Fi 6E and 7 | 80, 160, 320 MHz | Short range, needs newer clients, power rules vary by country |
Put every client that supports 5 or 6 GHz on those bands. Keep 2.4 GHz for devices that need it or for far-away coverage. Leave 2.4 GHz at 20 MHz. A 40 MHz channel there takes up two of the three clean slots, and a neighbor will almost always collide with it.
2.4 GHz: pick among 1, 6 and 11
In the United States the usual plan is channels 1, 6 and 11. The 20 MHz channels are 5 MHz apart, so a channel only avoids overlap with ones at least five numbers away. In regions that allow channel 13, some deployments use 1, 5, 9 and 13. That works only if neighbors also use it. A network on channel 3 overlaps both 1 and 6 and hurts everyone nearby, so avoid it even when it looks quiet.
The script below scores each candidate channel by the total power of overlapping APs from a scan and picks the quietest. It reuses the overlap rule from earlier chapters: two 20 MHz channels overlap if their centers are closer than 20 MHz.
def center_24(channel):
return 2407 + 5 * channel # channels 1-13
def overlaps(a, b, width_mhz=20):
return abs(center_24(a) - center_24(b)) < width_mhz
def load_mw(candidate, scan):
"""Sum the power (in mW) of every scanned AP that overlaps the candidate."""
return sum(10 ** (dbm / 10) for ch, dbm in scan if overlaps(candidate, ch))
def pick_channel(scan, candidates=(1, 6, 11)):
return min(candidates, key=lambda c: load_mw(c, scan))
# (channel, signal in dBm) for each AP heard in a scan
scan = [(1, -50), (3, -70), (6, -60), (6, -65), (11, -80), (9, -72)]
print(pick_channel(scan)) # 11Signal levels are summed in milliwatts, not dBm, because decibels are logarithmic. A strong AP at -50 dBm dominates ten weak ones at -85 dBm. That matches reality: one nearby neighbor hurts more than many distant ones.
5 and 6 GHz: pick a width, then a channel
On 5 GHz you have more room. A common plan is:
- Use 20 or 40 MHz in dense places such as apartments and offices with many APs. Use 80 MHz only with few neighbors.
- Assign each AP a channel that is not used by APs within radio range. Reuse a channel only across walls or floors that attenuate it.
- Prefer the non-DFS channels (36–48, 149–165 in the US) for APs that must never stall. Use DFS channels (52–144) to gain extra space.
DFS exists to protect radar. If the AP hears a radar pulse, it must leave the channel immediately, and clients on that channel lose connectivity while they move. Before using a DFS channel, the AP also listens for radar for a minimum period, 60 seconds in many regions, so it is not available right after a reboot. Avoid DFS where radar is nearby (airports, weather stations) or where a brief outage is unacceptable.
On 6 GHz there is no DFS and no legacy clients, so interference comes mostly from your own APs. Wide channels are realistic. The band spans 1200 MHz, which gives, for example, 59 channels at 20 MHz or 7 at 160 MHz in the US. Indoor low-power operation is the common case, and its power limits and the use of 320 MHz differ by country.
Check your scan
On Linux, iw shows what you are working with:
# Current link: frequency, signal, bit rate
iw dev wlan0 link
# Nearby APs with frequency, signal level and SSID
sudo iw dev wlan0 scan | grep -E 'freq:|signal:|SSID:'Convert each freq: value to a channel with the formulas from the numbering chapter, for example 2437 MHz is channel 6 and 5180 MHz is channel 36. Count how many APs sit on each channel and note their signals. Anything stronger than about -70 dBm is a real competitor for airtime. Anything weaker than about -85 dBm is mostly background noise.
A decision flow
Common mistakes
- Using the widest setting everywhere. A neighbor on any 20 MHz piece of your 80 MHz channel degrades the whole thing.
- Leaving auto-channel on after a bad pick. Auto selection happens at boot and often does not react later. Rescan after changes in the environment.
- Placing channel numbers by name only. Numbers mean different frequencies in each band. Channel 1 is 2412 MHz on 2.4 GHz and 5955 MHz on 6 GHz.
- Ignoring the regulatory domain. The allowed channels, power and DFS rules depend on the country setting. A wrong setting can be illegal and can also hide channels.
Exercise
A scan on 2.4 GHz finds APs on channels 1 (-45 dBm), 6 (-55 dBm) and 11 (-90 dBm). Your AP is currently on channel 4. Which channel should it use, and why not keep channel 4?
Show answer
Channel 11. Its only competitor is at -90 dBm, which is nearly silent. Channel 4 has centers 15 MHz from channel 1 and 10 MHz from channel 6, so it overlaps both strong neighbors and also corrupts their frames. Moving to a non-overlapping channel avoids that.
Exercise
You run a 5 GHz AP at 80 MHz in an apartment block, and users report speed that drops sharply in the evening. Give two changes you would try and the reason each helps.
Show answer
First, reduce the width to 40 or 20 MHz. A narrower channel is less likely to include a busy 20 MHz piece and has 3 dB or 6 dB less noise. Second, move to a channel not used by nearby APs after a fresh scan, preferring non-DFS channels if radar events have been forcing channel changes. Both reduce airtime contention and retransmissions.