Mt76: My OpenWrt Ones not able to scan 5G (on 24.10.4)

One thing I noticed recently with 24.10.4 on two different OpenWrt Ones is that if you have an SSID operating, but no devices are connected to it, then the scan returns no data. In my case, I observed this with 2.4G and with 5G. When devices are connected the scans work. They may also work if you do not have a SSID being broadcast (haven’t tested that yet).

EDIT: I believe when an SSID is being broadcast, then background scans are used, so there may be a time delay between clients being connected, and the ability to see neighbouring networks.

1 Like

Is it via ubus/luci or via iw?

It was using ubus/luci. I have just now tried to reproduce and got a different result with ubus/luci. When using iw dev phy1-apX scan. I now get command failed: Resource busy (-16) when scanning with 5G and get results with 2.4G whether stations are connected or not. Apparently I hallucinated the previous result (no I am not an AI :wink:).

EDIT: iw ... scan trigger and iw ... scan trigger passive also return the Resource Busy (-16) on the 5G radio.

There is NO "5ghz radio" on your router, just a single lobotomized broadcom wifi chip.

Er, for the OpenWrt One isn’t it a MediaTek MT7981B SoC, not Broadcom (or were your responding to the Pi user)?

EDIT: I’m thinking this ends up being a different issue and if there is a way to split this topic off, it should be done.

This topic is about the RPi 4B. talks about the OpenWrt One are just distracting, confusing and off-topic in this thread.

@slh @psherman I didn’t read the full thread carefully enough before posting, and thought this might be a similar issue. As it is not, is there a way to split off this topic, or should I just create a new one?

@slh Thank you. Pulling the config and system board data, as I am sure it would be asked, momentarily.

ubus call system board

{
	"kernel": "6.6.110",
	"hostname": "router1",
	"system": "ARMv8 Processor rev 4",
	"model": "OpenWrt One",
	"board_name": "openwrt,one",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.4",
		"revision": "r28959-29397011cc",
		"target": "mediatek/filogic",
		"description": "OpenWrt 24.10.4 r28959-29397011cc",
		"builddate": "1760891865"
	}
}

/etc/config/network (REDACTED)

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'REDACTEDv6'
	option packet_steering '1'

config device
	option name 'br-inner'
	option type 'bridge'
	list ports 'eth0'

config bridge-vlan 'lan_vlan'
	option device 'br-inner'
	option vlan '31'
	list ports 'eth0:t'

config bridge-vlan 'admin_vlan'
	option device 'br-inner'
	option vlan '101'
	list ports 'eth0:t'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'br-inner.31'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.31.1'
	option netmask '255.255.255.0'
	option ip6assign '64'
	option ip6hint '0'
	option ip6weight '999'
	option delegate '0'
	list dns '127.0.0.1'
	list dns '0::1'
	list dns_search 'REDACTED (1)'
	option dns_metric '200'
	list ip6class 'local'
	list ip6class 'wan6'
	option ip6ifaceid '::1'

config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'
	option enabled '1'
	option delegate '0'
	option hostname '*'

config interface 'wan6'
	option device 'eth1'
	option proto 'dhcpv6'
	option enabled '1'
	option reqaddress 'try'
	option reqprefix '58'
	option norelease '0'
	option peerdns '0'
	list ip6class 'wan6'
	list ip6class 'local'

config bridge-vlan 'guest_vlan'
	option device 'br-inner'
	option vlan '51'
	list ports 'eth0:t'

config device
	option name 'br-admin'
	option type 'bridge'
	list ports 'br-inner.101'

config interface 'admin'
	option proto 'static'
	option device 'br-admin'
	list ipaddr '192.168.101.1/24'
	option ip6weight '50'
	option delegate '0'
	list dns '127.0.0.1'
	list dns '0::1'
	list dns_search 'REDACTED (1)'
	option dns_metric '30'
	list ip6class 'local'

config device
	option name 'br-guest'
	option type 'bridge'
	list ports 'br-inner.51'

config interface 'guest'
	option proto 'static'
	option device 'br-guest'
	list ipaddr '192.168.51.1/24'
	option delegate '0'
	list dns '127.0.0.1'
	list dns '0::1'
	list dns_search 'REDACTED (1)'
	option dns_metric '90'
	option ip6assign '64'
	option ip6hint '0001'
	list ip6class 'local'
	list ip6class 'wan6'
	option ip6ifaceid '::1'

config bridge-vlan 'work1_vlan'
	option device 'br-inner'
	option vlan '61'
	list ports 'eth0:t'

config device
	option name 'br-work1'
	option type 'bridge'
	list ports 'br-inner.61'

config interface 'worknet'
	option proto 'static'
	option device 'br-worknet'
	list ipaddr '192.168.61.1/24'
	option delegate '0'
	list dns_search 'REDACTED (2)'
	list dns_search 'REDACTED (3)'

config bridge-vlan 'volunteer_vlan'
	option device 'br-inner'
	option vlan '71'
	list ports 'eth0:t'

config device
	option name 'br-volunteer'
	option type 'bridge'
	list ports 'br-inner.71'

config interface 'volunteer'
	option proto 'static'
	option device 'br-volunteer'
	list ipaddr '192.168.71.1/24'
	list ip6class 'local'
	option ip6weight '70'
	option delegate '0'
	list dns '127.0.0.1'
	list dns '0::1'
	list dns_search 'REDACTED (1)'
	option dns_metric '50'

config bridge-vlan 'bench1_vlan'
	option device 'br-inner'
	option vlan '4023'
	list ports 'eth0:t*'

config device
	option name 'br-bench1'
	option type 'bridge'
	list ports 'br-inner.4023'

config interface 'bench1'
	option proto 'static'
	option device 'br-bench1'
	option delegate '0'
	list ipaddr '192.168.1.84/24'

config interface 'workvpn2'
	option proto 'wireguard'
	option private_key 'REDACTED'
	option defaultroute '0'
	option delegate '0'
	list addresses '192.168.87.10/32'
	list dns '127.0.0.1'
	list dns '0::1'
	option dns_metric '60'
	option disabled '1'

config wireguard_workvpn2
	option description 'REDACTED'
	option public_key 'REDACTED'
	option preshared_key 'REDACTED'
	option route_allowed_ips '1'
	option endpoint_host 'REDACTED'
	option endpoint_port 'REDACTED'
	option persistent_keepalive '25'
	list allowed_ips '192.168.87.1/32'

config interface 'workvpn1'
	option proto 'wireguard'
	option private_key 'REDACTED'
	option delegate '0'
	option defaultroute '0'
	list addresses '192.168.125.20/32'
	list dns '127.0.0.1'
	list dns '0::1'
	option dns_metric '60'

config wireguard_workvpn1
	option description 'REDACTED'
	option public_key 'REDACTED'
	option preshared_key 'REDACTED'
	option persistent_keepalive '25'
	option endpoint_host 'REDACTED'
	option endpoint_port 'REDACTED'
	option route_allowed_ips '1'
	list allowed_ips 'REDACTED_LIST'

config device
	option name 'br-work2'
	option type 'bridge'
	list ports 'br-inner.87'

config interface 'work2'
	option proto 'static'
	option device 'br-work2'
	list ipaddr '192.168.87.1/24'
	option delegate '0'
	list dns_search 'REDACTED (3)'
	list dns_search 'REDACTED (4)'

config bridge-vlan 'work2_vlan'
	option device 'br-inner'
	option vlan '87'
	list ports 'eth0:t'

config interface 'home'
	option proto 'wireguard'
	option private_key 'REDACTED'
	option listen_port 'REDACTED'
	list dns '127.0.0.1'
	list dns '0::1'
	option delegate '0'
	option defaultroute '0'
	list addresses '192.168.91.1/32'
	list addresses 'REDACTEDv6'

config wireguard_homevpn
	option description 'REDACTED'
	option public_key 'REDACTED'
	option preshared_key 'REDACTED'
	option route_allowed_ips '1'
	option persistent_keepalive '25'
	list allowed_ips 'REDACTED_LIST'

config wireguard_homevpn
	option description 'REDACTED'
	option public_key 'REDACTED'
	option preshared_key 'REDACTED'
	option route_allowed_ips '1'
	option persistent_keepalive '25'
	list allowed_ips 'REDACTED_LIST'

config wireguard_homevpn
	option description 'REDACTED'
	option public_key 'REDACTED'
	option preshared_key 'REDACTED'
	option route_allowed_ips '1'
	option persistent_keepalive '25'
	list allowed_ips 'REDACTED_LIST'

/etc/config/wireless (REDACTED)

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi'
	option band '2g'
	option channel 'auto'
	option htmode 'HT20'
	option num_global_macaddr '7'
	option country 'CA'
	option cell_density '0'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'REDACTED1'
	option encryption 'sae-mixed'
	option key 'REDACTEDPW1'
	option ocv '0'
	option ieee80211w '1'
	option wpa_disable_eapol_key_retries '1'

config wifi-iface 'guest_radio0'
	option device 'radio0'
	option network 'guest'
	option mode 'ap'
	option ssid 'REDACTED2'
	option encryption 'sae-mixed'
	option key 'REDACTEDP2'
	option isolate '1'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi+1'
	option band '5g'
	option channel 'auto'
	option htmode 'VHT160'
	option num_global_macaddr '7'
	option country 'CA'
	option cell_density '0'

config wifi-iface 'default_radio1'
	option device 'radio1'
	option network 'lan'
	option mode 'ap'
	option ssid 'REDACTED1'
	option encryption 'sae-mixed'
	option key 'REDACTEDPW1'
	option ocv '0'
	option ieee80211w '1'
	option wpa_disable_eapol_key_retries '1'

config wifi-iface 'guest_radio1'
	option device 'radio1'
	option network 'guest'
	option mode 'ap'
	option ssid 'REDACTED2'
	option encryption 'sae-mixed'
	option key 'REDACTEDPW2'
	option isolate '1'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'

config wifi-iface 'wifinet4'
	option device 'radio0'
	option mode 'ap'
	option ssid 'REDACTED3'
	option encryption 'sae-mixed'
	option key 'REDACTEDPW3'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'
	option network 'worknet'

config wifi-iface 'wifinet5'
	option device 'radio1'
	option mode 'ap'
	option ssid 'REDACTED3'
	option encryption 'sae-mixed'
	option key 'REDACTEDPW3'
	option ocv '0'
	option wpa_disable_eapol_key_retries '1'
	option network 'worknet'

/etc/config/dhcp (REDACTED)


config dnsmasq 'main'
	option rebind_protection '1'
	option localservice '0'
	option authoritative '1'
	option port '53'
	option local '/REDACTED (1)/'
	option domain 'REDACTED (1)'
	option expandhosts '1'
	option rebind_localhost '1'
	option stripmac '1'
	option stripsubnet '1'
	option localuse '0'
	option proxydnssec '1'
	option quietdhcp '1'
	option leasefile '/tmp/dhcp.leases'
	list addnhosts '/var/lib/odhcpd/dhcp.leases'
	list server '127.0.0.1#5453'
	list server '::1#5453' # Stubby
	list server 'REDACTED_LIST'
	list rebind_domain 'REDACTED_LIST2'
	list interface 'admin'
	list interface 'bench1'
	list interface 'home'
	list interface 'volunteer'
	list interface 'lan'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '5m'
	option dhcpv6 'server'
	option ra 'server'
	option ra_slaac '0'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'
	list domain 'REDACTED (1)'
	list dns 'REDACTEDv6'
	list ntp 'REDACTEDv6'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/var/lib/odhcpd/dhcp.leases'
	option leasetrigger '/usr/lib/unbound/odhcpd.sh'
	option loglevel '4'
	option piofolder '/tmp/odhcpd-piofolder'

config dhcp 'admin'
	option interface 'admin'
	option start '100'
	option limit '150'
	option leasetime '5m'

config dhcp 'guest'
	option interface 'guest'
	option start '100'
	option limit '150'
	option leasetime '30m'
	option ra 'server'
	option dhcpv6 'server'
	list ra_flags 'managed-config'
	list ra_flags 'other-config'
	list ntp 'REDACTEDv6-local'

config dhcp 'work1'
	option interface 'work1'
	option start '100'
	option limit '150'
	option leasetime '5m'
	list dhcp_option '119,REDACTED,REDACTED'

config dhcp 'volunteer'
	option interface 'volunteer'
	option start '100'
	option limit '150'
	option leasetime '5m'

config dhcp 'bench1'
	option interface 'bench1'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option ignore '1'
	option dynamicdhcp '0'

config dhcp 'work2'
	option interface 'work2'
	option start '100'
	option limit '150'
	option leasetime '5m'

REDACTED config domain (multiple)
REDACTED config host (multiple)

config dnsmasq 'work1'
	option authoritative '1'
	option local '/REDACTED (3)/'
	option domain 'REDACTED (3)'
	option rebind_protection '1'
	option rebind_localhost '1'
	option localservice '1'
	list interface 'workvpn'
	list interface 'work1'
	option domainneeded '1'
	option stripmac '1'
	option stripsubnet '1'
	option quietdhcp '1'
	option leasefile '/tmp/dhcp-work1.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option filter_aaaa '1'
	option expandhosts '1'
	list server 'REDACTED_LIST'
	list rebind_domain 'REDACTED_LIST'
	list notinterface 'loopback'

config dnsmasq 'work2'
	option domainneeded '1'
	option authoritative '1'
	option local '/REDACTED (4)/'
	option domain 'REDACTED (4)'
	option rebind_protection '1'
	option rebind_localhost '1'
	option localservice '0'
	option filter_aaaa '1'
	option stripmac '1'
	option stripsubnet '1'
	option quietdhcp '1'
	option leasefile '/tmp/dhcp-work2.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option expandhosts '1'
	list rebind_domain 'REDACTED_LIST'
	list notinterface 'loopback'
	list interface 'work2'
	list server 'REDACTED_LIST'

config dhcp 'work2'
	option interface 'work2'
	option start '100'
	option limit '150'
	option leasetime '15m'
	list dhcp_option '119,REDACTED (3),REDACTED (4)'

config dnsmasq 'Guest'
	option authoritative '1'
	option local '/REDACTED (5)/'
	option domain 'REDACTED (6)'
	option expandhosts '1'
	option logfacility 'DAEMON'
	option rebind_protection '1'
	option rebind_localhost '1'
	list rebind_domain 'REDACTED_LIST'
	option localservice '1'
	list interface 'guest'
	option leasefile '/tmp/dhcp-guest.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	list addnhosts '/var/lib/odhcpd/dhcp.leases'
	option quietdhcp '1'
	option localise_queries '1'
	option stripmac '1'
	option stripsubnet '1'
	list notinterface 'loopback'
	list server '127.0.0.1#5453' # Stubby
	list server '::1#5453'

/etc/config/firewall

Will add if it becomes relevant - this is long enough already.

After many many hours of trial and error I figured out the issue. In the end it was my home router and the 5 GHz channel was set to auto and was using channel 60. I forced the channel to 34 and instantly the 5G Networks showed up when I did a scan from Pi 4B running my OpenWRT.

1 Like

So after some searching (since I’ve fallen down this rabbit hole; it is quite accidental that I even noticed this) it seems I may need to change from ‘auto’ channel to picking a specific channel on the wireless. Will report back when I know.

Hint found here: Wi-Fi scan with country set to 'AU' - #2 by danghuy1994

EDIT: It is the combination of channel and channel width that determines success or failure of the scans. ‘auto’ means the right combo may not be in play. Most likely this is primarily regulatory driven, so looking at regdb might allow optimization of your pick, but for me, I’m just happen to have found a combo that works for my needs, now.

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