Sub topic 18
Choosing channels and widths in practice
This chapter assumes you know the 2.4, 5 and 6 GHz bands, how channel numbers map to center frequencies, what channel width means, and how co-channel and adjacent-channel interference differ. It turns those ideas into a repeatable procedure.
Start with a survey
Look at the air before you change anything. On Linux, iw shows your current link and nearby access points.
# Show the current connection (interface name may differ, for example wlp2s0)
iw dev wlan0 link
# List nearby networks with their frequency, signal level and SSID
sudo iw dev wlan0 scan | grep -E 'freq:|signal:|SSID:'Each freq: value is in MHz. Convert it to a channel number, or the reverse, to see which channels are crowded. A signal near -40 dBm is very strong. A signal near -80 dBm is weak. Neighbors at -70 dBm or stronger on your channel are the ones that cost you airtime.
Pick the band first
| Band | Typical use | Main limit |
|---|---|---|
| 2.4 GHz | Long range, simple IoT devices | Only three non-overlapping channels, many neighbors |
| 5 GHz | Default for laptops and phones | Shorter range, DFS channels need radar checks |
| 6 GHz | Wi-Fi 6E and Wi-Fi 7 clients | Shortest range, needs newer devices |
Use 6 GHz where your clients support it, 5 GHz for the rest, and keep 2.4 GHz for devices that need it.
Pick the channel
In 2.4 GHz, use channel 1, 6 or 11. Centers on those channels are 25 MHz apart, so 20 MHz signals do not overlap. This check confirms it.
def channel_center_mhz_24(channel):
return 2407 + 5 * channel # channels 1-13 only
def overlaps_24(ch_a, ch_b, width_mhz=20):
"""Treat two same-width channels as overlapping if their centers are closer than the width."""
spacing = abs(channel_center_mhz_24(ch_a) - channel_center_mhz_24(ch_b))
return spacing < width_mhz
print(overlaps_24(1, 6)) # False: centers are 25 MHz apart
print(overlaps_24(1, 4)) # True: centers are 15 MHz apart
print(overlaps_24(6, 11)) # False: centers are 25 MHz apartNever choose channel 3 or 8 to "avoid" neighbors. You would interfere with two channels instead of one. Sharing a channel with a neighbor is usually better than partly overlapping it, because devices on the same channel can take turns with CSMA/CA, while a partial overlap looks like noise.
In 5 GHz, prefer a channel with the fewest neighbors. DFS channels are often quieter, but an access point must leave the channel if it detects radar, which briefly disconnects clients.
Pick the width
Wider channels give higher peak rates but increase the chance of overlap and lower the signal-to-noise ratio at a distance.
| Situation | Suggested width |
|---|---|
| 2.4 GHz | 20 MHz |
| Dense 5 GHz (apartments, offices with many APs) | 20 or 40 MHz |
| Single AP, few neighbors, 5 GHz | 80 MHz |
| 6 GHz with plenty of free channels | 80 or 160 MHz |
Common mistakes
- Using 40 MHz in 2.4 GHz. It occupies most of the band and conflicts with neighbors.
- Setting 160 MHz in a crowded building. Any busy sub-channel can reduce the usable width.
- Forgetting the regulatory domain. Allowed channels and power differ by country.
Exercise
A survey shows five neighbors on 2.4 GHz channel 6, one on channel 1 and none on channel 11. Which channel do you pick, and why not channel 9?
Show answer
Pick channel 11, because it has no neighbors and does not overlap channels 1 or 6. Channel 9 would sit 15 MHz from channel 6 and 10 MHz from channel 11's neighbors' range, so it would partly overlap the busy channel 6 and cause adjacent-channel interference.