Debug Commands
AP Optimization
Regulatory Domain
The default country 00 is more restrictive than others. For example, under country SG,
- Channel 32 (5150 - 5170) becomes available.
- Maximum transmit power (
txpower
) increases from 20 to 23 dBm (subject to device capabilities).
See also https://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git/tree/db.txt
WiFi Channel Confusion
With an 80 MHz wide channel, the center frequency falls in between 20 MHz channels. OpenWRT and iw
consider this central frequency in the lower frequency channel.
For example, the 80 MHz wide channel formed from channels 36 and 48 is considered “channel 40”, while the new naming convention for 802.11ac recommends 42 instead.
https://support.metageek.com/hc/en-us/articles/203532644-802-11ac-Channels
Client mode
config wifi-iface 'wifinet1'
option device 'radio0'
option mode 'sta'
option ssid 'AP_SSID'
option encryption 'psk2'
option bssid 'xx:xx:xx:xx:xx:xx'
option key 'xxxxxxxx'
option network 'wan'
Don’t use AP+STA on one physical radio without travelmate.
A logical combination of AP+STA mode on one physical radio allows most of OpenWrt supported router devices to connect to a wireless hotspot/station (STA) and provide a wireless access point (AP) from that hotspot at the same time. Downside of this solution: whenever the STA interface looses the connection it will go into an active scan cycle which renders the radio unusable for AP mode operation, therefore the AP is taken down if the STA looses its association. To avoid these kind of deadlocks, travelmate will set all station interfaces to an “always off” mode and connects automatically to available/configured hotspots.
https://github.com/openwrt/packages/blob/openwrt-21.02/net/travelmate/files/README.md
DFS
Debug Script
- Save list of unusable channels when radar is detected.
The DFS-RADAR-DETECTED message doesn’t show which channels are occupied by radar. freq
and chan_width
data is from the channel configured on device.