5Ghz radio sometimes works, sometimes doesn't

The 2.4Ghz network works without issues.

But the 5Ghz is very unreliable. Sometimes works, sometimes doesn't.
However, even when it doesn't work, via LUCI, I can scan and discover all the broadcast 5Ghz networks around me. However, I can not connect to any. Not can I serve my own network at 5Ghz.

System information is:
Model: Wavlink WL-WN575A3|
Architecture: MediaTek MT7628AN ver:1 eco:2|
Firmware Version: OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.228.31946-f64b152)|
Kernel Version: 4.14.63|

When I restart the 5Ghz radio the system log file gives me this:

Wed Oct  3 03:12:52 2018 daemon.err hostapd: Configuration file: /var/run/hostapd-phy1.conf
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.052339] IPv6: ADDRCONF(NETDEV_UP): wlan1-1: link is not ready
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.087348] br-lan: port 3(wlan1-1) entered blocking state
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.098297] br-lan: port 3(wlan1-1) entered disabled state
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.109575] device wlan1-1 entered promiscuous mode
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: Channel 157 (secondary) not allowed for AP mode
Wed Oct  3 03:12:52 2018 daemon.warn hostapd: wlan1-1: IEEE 802.11 Configured channel (161) not found from the channel list of current mode (2) IEEE 802.11a
Wed Oct  3 03:12:52 2018 daemon.warn hostapd: wlan1-1: IEEE 802.11 Hardware does not support configured channel
Wed Oct  3 03:12:52 2018 daemon.err hostapd: Could not select hw_mode and channel. (-3)
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: interface state COUNTRY_UPDATE->DISABLED
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: AP-DISABLED
Wed Oct  3 03:12:52 2018 daemon.err hostapd: wlan1-1: Unable to setup interface.
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: interface state DISABLED->DISABLED
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: AP-DISABLED
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: wlan1-1: CTRL-EVENT-TERMINATING
Wed Oct  3 03:12:52 2018 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan1-1 wasn't started
Wed Oct  3 03:12:52 2018 daemon.notice hostapd: nl80211: deinit ifname=wlan1-1 disabled_11b_rates=0
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.189439] device wlan1-1 left promiscuous mode
Wed Oct  3 03:12:52 2018 kern.info kernel: [ 2209.198801] br-lan: port 3(wlan1-1) entered disabled state
Wed Oct  3 03:12:52 2018 daemon.notice netifd: radio1 (24222): cat: can't open '/var/run/wifi-phy1.pid': No such file or directory
Wed Oct  3 03:12:53 2018 daemon.notice netifd: radio1 (24222): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path ()
Wed Oct  3 03:12:53 2018 daemon.notice netifd: radio1 (24222): Command failed: Invalid argument
Wed Oct  3 03:12:53 2018 daemon.notice netifd: radio1 (24222): Device setup failed: HOSTAPD_START_FAILED

Any help is appreciated.

Please post /etc/config/wireless and /etc/config/network, removing the SSID and password from the former.

These log entries seem to indicate where the issue lies:

Wed Oct 3 03:12:52 2018 daemon.err hostapd:    Configuration file: /var/run/hostapd-phy1.conf

Wed Oct 3 03:12:52 2018 daemon.notice hostapd: Channel 157 (secondary) not allowed for AP mode
Wed Oct 3 03:12:52 2018 daemon.warn hostapd:   wlan1-1: IEEE 802.11 Configured channel (161) not found from the channel list of current mode (2) IEEE 802.11a
Wed Oct 3 03:12:52 2018 daemon.warn hostapd:   wlan1-1: IEEE 802.11 Hardware does not support configured channel
Wed Oct 3 03:12:52 2018 daemon.err hostapd:    Could not select hw_mode and channel. (-3)

Wed Oct 3 03:12:52 2018 daemon.notice hostapd: wlan1-1: interface state COUNTRY_UPDATE->DISABLED
Wed Oct 3 03:12:52 2018 daemon.notice hostapd: wlan1-1: AP-DISABLED
Wed Oct 3 03:12:52 2018 daemon.err hostapd:    wlan1-1: Unable to setup interface.

Wed Oct 3 03:12:52 2018 daemon.notice netifd:  radio1 (24222): cat: can't open '/var/run/wifi-phy1.pid': No such file or directory
Wed Oct 3 03:12:53 2018 daemon.notice netifd:  radio1 (24222): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process  path ()
Wed Oct 3 03:12:53 2018 daemon.notice netifd:  radio1 (24222): Command failed: Invalid argument
Wed Oct 3 03:12:53 2018 daemon.notice netifd:  radio1 (24222): Device setup failed: HOSTAPD_START_FAILED

Have you tried to use another channel besides 157?

Please always place code, config, and log output within code boxes.

  • If such content is being quoted, please place the content in a code box within the quote, as monospaced content needs to be formatted as monospaced.
1 Like

IT seems the router supports channels only up to 140.
Thanks for the help

The channels available depend upon the country you live in, as every country restricts different frequencies

  • For example, there's a certain Euro country that restricts all channels above 100 for the 5GHz wavelengths

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.