ASUS AX4200 kernel warning / mac80211 restart

Hello Team, as the "main" AX4200 topic has been already closed, opening a new one. Just a couple of mins ago wifi access has been lost, but it has been restored automatically. As per the OpenWRT logs, this happened:

Mon Aug 12 14:11:09 2024 kern.err kernel: [29435.353007] mt798x-wmac 18000000.wifi: Message 000026ed (seq 9) timeout
Mon Aug 12 14:11:29 2024 kern.err kernel: [29455.810566] mt798x-wmac 18000000.wifi: Message 00005aed (seq 10) timeout
Mon Aug 12 14:11:50 2024 kern.err kernel: [29476.268582] mt798x-wmac 18000000.wifi: Message 000026ed (seq 11) timeout
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.275339] ------------[ cut here ]------------
Mon Aug 12 14:11:50 2024 kern.warn kernel: [29476.279943] WARNING: CPU: 3 PID: 19405 at 0xffffffc000993308 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.288721] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mt7915e mt76_connac_lib mt76 mac80211 cfg80211 slhc nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat crypto_safexcel sha1_generic seqiv md5 des_generic libdes authencesn authenc leds_gpio xhci_plat_hcd xhci_pci xhci_mtk_hcd xhci_hcd gpio_button_hotplug usbcore usb_common aquantia crc_ccitt
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.354255] CPU: 3 PID: 19405 Comm: kworker/u8:4 Not tainted 5.15.162 #0
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.360938] Hardware name: ASUS TUF-AX4200 (DT)
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.365451] Workqueue: phy1 0xffffffc0009919c0 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.373008] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.379949] pc : 0xffffffc000993308 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.386543] lr : 0xffffffc0009931d0 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.393138] sp : ffffffc01113bc80
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.396436] x29: ffffffc01113bc80 x28: ffffffc008b12000 x27: 0000000000000001
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.403552] x26: ffffff8000b9dc00 x25: ffffff80040611a0 x24: ffffffc008b12000
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.410667] x23: ffffffc000991ea0 x22: ffffff80049a80e8 x21: 0000000000000001
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.417782] x20: ffffff8009e37300 x19: ffffff80049ac000 x18: 0000000000000000
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.424897] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.432011] x14: 0000000000000000 x13: 0000000000000002 x12: ffffffc008847678
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.439126] x11: 0000000000000040 x10: ffffffc008a477e8 x9 : ffffffc008a477e0
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.446241] x8 : ffffff8000403258 x7 : 0000000000000000 x6 : 0000004fced8494c
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.453356] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.460471] x2 : 0000000000000001 x1 : 0000000000000002 x0 : 00000000fffffff4
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.467586] Call trace:
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.470019]  0xffffffc000993308 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.476267]  0xffffffc000991ea0 [mac80211@000000009cad9ba9+0x84000]
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.482514]  0xffffffc0080507f0
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.485639]  0xffffffc0080515e0
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.488764]  0xffffffc008058d2c
Mon Aug 12 14:11:50 2024 kern.debug kernel: [29476.491889]  0xffffffc00801581c
Mon Aug 12 14:11:50 2024 kern.warn kernel: [29476.495014] ---[ end trace 4aec45c1ba17abde ]---

I'm running OpenWrt 23.05.4 on an ASUS TUF-AX4200 device.

Is there anything to be investigated here further, or let's call it bad moment and be happy that it automatically recovered? If there's any way to catch a similar issue in the future with more verbose logging, I'm open to look into it.

Thank you!

Do you use pppoe and firewall offload?

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:
grafik
Remember to redact passwords, 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

Hello @brada4 , indeed it is PPPoE, I'm not sure about firewall offload, practically everything is on default settings. Redacted the passwords and removed the static DHCP reservation entries. Please see below:

ubus call system board

{
        "kernel": "5.15.162",
        "hostname": "OpenWrtAX",
        "system": "ARMv8 Processor rev 4",
        "model": "ASUS TUF-AX4200",
        "board_name": "asus,tuf-ax4200",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.4",
                "revision": "r24012-d8dd03c46f",
                "target": "mediatek/filogic",
                "description": "OpenWrt 23.05.4 r24012-d8dd03c46f"
        }
}

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:d8b3:713b::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config device
        option name 'lan1'
        option macaddr 'c8:7f:54:23:xx:xx'

config device
        option name 'lan2'
        option macaddr 'c8:7f:54:23:xx:xx'

config device
        option name 'lan3'
        option macaddr 'c8:7f:54:23:xx:xx'

config device
        option name 'lan4'
        option macaddr 'c8:7f:54:23:xx:xx'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config device
        option name 'eth1'
        option macaddr 'c8:7f:54:23:xx:xx'

config interface 'wan'
        option device 'eth1.7'
        option proto 'pppoe'
        option username 'xxx'
        option password 'xxx'
        option ipv6 'auto'

config interface 'wan6'
        option device 'eth1'
        option proto 'dhcpv6'

cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/18000000.wifi'
        option channel '1'
        option band '2g'
        option htmode 'HE20'
        option country 'DE'
        option cell_density '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'xxx'
        option encryption 'sae-mixed'
        option key 'xxx'
        option wpa_disable_eapol_key_retries '1'
        option max_inactivity '3600'

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

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'xxx'
        option encryption 'sae-mixed'
        option key 'xxx'
        option wpa_disable_eapol_key_retries '1'
        option max_inactivity '3600'

cat /etc/config/dhcp

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv4 'server'
        option dhcpv6 'server'
        option ra 'server'
        list ra_flags 'managed-config'
        list ra_flags 'other-config'

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'

config dnsmasq 'AsusAX4200'
        option rebind_protection '0'
        option localservice '1'
        option domainneeded '1'
        option authoritative '1'
        option domain 'lan'
        option confdir '/tmp/dnsmasq.d'

cat /etc/config/firewall

config defaults
        option syn_flood '1'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'lan'
        list network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config zone
        option name 'wan'
        list network 'wan'
        list network 'wan6'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

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'

offload not enabled, set country code for 5ghz too.