Hi,
I have an ESP32 device running openmqttgateway. It runs 24/7 and connection from the device to the router (i.e. when the sensor on the ESP picks something up and initiates a transmission) is very reliable and fast. The other way round it’s normally working fine for a while but after a few days, pinging the ESP from other devices on the network results in very high latency or even time outs.
The only way I found to fix this is to restart the wifi of the router or to reboot the entire router. Even if I restart the ESP32 the issue persists. Hence, I believe it’s a router issue, not a device issue.
I do get quite a few of these messages in the router log:
[1130654.402520] ath10k_ahb a800000.wifi: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0 arvif->paused: 0x0
Could that have anything to do with it?
How could I debug this issue?
Environment:
AVM FRITZ!Box 7530
OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.014.55016~7046a1c
brada4
November 10, 2025, 10:18pm
2
You are 4 OpenWrt updates behind.
koelscha:
very reliable
koelscha:
very high latency
Which of these?
Is the client only client to wifi adapter i.e queue 0 pertains to it?
is it mainline or ct driver? whichever - flip driver and firmware to other side.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like
You’re right. I fixed that meanwhile!
brada4:
Which of these?
Device → router is fine
router → device has high latency
I’m not sure what you mean.. The ESP32 can only talk in 2.4G Wifi if that answers the question.
not sure either. It’s just the OpenWRT image without any driver modifications or anything.
root@OpenWrt:~# ubus call system board
{
"kernel": "6.6.110",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "AVM FRITZ!Box 7530",
"board_name": "avm,fritzbox-7530",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.4",
"revision": "r28959-29397011cc",
"target": "ipq40xx/generic",
"description": "OpenWrt 24.10.4 r28959-29397011cc",
"builddate": "1760891865"
}
}
root@OpenWrt:~# cat /etc/config/network
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 'fdb2:b7b4:ac3d::/48'
option packet_steering '1'
config atm-bridge 'atm'
option vpi '1'
option vci '32'
option encaps 'llc'
option payload 'bridged'
option nameprefix 'dsl'
config dsl 'dsl'
option annex 'j'
option tone 'b'
option xfer_mode 'ptm'
option ds_snr_offset '0'
option line_mode 'vdsl'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
option ipv6 '0'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
list ipaddr '192.168.0.1/24'
option delegate '0'
config device
option name 'dsl0'
option macaddr 'DC:15:C8:6D:22:FF'
config interface 'wan'
option device 'dsl0.7'
option proto 'pppoe'
option ipv6 '0'
option username 'redacted'
option password 'redacted'
config interface 'Guest'
option proto 'static'
option device 'br-lan.20'
list ipaddr '192.168.20.1/24'
option delegate '0'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '30'
list ports 'lan1:t'
list ports 'lan2:t'
config interface 'IoT'
option proto 'static'
option device 'br-lan.30'
list ipaddr '192.168.30.1/24'
option delegate '0'
config bridge-vlan
option device 'br-lan'
option vlan '40'
list ports 'lan2:t'
config interface 'DMZ'
option proto 'static'
option device 'br-lan.40'
list ipaddr '192.168.40.1/24'
option delegate '0'
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/a000000.wifi'
option channel 'auto'
option band '2g'
option htmode 'HT20'
option cell_density '0'
option country 'US'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'main'
option encryption 'psk2'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/a800000.wifi'
option channel '36'
option band '5g'
option htmode 'VHT40'
option cell_density '0'
option country 'US'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'main'
option encryption 'psk2'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
config wifi-iface 'wifinet2'
option device 'radio0'
option mode 'ap'
option ssid 'guest'
option encryption 'psk2'
option network 'Guest'
option key 'redacted'
option isolate '1'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
config wifi-iface 'wifinet3'
option device 'radio0'
option mode 'ap'
option ssid 'IoT'
option encryption 'psk2'
option key 'redacted'
option network 'IoT'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
config wifi-iface 'wifinet5'
option device 'radio1'
option mode 'ap'
option ssid 'guest'
option encryption 'psk2'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option network 'Guest'
config wifi-iface 'wifinet6'
option device 'radio1'
option mode 'ap'
option encryption 'psk2'
option key 'redacted'
option ieee80211r '1'
option ft_over_ds '0'
option ft_psk_generate_local '1'
option network 'IoT'
option ssid 'IoT'
option disabled '1'
root@OpenWrt:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/local/'
option domain 'local'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
list dhcp_option '6,192.168.0.53'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piofolder '/tmp/odhcpd-piofolder'
config host
option name 'openmqttgateway'
option dns '1'
list mac '20:43:A8:E5:74:CC'
option ip '192.168.30.72'
### lots of other hosts configured - redacted
root@OpenWrt:~# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config zone
option name 'Guest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'Guest'
config forwarding
option src 'Guest'
option dest 'wan'
config rule
option name 'VLAN DHCP and DNS'
option src '*'
option dest_port '53 67 68'
option target 'ACCEPT'
config rule
option name 'PiHole Access'
option src '*'
option dest 'lan'
option dest_port '53'
option target 'ACCEPT'
list dest_ip '192.168.0.53'
list dest_ip 'fdb2:b7b4:ac3d:10:be24:11ff:fe17:ad19'
config zone
option name 'IoT'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'IoT'
config forwarding
option src 'lan'
option dest 'IoT'
config forwarding
option src 'IoT'
option dest 'wan'
config rule
option name 'Forward mDNS'
option src '*'
option src_port '5353'
option dest_port '5353'
option target 'ACCEPT'
list dest_ip '224.0.0.251'
list dest_ip 'ff02::fb'
list proto 'tcp'
list proto 'udp'
config forwarding
option src 'lan'
option dest 'Guest'
config zone
option name 'DMZ'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'DMZ'
config forwarding
option src 'DMZ'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'DMZ'
config rule
option name 'Allow-ICMPv6'
option family 'ipv6'
list proto 'icmp'
list icmp_type 'destination-unreachable'
list icmp_type 'echo-reply'
list icmp_type 'echo-request'
list icmp_type 'fragmentation-needed'
list icmp_type 'neighbour-advertisement'
list icmp_type 'neighbour-solicitation'
list icmp_type 'port-unreachable'
list icmp_type 'protocol-unreachable'
list icmp_type 'router-solicitation'
list icmp_type 'time-exceeded'
option src '*'
option target 'ACCEPT'
option limit '1000/second'
option limit_burst '100'
config rule
option name 'Allow-DHCPv6'
option family 'ipv6'
list proto 'udp'
option src '*'
option src_port '546'
option dest_port '547'
option target 'ACCEPT'
brada4
November 11, 2025, 7:16pm
4
-ct to -mainline best done if wired.
opkg update
opkg remove ath10k-firmware-qca4019-ct kmod-ath10k-ct
opkg install ath10k-firmware-qca4019 kmod-ath10k
# rmmod/insmod or reboot
Thanks, done that. Let's see what happens in a few days
brada4
November 11, 2025, 8:33pm
6
Your config is OK. You have my permission to use VHT80...
So, after a few days, I can say, it's working. Thanks!
Thanks for the hint, I changed it. If I remember correctly, I set channel width to 40 MHz before because setting it to 80 MHz automatically reduced the transmit power. Does not seem to be the case anymore.
system
Closed
November 26, 2025, 8:10pm
8
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.