KORTHVEILSecurity firewall
Guides

Wi-Fi channels, schedules and "why can't it connect"

Download as PDF All guides

Korthveil plans the channels, channel widths and transmit power of every Wi-Fi radio it manages, finds out why one device cannot connect or is slow, switches networks off by schedule, and shares airtime between networks and devices. It does this for the firewall's own access point (Network › Interfaces, zones & routes) and for the OpenWrt access points of the wireless controller add-in (Wireless › Radios & channels).

The example:

Firewall radio wlan0, network Example, 2.4 GHz
Access points lobby and office, OpenWrt, each with a 2.4 GHz radio (radio0) and a 5 GHz radio (radio1)
Networks Example (WPA2/WPA3) and Example Guest (enhanced open, zone guest)
A slow laptop Wi-Fi address 02:00:00:00:00:09

At a glance:

Step Where What
1 Channels and power Plan now, read the plan, Apply, confirm within 5 minutes
2 Plan every night Optional: quiet hours, applied only when clearly better
3 Why can't this device connect? Enter the device's Wi-Fi address, Find the cause, follow the Fix
4 An SSID or the firewall's access point Wi-Fi off by schedule, Airtime, Speed limit per device
5 A radio Transmit power: Auto, Low, Medium, High or Max, or exact dBm; pin it

The Channels and power panel is on Wireless › Radios & channels, and Why can't this device connect? on Wireless › Overview. Without the wireless add-in they are under the Wi-Fi status on Network › Interfaces, zones & routes.

1. Plan channels and power

Press Plan now. Korthveil reads each radio:

  • the channels it may use in your country, with their power limit and whether radar detection (DFS) applies;
  • the networks it hears, with their channel, width and signal;
  • how busy each channel is, where the card reports it;
  • how loudly our own access points hear each other.

A scan leaves the channel for a moment; clients do not notice. Nothing changes yet.

The plan lists each radio with its channel, width and power now and planned, and why:

Rule What it means
Never a channel the radio does not allow A channel your country or the card does not offer is never used; a radio that cannot be read is left as it is
2.4 GHz: channels 1, 6 and 11 at 20 MHz The only three that do not overlap
5 and 6 GHz: up to 80 MHz (your choice: 20 to 160) A wider channel only where every part of it is allowed and the gain is worth it
Radar (DFS) channels Only with Allow radar (DFS) channels and on radios that detect radar. Such a channel starts after listening for about a minute, and the radio moves if radar appears
Our access points apart Two of our access points that hear each other get different channels first; where they must share one, their power is lowered so their cells overlap less
Power Only ever lowered, never above the card's or the country's limit. A 2.4 GHz radio stays 3 dB under the same access point's 5 GHz radio, so devices that have both prefer 5 GHz
Channels set by hand stay A channel you picked yourself is kept; only the plan's own settings (and automatic channels) are moved

Apply commits the plan like any other change: checked by the firewall and the add-in, applied to every radio at once, and rolled back if anything fails. Choose Roll back unless I confirm within 5 minutes, then confirm in Pending changes. Access points restart their radios, and clients reconnect within seconds. Every change is in Monitoring › Logs & audit › Audit log (wifi.rf-plan.apply), and Applied plans has an Undo button for each.

Pending changes of your own must be committed or discarded first: a plan never commits someone else's half-finished work.

Plan every night

Tick Plan again every night and give quiet hours, for example 03:00-04:00. Once a night in that window Korthveil plans again and applies the plan only when it has at least 20% less interference. Each night is in the audit log (wifi.rf-plan.nightly), and applied plans can be undone.

2. Why can't this device connect, or why is it slow

Enter the device's Wi-Fi address and press Find the cause (on Wireless › Overview, Why slow? on a client fills it in). Phones use a private address per network: read it in the phone's Wi-Fi settings for that network.

Korthveil reads what the access points logged about the device in the last day, how it is connected now (signal, link speed, retransmissions, band), how it moved between access points, the network's security, and the firewall's DHCP and DNS. It then names the causes, most serious first, each with a Fix:

Cause Fix
Wrong Wi-Fi password Forget the network on the device and join again. A note says when revoked per-person passphrases may be in use
Its own passphrase was revoked Restore it, or give the person a new one
The device does not support protected management frames (PMF) Update the device; otherwise set PMF to Compatible on that network, or give old devices their own network
The device does not support WPA3 Use WPA2/WPA3 mixed security, or turn off hash-to-element only
The sign-in server (RADIUS) refused it Check the user, password or certificate, and the allowed groups; the NAC add-in's log names the reason
Weak signal (below -75 dBm) or fair (below -67 dBm) Move closer, or add an access point; Plan now
Many retransmissions, low link speed Interference: Plan now for a cleaner channel
On 2.4 GHz though 5 GHz is offered Turn on 802.11v BSS transition (Roaming), or give 5 GHz its own name for this device
Roaming back and forth Our access points overlap too much at that spot: Plan now lowers their power; 802.11k/v helps
Connected, but no address The DHCP server does not serve this network or its pool is full
Name lookups fail The DNS resolver or forwarder add-in is not healthy
Off by its schedule now Wait, or change the network's off schedules

Steps shows what was checked (seen by an access point, password or sign-in, connected, address, DNS), and What the access points logged the device's last events. The access points' log needs "log": ["read"] in the Korthveil rpcd ACL on OpenWrt; without it the panel says so and works from the rest.

3. Wi-Fi off by schedule

Add a schedule on Firewall › Aliases & objects › Schedules, for example Night from 23:00 to 06:00. Then, on an SSID (Wireless › Wi-Fi networks) or on the firewall's access point (Network › Interfaces, zones & routes, the pencil on the Wi-Fi interface), tick it under Wi-Fi off by schedule, save and commit.

While the schedule is active the network stops broadcasting and its devices are disconnected; it comes back by itself when the schedule ends. Every switch is recorded: the firewall's access point in Monitoring › Logs & audit › Audit log (wifi.schedule), the add-in's access points under Recent changes and actions on Wireless › Overview. Family safety's bedtime stops only the children's devices; this turns the whole network off.

4. Airtime

A slow device takes far more airtime than a fast one for the same data. Airtime shares the radio's time:

Choice What it does
Fairly between active devices Each active device gets an equal share
By the weights Networks and devices get shares by weight: 256 is a default device, 512 twice that, 64 a quarter
By the weights, never more than the share The same, and a network (for example Example Guest) never takes more than its share even when the air is free

On the add-in, choose the mode under Airtime on the access points' radios, and give an SSID its weight and devices under Airtime. Devices are written one per line, for example 02:00:00:00:00:0a 512 Living room TV.

Airtime needs a card whose driver supports airtime fairness (ath9k, ath10k, mt76); on others the access point does not start with it, so leave it off there.

Speed limit per device

Airtime shares time, not speed. To give each device on a network at most so many Mbit/s, open the SSID on Wireless › Wi-Fi networks and use Speed limit per device: slide Download per device and Upload per device (for example 25 and 5 Mbit/s for Example Guest), then Save speed limit, and commit.

The limit is a rule of the QoS add-in, named WiFi Example Guest, for the SSID's zone (guest), with each device its own limit, IPv4 and IPv6, through every internet port. Set up the QoS add-in first (Network › Traffic shaping & apps › QoS & traffic shaping: your internet ports); the rule also shows there. Slide both to Off to remove it.

5. Transmit power

Every radio has the same power control: the firewall's access point (the pencil on the Wi-Fi interface) and each access point radio on Wireless › Radios & channels (Radio overrides).

Control What it does
Auto switch On: the driver's default, or the value the channel plan sets. The slider is grey
Slider: Low, Medium, High, Max Max is the radio's limit; High is half the power (3 dB less), Medium a quarter (6 dB), Low a tenth (10 dB). The value shows in dBm and mW
Dashed marker The limit: the lower of the card's maximum and your country's maximum on the channel in use. The slider cannot pass it; hover for why
Exact dBm (Advanced) The slider moves in 1 dB steps instead of the presets
Pin The channel plan never changes a pinned power

Keyboard: the arrow keys move one preset (one dB in Advanced), Home and End go to Auto and Max.

On commit, the firewall sets its own radio's power once the access point runs and reads it back. A power the radio refuses fails the commit, and it is rolled back. A value above the limit is lowered to the limit. If the card's driver keeps to a lower limit of its own, the radio runs at that and the panel says so. Access points get their power with the push, and the push warns when a value was lowered.

Lower power makes smaller cells: use Low or Medium where access points are close together, Max for one access point in a large home.

Good to know

  • The firewall's own access point and the add-in's access points are planned together, so the firewall's radio and an OpenWrt access point in the same room get different channels.
  • Changing channel, width or power restarts that radio for a few seconds.
  • A plan made before someone else committed is refused ("plan again").
  • Korthveil only listens to the air. It never disconnects, jams or "contains" other people's devices.

Download as PDF All guides