Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac80211 errors when connecting to ath11k with dynamic vlan #26

Open
1 task done
tardeaux opened this issue Jan 1, 2025 · 18 comments
Open
1 task done

mac80211 errors when connecting to ath11k with dynamic vlan #26

tardeaux opened this issue Jan 1, 2025 · 18 comments
Labels
bug Something isn't working

Comments

@tardeaux
Copy link

tardeaux commented Jan 1, 2025

Describe the bug

When attempting to connect a client with a dynamic VLAN assignment to the ath11k radio, multiple warnings are displayed in the system log and the connection fails. If the same config is moved to the ath10k radio in the Xiaomi AX3600, the connection is successful. This issue is not present in the non-NSS builds.

OpenWrt version

r28616-2f79e64ebc

OpenWrt release

SNAPSHOT

OpenWrt target/subtarget

qualcommax/ipq807x

Device

Xiaomi AX3600 / Linksys LN1301

Image kind

Self-built image

Steps to reproduce

Configure dynamic vlan:

root@OpenWrt-10:~# 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 'fd1f:1574:f95d::/48'

config interface 'lan'
option device 'br-vlan1'
option proto 'none'
option defaultroute '0'

config interface 'mgmt'
option proto 'static'
option device 'br-vlan10'
option ipaddr '192.168.10.10'
option netmask '255.255.255.0'
option gateway '192.168.10.1'
list dns '192.168.10.1'

config device
option type 'bridge'
option name 'br-vlan1'
option igmp_snooping '1'
list ports 'lan1'
list ports 'lan3'
list ports 'wan'

config device
option type 'bridge'
option name 'br-vlan10'
option igmp_snooping '1'
list ports 'wan.10'

config interface 'kids'
option proto 'none'
option device 'br-vlan20'
option defaultroute '0'

config interface 'Google'
option proto 'none'
option device 'br-vlan40'
option defaultroute '0'

config interface 'iot'
option proto 'none'
option device 'br-vlan50'
option defaultroute '0'

config device
option type '8021q'
option ifname 'wan'
option vid '1'
option name 'wan.1'

config device
option type '8021q'
option ifname 'wan'
option vid '20'
option name 'wan.20'

config device
option type '8021q'
option ifname 'wan'
option vid '40'
option name 'wan.40'

config device
option type '8021q'
option ifname 'wan'
option vid '50'
option name 'wan.50'

config device
option type '8021q'
option ifname 'wan'
option vid '10'
option name 'wan.10'

config device
option type 'bridge'
option name 'br-vlan20'
option igmp_snooping '1'
list ports 'lan2'
list ports 'wan.20'

config device
option type 'bridge'
option name 'br-vlan40'
list ports 'wan.40'
option igmp_snooping '1'

config device
option type 'bridge'
option name 'br-vlan50'
list ports 'wan.50'
option igmp_snooping '1'


root@OpenWrt-10:~# cat /etc/config/wireless

config wifi-device 'radio0'
option type 'mac80211'
option path 'soc@0/20000000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
option band '5g'
option channel '36'
option htmode 'VHT80'
option country 'US'
option disabled '1'

config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc@0/c000000.wifi'
option band '5g'
option channel '36'
option htmode 'HE80'
option country 'US'
option cell_density '0'
option disabled '0'

config wifi-device 'radio2'
option type 'mac80211'
option path 'platform/soc@0/c000000.wifi+1'
option band '2g'
option channel '1'
option htmode 'HE20'
option disabled '1'

config wifi-iface 'wifinet0'
option device 'radio1'
option ifname 'wlan0'
option mode 'ap'
option ssid ''
option encryption 'psk2+ccmp'
option key ''
option auth_server '192.168.10.10'
option auth_secret ''
option vlan_file '/etc/config/hostapd0.vlan'
option dynamic_vlan '2'
option vlan_no_bridge '0'
option vlan_bridge 'br-vlan'

config wifi-vlan
option name 'vl1'
option network 'lan'
option vid '1'

config wifi-vlan
option name 'vl20'
option network 'kids'
option vid '20'

config wifi-vlan
option name 'vl40'
option network 'google'
option vid '40'

config wifi-vlan
option name 'vl50'
option network 'iot'
option vid '50'

config wifi-vlan
option name 'vl10'
option network 'mgmt'
option vid '10'


root@OpenWrt-10:~# cat /etc/config/hostapd0.vlan
1 wlan0.1 br-vlan1
20 wlan0.20 br-vlan20
40 wlan0.40 br-vlan40
50 wlan0.50 br-vlan50
10 wlan0.10 br-vlan10


Attempt to connect client device, observe failure.

Disable ath11k radio (radio1) and enable ath10k (radio0)
Change wireless config for ssid: option device 'radio0' and reload radios
Attempt to connect client device, observe success.

Actual behaviour

Wed Jan 1 16:28:20 2025 daemon.notice hostapd: phy1-ap0: AP-ENABLED
Wed Jan 1 16:28:32 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 RADIUS: VLAN ID 40
Wed Jan 1 16:28:32 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: authenticated
Wed Jan 1 16:28:32 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: associated (aid 1)
Wed Jan 1 16:28:32 2025 daemon.notice hostapd: phy1-ap0: AP-STA-CONNECTED d4:3a:2c:62:f1:e7 auth_alg=open
Wed Jan 1 16:28:32 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 RADIUS: starting accounting session 6AC6C006E1139E5C
Wed Jan 1 16:28:32 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 WPA: pairwise key handshake completed (RSN)
Wed Jan 1 16:28:32 2025 daemon.notice hostapd: phy1-ap0: EAPOL-4WAY-HS-COMPLETED d4:3a:2c:62:f1:e7
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.097047] ------------[ cut here ]------------
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.097086] WARNING: CPU: 0 PID: 47 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/tx.c:6332 ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.100751] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp batman_adv(O) ath11k_ahb(O) ath11k(O) ath10k_pci(O) ath10k_core(O) ath(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.180499] CPU: 0 PID: 47 Comm: kworker/u8:2 Tainted: G W O 6.6.68 #0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.202737] Hardware name: Xiaomi AX3600 (DT)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.210718] Workqueue: events_unbound wiphy_delayed_work_pending [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.214975] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.221744] pc : ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.228687] lr : __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.234244] sp : ffffffc08135bbc0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.240748] x29: ffffffc08135bbc0 x28: 0000000000000003 x27: ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.244228] x26: 00000000000000f3 x25: 0000000000000000 x24: ffffff800714e300
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.251346] x23: ffffff800f442040 x22: 0000000000000000 x21: 0000000000000040
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.258464] x20: 0000000000001003 x19: ffffff801719e000 x18: 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.265582] x17: 0000000000000000 x16: 0000000000000000 x15: 00008e974e9600b0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.272701] x14: 0000000000000000 x13: 0000000000000030 x12: 0101010101010101
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.279819] x11: 7f7f7f7f7f7f7f7f x10: feff636d746e616d x9 : 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.286936] x8 : ffffff800714e3b4 x7 : 0000000000000ec0 x6 : 0000000000000018
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.294054] x5 : ffffff800714e300 x4 : 0000000000000021 x3 : 00000000ffffffff
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.301172] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.308291] Call trace:
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.315399] ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.317662] __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.322871] ieee80211_process_addba_request+0x84/0x124 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.329036] ieee80211_ibss_leave+0xb94/0xfcc [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.335284] wiphy_delayed_work_pending+0x328/0x468 [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.340753] process_one_work+0x178/0x2d4
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.346393] worker_thread+0x2ec/0x4d8
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.350471] kthread+0xdc/0xe0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.354115] ret_from_fork+0x10/0x20
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.357157] ---[ end trace 0000000000000000 ]---
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.421292] ------------[ cut here ]------------
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.421330] WARNING: CPU: 0 PID: 47 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/tx.c:6332 ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.424996] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp batman_adv(O) ath11k_ahb(O) ath11k(O) ath10k_pci(O) ath10k_core(O) ath(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.504745] CPU: 0 PID: 47 Comm: kworker/u8:2 Tainted: G W O 6.6.68 #0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.526980] Hardware name: Xiaomi AX3600 (DT)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.534962] Workqueue: events_unbound wiphy_delayed_work_pending [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.539219] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.545989] pc : ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.552931] lr : __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.558487] sp : ffffffc08135bbc0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.564992] x29: ffffffc08135bbc0 x28: 0000000000000003 x27: ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.568472] x26: 00000000000000f4 x25: 0000000000000000 x24: ffffff800478ba00
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.575590] x23: ffffff80121d5040 x22: 0000000000000000 x21: 0000000000000040
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.582707] x20: 0000000000001003 x19: ffffff801719e000 x18: 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.589827] x17: 0000000000000000 x16: 0000000000000000 x15: 02e8a945c1763a4a
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.596945] x14: 0000000000000000 x13: 0000000000000030 x12: 0101010101010101
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.604063] x11: 7f7f7f7f7f7f7f7f x10: feff636d746e616d x9 : 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.611181] x8 : ffffff800478bab4 x7 : 0000000000000ec0 x6 : 0000000000000018
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.618298] x5 : ffffff800478ba00 x4 : 0000000000000021 x3 : 00000000ffffffff
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.625417] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.632536] Call trace:
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.639644] ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.641905] __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.647117] ieee80211_process_addba_request+0x84/0x124 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.653279] ieee80211_ibss_leave+0xb94/0xfcc [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.659528] wiphy_delayed_work_pending+0x328/0x468 [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.664998] process_one_work+0x178/0x2d4
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.670636] worker_thread+0x2ec/0x4d8
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.674716] kthread+0xdc/0xe0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.678360] ret_from_fork+0x10/0x20
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.681400] ---[ end trace 0000000000000000 ]---
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.871343] ------------[ cut here ]------------
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.871386] WARNING: CPU: 3 PID: 2968 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/tx.c:6332 ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.875052] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp batman_adv(O) ath11k_ahb(O) ath11k(O) ath10k_pci(O) ath10k_core(O) ath(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.954972] CPU: 3 PID: 2968 Comm: kworker/u8:6 Tainted: G W O 6.6.68 #0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.977210] Hardware name: Xiaomi AX3600 (DT)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.985192] Workqueue: events_unbound wiphy_delayed_work_pending [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.989624] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 296.996393] pc : ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.003335] lr : __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.008892] sp : ffffffc085ca3bc0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.015396] x29: ffffffc085ca3bc0 x28: 0000000000000003 x27: ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.018876] x26: 00000000000000f5 x25: 0000000000000000 x24: ffffff801265ee00
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.025994] x23: ffffff800f0c6040 x22: 0000000000000000 x21: 0000000000000040
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.033112] x20: 0000000000001003 x19: ffffff801719e000 x18: 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.040229] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.047348] x14: 0000000000000000 x13: 0000000000000030 x12: 0101010101010101
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.054465] x11: 7f7f7f7f7f7f7f7f x10: feff636d746e616d x9 : 0000000000000000
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.061584] x8 : ffffff801265eeb4 x7 : 0000000000000ec0 x6 : 0000000000000018
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.068701] x5 : ffffff801265ee00 x4 : 0000000000000021 x3 : 00000000ffffffff
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.075820] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffffff8017288900
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.082938] Call trace:
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.090046] ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.092310] __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.097518] ieee80211_process_addba_request+0x84/0x124 [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.103683] ieee80211_ibss_leave+0xb94/0xfcc [mac80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.109932] wiphy_delayed_work_pending+0x328/0x468 [cfg80211]
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.115401] process_one_work+0x178/0x2d4
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.121039] worker_thread+0x2ec/0x4d8
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.125119] kthread+0xdc/0xe0
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.128762] ret_from_fork+0x10/0x20
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.131804] ---[ end trace 0000000000000000 ]---
Wed Jan 1 16:28:33 2025 kern.warn kernel: [ 297.135764] ------------[ cut here ]------------
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.140141] WARNING: CPU: 3 PID: 2968 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/tx.c:6332 ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.144757] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp batman_adv(O) ath11k_ahb(O) ath11k(O) ath10k_pci(O) ath10k_core(O) ath(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.224677] CPU: 3 PID: 2968 Comm: kworker/u8:6 Tainted: G W O 6.6.68 #0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.246915] Hardware name: Xiaomi AX3600 (DT)
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.254897] Workqueue: events_unbound wiphy_delayed_work_pending [cfg80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.259327] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.266097] pc : ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.273039] lr : __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.278596] sp : ffffffc085ca3bc0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.285100] x29: ffffffc085ca3bc0 x28: 0000000000000003 x27: ffffff8017288900
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.288581] x26: 00000000000000f6 x25: 0000000000000000 x24: ffffff801265e700
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.295699] x23: ffffff8008d5c040 x22: 0000000000000000 x21: 0000000000000040
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.302816] x20: 0000000000001003 x19: ffffff801719e000 x18: 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.309934] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.317052] x14: 0000000000000000 x13: 0000000000000030 x12: 0101010101010101
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.324171] x11: 7f7f7f7f7f7f7f7f x10: feff636d746e616d x9 : 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.331289] x8 : ffffff801265e7b4 x7 : 0000000000000ec0 x6 : 0000000000000018
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.338407] x5 : ffffff801265e700 x4 : 0000000000000021 x3 : 00000000ffffffff
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.345524] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffffff8017288900
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.352644] Call trace:
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.359751] ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.362014] __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.367225] ieee80211_process_addba_request+0x84/0x124 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.373387] ieee80211_ibss_leave+0xb94/0xfcc [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.379636] wiphy_delayed_work_pending+0x328/0x468 [cfg80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.385105] process_one_work+0x178/0x2d4
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.390744] worker_thread+0x2ec/0x4d8
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.394823] kthread+0xdc/0xe0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.398467] ret_from_fork+0x10/0x20
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.401508] ---[ end trace 0000000000000000 ]---
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.405562] ------------[ cut here ]------------
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.409845] WARNING: CPU: 3 PID: 2968 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/tx.c:6332 ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.414461] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp batman_adv(O) ath11k_ahb(O) ath11k(O) ath10k_pci(O) ath10k_core(O) ath(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.494382] CPU: 3 PID: 2968 Comm: kworker/u8:6 Tainted: G W O 6.6.68 #0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.516621] Hardware name: Xiaomi AX3600 (DT)
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.524602] Workqueue: events_unbound wiphy_delayed_work_pending [cfg80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.529033] pstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.535801] pc : ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.542743] lr : __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.548302] sp : ffffffc085ca3bc0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.554806] x29: ffffffc085ca3bc0 x28: 0000000000000003 x27: ffffff8017288900
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.558285] x26: 00000000000000f7 x25: 0000000000000000 x24: ffffff801265e500
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.565404] x23: ffffff8008d5e040 x22: 0000000000000000 x21: 0000000000000040
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.572521] x20: 0000000000001003 x19: ffffff801719e000 x18: 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.579639] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.586758] x14: 0000000000000000 x13: 0000000000000030 x12: 0101010101010101
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.593876] x11: 7f7f7f7f7f7f7f7f x10: feff636d746e616d x9 : 0000000000000000
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.600993] x8 : ffffff801265e5b4 x7 : 0000000000000ec0 x6 : 0000000000000018
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.608111] x5 : ffffff801265e500 x4 : 0000000000000021 x3 : 00000000ffffffff
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.615230] x2 : 0000000000000007 x1 : 0000000000000000 x0 : ffffff8017288900
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.622349] Call trace:
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.629456] ieee80211_tx_skb_tid+0x64/0x78 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.631719] __ieee80211_start_rx_ba_session+0x410/0x50c [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.636929] ieee80211_process_addba_request+0x84/0x124 [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.643092] ieee80211_ibss_leave+0xb94/0xfcc [mac80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.649342] wiphy_delayed_work_pending+0x328/0x468 [cfg80211]
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.654811] process_one_work+0x178/0x2d4
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.660449] worker_thread+0x2ec/0x4d8
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.664528] kthread+0xdc/0xe0
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.668173] ret_from_fork+0x10/0x20
Wed Jan 1 16:28:34 2025 kern.warn kernel: [ 297.671213] ---[ end trace 0000000000000000 ]---
Wed Jan 1 16:28:50 2025 daemon.notice hostapd: phy1-ap0: AP-STA-DISCONNECTED d4:3a:2c:62:f1:e7
Wed Jan 1 16:28:51 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: disassociated
Wed Jan 1 16:28:52 2025 daemon.info hostapd: phy1-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

Expected behaviour

Wed Jan 1 16:24:46 2025 daemon.info hostapd: phy0-ap0: STA d4:3a:2c:62:f1:e7 RADIUS: VLAN ID 40
Wed Jan 1 16:24:46 2025 daemon.info hostapd: phy0-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: authenticated
Wed Jan 1 16:24:46 2025 daemon.info hostapd: phy0-ap0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: associated (aid 1)
Wed Jan 1 16:24:46 2025 daemon.notice hostapd: phy0-ap0: AP-STA-CONNECTED d4:3a:2c:62:f1:e7 auth_alg=open
Wed Jan 1 16:24:46 2025 daemon.info hostapd: phy0-ap0: STA d4:3a:2c:62:f1:e7 RADIUS: starting accounting session 4F09ED1F7F18FAB7
Wed Jan 1 16:24:46 2025 daemon.info hostapd: phy0-ap0: STA d4:3a:2c:62:f1:e7 WPA: pairwise key handshake completed (RSN)
Wed Jan 1 16:24:46 2025 daemon.notice hostapd: phy0-ap0: EAPOL-4WAY-HS-COMPLETED d4:3a:2c:62:f1:e7

Additional info

No response

Diffconfig

CONFIG_TARGET_qualcommax=y
CONFIG_TARGET_qualcommax_ipq807x=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_linksys_mx4300=y
CONFIG_TARGET_DEVICE_PACKAGES_qualcommax_ipq807x_DEVICE_linksys_mx4300=""
CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_xiaomi_ax3600=y
CONFIG_TARGET_DEVICE_PACKAGES_qualcommax_ipq807x_DEVICE_xiaomi_ax3600=""
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
CONFIG_ATH11K_NSS_MESH_SUPPORT=y
CONFIG_BUILD_PATENTED=y
CONFIG_CCACHE=y
CONFIG_COLLECT_KERNEL_DEBUG=y
CONFIG_EXPERIMENTAL=y
CONFIG_FREERADIUS3_OPENSSL=y
CONFIG_KERNEL_ARM_PMU=y
CONFIG_KERNEL_ARM_PMUV3=y
CONFIG_KERNEL_DYNAMIC_DEBUG=y
CONFIG_KERNEL_PERF_EVENTS=y
# CONFIG_KERNEL_PREEMPT is not set
CONFIG_KERNEL_PREEMPT_NONE=y
CONFIG_KERNEL_PREEMPT_NONE_BUILD=y
CONFIG_NSS_DRV_WIFI_MESH_ENABLE=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_OPENSSL_OPTIMIZE_SPEED=y
CONFIG_OPENSSL_WITH_ASM=y
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
CONFIG_OPENSSL_WITH_CMS=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
CONFIG_OPENSSL_WITH_IDEA=y
CONFIG_OPENSSL_WITH_MDC2=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SEED=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_OPENSSL_WITH_TLS13=y
CONFIG_OPENSSL_WITH_WHIRLPOOL=y
# CONFIG_PACKAGE_apk-mbedtls is not set
CONFIG_PACKAGE_apk-openssl=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_collectd=y
CONFIG_PACKAGE_collectd-mod-cpu=y
CONFIG_PACKAGE_collectd-mod-interface=y
CONFIG_PACKAGE_collectd-mod-iwinfo=y
CONFIG_PACKAGE_collectd-mod-load=y
CONFIG_PACKAGE_collectd-mod-memory=y
CONFIG_PACKAGE_collectd-mod-network=y
CONFIG_PACKAGE_collectd-mod-rrdtool=y
CONFIG_PACKAGE_freeradius3=y
CONFIG_PACKAGE_freeradius3-common=y
CONFIG_PACKAGE_freeradius3-default=y
CONFIG_PACKAGE_freeradius3-democerts=y
CONFIG_PACKAGE_freeradius3-mod-always=y
CONFIG_PACKAGE_freeradius3-mod-attr-filter=y
CONFIG_PACKAGE_freeradius3-mod-chap=y
CONFIG_PACKAGE_freeradius3-mod-detail=y
CONFIG_PACKAGE_freeradius3-mod-digest=y
CONFIG_PACKAGE_freeradius3-mod-eap=y
CONFIG_PACKAGE_freeradius3-mod-eap-gtc=y
CONFIG_PACKAGE_freeradius3-mod-eap-md5=y
CONFIG_PACKAGE_freeradius3-mod-eap-mschapv2=y
CONFIG_PACKAGE_freeradius3-mod-eap-peap=y
CONFIG_PACKAGE_freeradius3-mod-eap-pwd=y
CONFIG_PACKAGE_freeradius3-mod-eap-tls=y
CONFIG_PACKAGE_freeradius3-mod-eap-ttls=y
CONFIG_PACKAGE_freeradius3-mod-exec=y
CONFIG_PACKAGE_freeradius3-mod-expiration=y
CONFIG_PACKAGE_freeradius3-mod-expr=y
CONFIG_PACKAGE_freeradius3-mod-files=y
CONFIG_PACKAGE_freeradius3-mod-logintime=y
CONFIG_PACKAGE_freeradius3-mod-mschap=y
CONFIG_PACKAGE_freeradius3-mod-pap=y
CONFIG_PACKAGE_freeradius3-mod-preprocess=y
CONFIG_PACKAGE_freeradius3-mod-radutmp=y
CONFIG_PACKAGE_freeradius3-mod-realm=y
CONFIG_PACKAGE_freeradius3-mod-unix=y
CONFIG_PACKAGE_freeradius3-utils=y
CONFIG_PACKAGE_hostapd-openssl=y
CONFIG_PACKAGE_kmod-qca-mcs=y
CONFIG_PACKAGE_kmod-qca-nss-drv-wifi-meshmgr=y
CONFIG_PACKAGE_libatomic=y
CONFIG_PACKAGE_libattr=y
CONFIG_PACKAGE_libcap=y
CONFIG_PACKAGE_libltdl=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-ucode=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libopenssl-conf=y
CONFIG_PACKAGE_libopenssl-legacy=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libreadline=y
CONFIG_PACKAGE_librrd1=y
CONFIG_PACKAGE_libtalloc=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-filemanager=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-package-manager=y
CONFIG_PACKAGE_luci-app-statistics=y
CONFIG_PACKAGE_luci-app-watchcat=y
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-light=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=y
CONFIG_PACKAGE_rrdtool1=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_ucode-mod-html=y
CONFIG_PACKAGE_ucode-mod-math=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_watchcat=y
CONFIG_PACKAGE_wpa-supplicant=y
CONFIG_PACKAGE_wpad-basic-mbedtls=m
CONFIG_TARGET_OPTIMIZATION="-O2 -pipe -mcpu=cortex-a53+crc+crypto"
CONFIG_TARGET_OPTIONS=y
CONFIG_USE_GC_SECTIONS=y

Terms

  • I am reporting an issue for OpenWrt, not an unsupported fork.
@tardeaux tardeaux added the bug Something isn't working label Jan 1, 2025
@AgustinLorenzo
Copy link

Hi @tardeaux,

Did you see this? openwrt#17644

Regards, Agustín

@tardeaux
Copy link
Author

Hi @tardeaux,

Did you see this? openwrt#17644

Regards, Agustín

This is actually the exact patch that I've been using successfully on my vanilla APs.

I notice that the one included in the nss/ath11k patches folder in the NSS forks is actually the same author and is about a year and a half newer.

I actually have not tried replacing the bundled patch with this older version which is working on my non-nss devices. I'll give it a shot and report back.

@AgustinLorenzo
Copy link

Hi @tardeaux,

Yeah, this patch is very similar to that: https://github.com/qosmio/openwrt-ipq/blob/main-nss/package/kernel/mac80211/patches/nss/ath11k/207-ath11k-Add-support-for-dynamic-vlan.patch to apply OpenWRT you will first have to delete this one.

Perhaps, this is an updated version, although from the dates it does not seem so.

FYI @qosmio

Regards, Agustin

@tardeaux
Copy link
Author

Unfortunately, if the patches are simply replaced, 244-ath11k-dp-tx-perf.patch has multiple patching failures.
There may be others further down the line, but that's where the build fails.
I don't have the knowledge to correct this.

@qosmio
Copy link
Owner

qosmio commented Mar 1, 2025

@tardeaux
Copy link
Author

tardeaux commented Mar 3, 2025

I tried the main-nss branch (as I'm presently running my APs on the main vanilla branch code successfully)
Most of the spam seems to be gone, however there does not seem to be any traffic passed after VLAN assignment.

When I do connect to a VLAN other than 1 (which is configured as untagged traffic currently), I do get a trace on the first attempt only. Subsequent retries do not give any warnings, but also don't pass the DHCP request.


Sun Mar 2 17:54:11 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 RADIUS: VLAN ID 40
Sun Mar 2 17:54:11 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: authenticated
Sun Mar 2 17:54:11 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: associated (aid 1)
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.038063] ------------[ cut here ]------------
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.038097] wlan0.40: Failed check-sdata-in-driver check, flags: 0x1
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.041814] WARNING: CPU: 2 PID: 2299 at ../mac80211-smallbuffers/backports-6.12.6/net/mac80211/driver-ops.c:143 drv_sta_state+0xd8/0x334 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.048102] Modules linked in: ecm(O) pppoe ppp_async nft_fib_inet nf_flow_table_inet l2tp_ppp ath11k_ahb(O) ath11k(O) pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota 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_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) slhc qrtr_smd qrtr qmi_helpers(O) nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c compat(O) qca_nss_wifi_meshmgr(O) qca_nss_bridge_mgr(O) qca_nss_vlan(O) qca_mcs(O) ip_gre gre qca_nss_drv(O) l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel ip_tunnel sha512_generic sha512_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic hmac geniv cmac leds_pca963x leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp(O) qca_ssdk(O) gpio_button_hotplug(O) ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.126373] CPU: 2 PID: 2299 Comm: hostapd Tainted: G W O 6.6.80 #0
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.148611] Hardware name: Linksys MX4300 (DT)
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.155982] pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.160326] pc : drv_sta_state+0xd8/0x334 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.167181] lr : drv_sta_state+0xd8/0x334 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.172390] sp : ffffffc08596b640
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.177333] x29: ffffffc08596b640 x28: ffffff800318cf80 x27: ffffffc08596bdc8
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.180553] x26: ffffff8018b68900 x25: ffffff8018b69d00 x24: ffffff8009bf08c0
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.187672] x23: ffffff801ca2e000 x22: 0000000000000003 x21: 0000000000000004
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.194790] x20: ffffff8009bf08c0 x19: ffffff8018b68900 x18: 0000000000000211
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.201907] x17: 0000000000000000 x16: 0000000000000000 x15: ffffffc080d0c1e0
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.209024] x14: 0000000000000633 x13: 0000000000000211 x12: 00000000ffffffea
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.216144] x11: 00000000ffffefff x10: ffffffc080d641e0 x9 : ffffffc080d0c188
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.223261] x8 : 0000000000017fe8 x7 : c0000000ffffefff x6 : 0000000000000001
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.230379] x5 : ffffff807fbb8850 x4 : 0000000000000000 x3 : 0000000000000027
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.237498] x2 : 0000000000000027 x1 : 0000000000000023 x0 : 0000000000000038
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.244617] Call trace:
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.251725] drv_sta_state+0xd8/0x334 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.253985] ieee80211_find_sta_by_link_addrs+0x6dc/0x7f4 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.258851] sta_info_move_state+0x14/0x20 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.265184] ieee80211_nan_func_terminated+0xd0c/0x482c [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.270135] ieee80211_nan_func_terminated+0x22b4/0x482c [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.276211] ieee80211_channel_switch+0x1e8/0x888 [mac80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.282374] cfg80211_vendor_cmd_reply+0x1e78/0x57b4 [cfg80211]
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.288276] genl_family_rcv_msg_doit+0xb0/0x118
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.293917] genl_rcv_msg+0x1b4/0x24c
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.298775] netlink_rcv_skb+0x60/0x130
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.302334] genl_rcv+0x38/0x50
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.305978] netlink_unicast+0x1e8/0x2d0
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.309105] netlink_sendmsg+0x19c/0x3d0
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.313273] ____sys_sendmsg+0x1cc/0x27c
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.317178] ___sys_sendmsg+0x80/0xc8
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.321084] __sys_sendmsg+0x48/0xa8
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.324643] __arm64_sys_sendmsg+0x24/0x30
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.328290] invoke_syscall.constprop.0+0x5c/0x108
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.332198] do_el0_svc+0x40/0xc8
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.336969] el0_svc+0x28/0x9c
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.340354] el0t_64_sync_handler+0x120/0x12c
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.343308] el0t_64_sync+0x178/0x17c
Sun Mar 2 17:54:11 2025 kern.warn kernel: [ 628.347734] ---[ end trace 0000000000000000 ]---
Sun Mar 2 17:54:11 2025 daemon.notice hostapd: wlan0: AP-STA-CONNECTED d4:3a:2c:62:f1:e7 auth_alg=open
Sun Mar 2 17:54:11 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 RADIUS: starting accounting session 9489D2FE7390CAF7
Sun Mar 2 17:54:11 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 WPA: pairwise key handshake completed (RSN)
Sun Mar 2 17:54:11 2025 daemon.notice hostapd: wlan0: EAPOL-4WAY-HS-COMPLETED d4:3a:2c:62:f1:e7
Sun Mar 2 17:54:29 2025 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED d4:3a:2c:62:f1:e7
Sun Mar 2 17:54:29 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: disassociated
Sun Mar 2 17:54:30 2025 daemon.info hostapd: wlan0: STA d4:3a:2c:62:f1:e7 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

@qosmio
Copy link
Owner

qosmio commented Mar 6, 2025

I've come to realize, my previous patch ath11k_nss: fix null chanctx warning for NSS dynamic VLAN is actually just masking the issue.

Wed Mar  5 22:29:52 2025 kern.debug kernel: [27225.021631] ath11k c000000.wifi: <?> nss vdev set cmd success cmd:14 val:1
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.247716] ath11k c000000.wifi: <?> nss peer_create msg success mac:f2:4c:df:be:22:f2 vdev:0 peer_id:4 hw_ast_idx:763 ast_hash:763
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.247783] ath11k c000000.wifi: <?> nss wifili event received 6 response 0 error 0
Wed Mar  5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 IEEE 802.11: authenticated
Wed Mar  5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 IEEE 802.11: associated (aid 1)
Wed Mar  5 22:29:57 2025 daemon.notice hostapd: nl80211: phy2-ap0[97]: set_sta_vlan(f2:4c:df:be:22:f2, ifname=phy2-ap0[97], vlan_id=0)
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.251143] ath11k c000000.wifi: <?> nss vdev set cmd success cmd:14 val:1
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320779] ath11k c000000.wifi: <?> nss vdev set cmd success cmd:15 val:6
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320814] ath11k c000000.wifi: <?> nss peer id 3 security cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320829] ath11k c000000.wifi: <?> nss peer id 3 auth cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320951] ath11k c000000.wifi: <?> nss wifili event received 21 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320980] ath11k c000000.wifi: <?> nss wifili event received 44 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.320993] ath11k c000000.wifi: <?> nss vdev set cmd success cmd:15 val:6
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.321009] ath11k c000000.wifi: <?> nss peer id 3 security cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.321022] ath11k c000000.wifi: <?> nss peer id 3 auth cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.321125] ath11k c000000.wifi: <?> nss wifili event received 21 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.321142] ath11k c000000.wifi: <?> nss wifili event received 44 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361040] ath11k c000000.wifi: <?> vif type 3, encap type 2
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361067] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361080] ath11k c000000.wifi: nss tx msdu: 28 00000000: f2 4c df be 22 f2 80 69 1a 22 97 78 88 8e 02 03  ..}....i.".x....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361090] ath11k c000000.wifi: nss tx msdu: 28 00000010: 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 01 ce  ._..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361099] ath11k c000000.wifi: nss tx msdu: 28 00000020: e3 73 fb 77 37 25 80 02 51 8c 01 ad d4 e8 8d c6  .s.w7%..Q.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361109] ath11k c000000.wifi: nss tx msdu: 28 00000030: 2b 40 41 d0 d7 e0 98 be 69 58 bc 81 8b 1e b0 00  +@A.....iX......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361118] ath11k c000000.wifi: nss tx msdu: 28 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361127] ath11k c000000.wifi: nss tx msdu: 28 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361136] ath11k c000000.wifi: nss tx msdu: 28 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.361146] ath11k c000000.wifi: nss tx msdu: 28 00000070: 00                                               .
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363489] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363518] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 80 69 1a 22 97 78 f2 4c df be 22 f2 88 8e 02 03  .i.".x..}.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363533] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 75 02 01 0a 00 10 00 00 00 00 00 00 00 01 0e  .u..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363546] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 93 45 a2 8b e2 2b ee ec af a6 ca 9e 90 c0 f2 37  .E...+.........7
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363559] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 32 9b 50 52 fc f0 0a 71 8d 70 0d f8 40 55 9a 00  2.PR...q.p..@U..
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363571] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363584] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b6  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363597] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 26 4c 21 c6 90 7e c1 8d 1a 04 e1 6f fe 77 58 00  &L!..~.....o.wX.
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363610] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 16 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01  .0..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.363622] ath11k c000000.wifi: dp rx msdu from nss: 00000080: 00 00 0f ac 02 0c 00                             .......
Wed Mar  5 22:29:57 2025 daemon.notice hostapd: Assigned VLAN ID 20 from wpa_psk_file to f2:4c:df:be:22:f2
Wed Mar  5 22:29:57 2025 daemon.notice hostapd: nl80211: phy2-ap0[97]: set_sta_vlan(f2:4c:df:be:22:f2, ifname=phy2-ap0-20[98], vlan_id=20)
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366925] ath11k c000000.wifi: <?> vif type 3, encap type 2
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366956] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366969] ath11k c000000.wifi: nss tx msdu: 28 00000000: f2 4c df be 22 f2 80 69 1a 22 97 78 88 8e 02 03  ..}....i.".x....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366979] ath11k c000000.wifi: nss tx msdu: 28 00000010: 00 97 02 13 ca 00 10 00 00 00 00 00 00 00 02 ce  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366988] ath11k c000000.wifi: nss tx msdu: 28 00000020: e3 73 fb 77 37 25 80 02 51 8c 01 ad d4 e8 8d c6  .s.w7%..Q.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.366997] ath11k c000000.wifi: nss tx msdu: 28 00000030: 2b 40 41 d0 d7 e0 98 be 69 58 bc 81 8b 1e b0 00  +@A.....iX......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367007] ath11k c000000.wifi: nss tx msdu: 28 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367017] ath11k c000000.wifi: nss tx msdu: 28 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e6  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367026] ath11k c000000.wifi: nss tx msdu: 28 00000060: 5e 6d 70 46 31 c8 59 db c2 84 d0 27 d1 d8 e3 00  ^mpF1.Y....'....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367036] ath11k c000000.wifi: nss tx msdu: 28 00000070: 38 f8 16 7a fd f4 d1 aa a0 a1 0f 08 a3 e6 de c2  8..z............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367045] ath11k c000000.wifi: nss tx msdu: 28 00000080: 66 49 99 2a 4b 71 79 6c 67 73 d8 ad f9 1c 0d 3f  fI.*Kqylgs.....?
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367054] ath11k c000000.wifi: nss tx msdu: 28 00000090: 30 87 56 c9 ff 4b 34 1e fc a3 c8 ea a3 2f 57 84  0.V..K4....../W.
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.367063] ath11k c000000.wifi: nss tx msdu: 28 000000a0: 7a cb 10 9c 3c bd 85 15 89                       z...<....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369265] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369281] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 80 69 1a 22 97 78 f2 4c df be 22 f2 88 8e 02 03  .i.".x..}.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369292] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 5f 02 03 0a 00 10 00 00 00 00 00 00 00 02 00  ._..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369301] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369311] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369320] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369330] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b5  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369339] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 8c 0a 63 d0 80 a0 d1 e6 ac 3c 3b 00 94 d8 e1 00  ..c......<;.....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.369348] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 00                                               .
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.400943] ath11k c000000.wifi: <?> nss vdev set cmd success cmd:15 val:6
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.400981] ath11k c000000.wifi: <?> nss peer id 4 security cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.400998] ath11k c000000.wifi: <?> nss peer id 4 auth cfg complete
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.401124] ath11k c000000.wifi: <?> nss wifili event received 21 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.401141] ath11k c000000.wifi: <?> nss wifili event received 44 response 0 error 0
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.401248] ------------[ cut here ]------------
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.401282] phy2-ap0-20: Failed check-sdata-in-driver check, flags: 0x1
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.405007] WARNING: CPU: 3 PID: 7095 at ../mac80211-regular/backports-6.12.6/net/mac80211/driver-ops.c:143 drv_sta_state+0xd8/0x34c [mac80211]
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.411587]  nls_utf8
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.432282] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433155] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433183] ath11k c000000.wifi: dp rx msdu from nss: 00000000: ff ff ff ff ff ff f2 4c df be 22 f2 08 00 45 00  ........}.....E.
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433196] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 01 48 07 16 00 00 ff 11 b3 8f 00 00 00 00 ff ff  .H..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433207] ath11k c000000.wifi: dp rx msdu from nss: 00000020: ff ff 00 44 00 43 01 34 28 03 01 01 06 00 98 e8  ...D.C.4(.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433218] ath11k c000000.wifi: dp rx msdu from nss: 00000030: eb be 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433229] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 f2 4c df be 22 f2 00 00 00 00  ........}.......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433240] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433251] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433261] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433272] ath11k c000000.wifi: dp rx msdu from nss: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433283] ath11k c000000.wifi: dp rx msdu from nss: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433293] ath11k c000000.wifi: dp rx msdu from nss: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433304] ath11k c000000.wifi: dp rx msdu from nss: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433315] ath11k c000000.wifi: dp rx msdu from nss: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433326] ath11k c000000.wifi: dp rx msdu from nss: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433336] ath11k c000000.wifi: dp rx msdu from nss: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433352] ath11k c000000.wifi: dp rx msdu from nss: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433363] ath11k c000000.wifi: dp rx msdu from nss: 00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433373] ath11k c000000.wifi: dp rx msdu from nss: 00000110: 00 00 00 00 00 00 63 82 53 63 35 01 01 37 09 01  ......c.Sc5..7..
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433384] ath11k c000000.wifi: dp rx msdu from nss: 00000120: 79 03 06 0f 6c 72 77 fc 39 02 05 dc 3d 07 01 c4  y...lrw.9...=...
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433395] ath11k c000000.wifi: dp rx msdu from nss: 00000130: c1 7d ab c3 e2 33 04 00 76 a7 00 0c 0e 69 50 68  .}...3..v....iPh
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433406] ath11k c000000.wifi: dp rx msdu from nss: 00000140: 6f 6e 65 31 35 50 72 6f 4d 61 78 ff 00 00 00 00  one15ProMax.....
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.433416] ath11k c000000.wifi: dp rx msdu from nss: 00000150: 00 00 00 00 00 00                                ......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.513711] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff f3 8b fb f2 4c df be 22 f2 86 dd 60 00  33......}.....`.
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.513725] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 00 00 20 00 01 fe 80 00 00 00 00 00 00 18 b8  ... ............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.516161] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 97 2c c7 7e 47 85 ff 02 00 00 00 00 00 00 00 00  .,.~G...........
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.533681] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 02 ff f3 8b fb 3a 00 01 00 05 02 00 00 84 00  ......:.........
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.536196] ath11k c000000.wifi: dp rx msdu from nss: 00000040: a8 5a 00 00 00 00 ff 02 00 00 00 00 00 00 00 00  .Z..............
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.546960] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 02 ff f3 8b fb                                ......
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.547487] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.560309] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff 7e 47 85 f2 4c df be 22 f2 86 dd 60 00  33.~G...}.....`.
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.561962] lr : drv_sta_state+0xd8/0x34c [mac80211]
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.634004]  drv_sta_state+0xd8/0x34c [mac80211]
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.635489] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 ff 02 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.642516]  ieee80211_find_sta_by_link_addrs+0x6e0/0x7d4 [mac80211]
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.649626] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 00 00 00 00 fb 3a 00 01 00 05 02 00 00 84 00  ......:.........
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.651197]  sta_info_move_state+0x14/0x20 [mac80211]
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.658230] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 7b b1 00 00 00 00 ff 02 00 00 00 00 00 00 00 00  {...............
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.665338]  ieee80211_nan_func_terminated+0x1288/0x4af0 [mac80211]
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.668641] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 fb                                ......
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.671935]  ieee80211_nan_func_terminated+0x2728/0x4af0 [mac80211]
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.675332] ath11k c000000.wifi: <?>
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.677667]  ieee80211_channel_switch+0x4ac/0x5f8 [mac80211]
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.740954]  __arm64_sys_sendmsg+0x24/0x30
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.740960]  invoke_syscall.constprop.0+0x5c/0x100
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.744857] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff 2e 4f 64 f2 4c df be 22 f2 86 dd 60 00  33..Od..}.....`.
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.748411]  do_el0_svc+0x40/0xc8
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.752071] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 00 00 20 3a ff 00 00 00 00 00 00 00 00 00 00  ... :...........
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.755965]  el0_svc+0x28/0x9c
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.760751] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 ff 02 00 00 00 00 00 00 00 00  ................
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.764122]  el0t_64_sync_handler+0x120/0x12c
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.764134] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 01 ff 2e 4f 64 87 00 54 37 00 00 00 00 fe 80  ....Od..T7......
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.767076]  el0t_64_sync+0x178/0x17c
Wed Mar  5 22:29:57 2025 kern.debug kernel: [27229.767085] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 10 ed 7d c7 86 2e 4f 64 0e 01  ........}...Od..
Wed Mar  5 22:29:57 2025 kern.warn kernel: [27229.771503] ---[ end trace 0000000000000000 ]---
Wed Mar  5 22:29:57 2025 daemon.notice hostapd: phy2-ap0: AP-STA-CONNECTED f2:4c:df:be:22:f2 auth_alg=open
Wed Mar  5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 RADIUS: starting accounting session 21EF72CE1247AD81
Wed Mar  5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 WPA: pairwise key handshake completed (RSN)
Wed Mar  5 22:29:57 2025 daemon.notice hostapd: phy2-ap0: EAPOL-4WAY-HS-COMPLETED f2:4c:df:be:22:f2

As soon as a client associates, all sdata checks start to fail. The ext vdev vlan interface never comes up, which is why you see it always failing at drv_sta_state+0xd8/0x34c. This is a pretty big endeavor, and after working all this week, I'm no where closer to getting this tackled.

I will have to leave it open for now. Hopefully @BrainSlayer has come across the same issue. He was very helpful with WDS issues I had last year.

@BrainSlayer
Copy link

I've come to realize, my previous patch ath11k_nss: fix null chanctx warning for NSS dynamic VLAN is actually just masking the issue.

Wed Mar 5 22:29:52 2025 kern.debug kernel: [27225.021631] ath11k c000000.wifi: nss vdev set cmd success cmd:14 val:1 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.247716] ath11k c000000.wifi: nss peer_create msg success mac:f2:4c:df:be:22:f2 vdev:0 peer_id:4 hw_ast_idx:763 ast_hash:763
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.247783] ath11k c000000.wifi: nss wifili event received 6 response 0 error 0 Wed Mar 5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 IEEE 802.11: authenticated Wed Mar 5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 IEEE 802.11: associated (aid 1) Wed Mar 5 22:29:57 2025 daemon.notice hostapd: nl80211: phy2-ap0[97]: set_sta_vlan(f2:4c:df:be:22:f2, ifname=phy2-ap0[97], vlan_id=0) Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.251143] ath11k c000000.wifi: nss vdev set cmd success cmd:14 val:1
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320779] ath11k c000000.wifi: nss vdev set cmd success cmd:15 val:6 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320814] ath11k c000000.wifi: nss peer id 3 security cfg complete
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320829] ath11k c000000.wifi: nss peer id 3 auth cfg complete Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320951] ath11k c000000.wifi: nss wifili event received 21 response 0 error 0
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320980] ath11k c000000.wifi: nss wifili event received 44 response 0 error 0 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.320993] ath11k c000000.wifi: nss vdev set cmd success cmd:15 val:6
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.321009] ath11k c000000.wifi: nss peer id 3 security cfg complete Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.321022] ath11k c000000.wifi: nss peer id 3 auth cfg complete
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.321125] ath11k c000000.wifi: nss wifili event received 21 response 0 error 0 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.321142] ath11k c000000.wifi: nss wifili event received 44 response 0 error 0
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361040] ath11k c000000.wifi: vif type 3, encap type 2 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361067] ath11k c000000.wifi:
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361080] ath11k c000000.wifi: nss tx msdu: 28 00000000: f2 4c df be 22 f2 80 69 1a 22 97 78 88 8e 02 03 ..}....i.".x....
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361090] ath11k c000000.wifi: nss tx msdu: 28 00000010: 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 01 ce ...............
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361099] ath11k c000000.wifi: nss tx msdu: 28 00000020: e3 73 fb 77 37 25 80 02 51 8c 01 ad d4 e8 8d c6 .s.w7%..Q.......
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361109] ath11k c000000.wifi: nss tx msdu: 28 00000030: 2b 40 41 d0 d7 e0 98 be 69 58 bc 81 8b 1e b0 00 +@A.....iX......
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361118] ath11k c000000.wifi: nss tx msdu: 28 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361127] ath11k c000000.wifi: nss tx msdu: 28 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361136] ath11k c000000.wifi: nss tx msdu: 28 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.361146] ath11k c000000.wifi: nss tx msdu: 28 00000070: 00 .
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363489] ath11k c000000.wifi: Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363518] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 80 69 1a 22 97 78 f2 4c df be 22 f2 88 8e 02 03 .i.".x..}....... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363533] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 75 02 01 0a 00 10 00 00 00 00 00 00 00 01 0e .u.............. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363546] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 93 45 a2 8b e2 2b ee ec af a6 ca 9e 90 c0 f2 37 .E...+.........7 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363559] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 32 9b 50 52 fc f0 0a 71 8d 70 0d f8 40 55 9a 00 2.PR...q.p..@U.. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363571] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363584] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b6 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363597] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 26 4c 21 c6 90 7e c1 8d 1a 04 e1 6f fe 77 58 00 &L!..~.....o.wX. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363610] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 16 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 .0.............. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.363622] ath11k c000000.wifi: dp rx msdu from nss: 00000080: 00 00 0f ac 02 0c 00 ....... Wed Mar 5 22:29:57 2025 daemon.notice hostapd: Assigned VLAN ID 20 from wpa_psk_file to f2:4c:df:be:22:f2 Wed Mar 5 22:29:57 2025 daemon.notice hostapd: nl80211: phy2-ap0[97]: set_sta_vlan(f2:4c:df:be:22:f2, ifname=phy2-ap0-20[98], vlan_id=20) Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366925] ath11k c000000.wifi: vif type 3, encap type 2
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366956] ath11k c000000.wifi: Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366969] ath11k c000000.wifi: nss tx msdu: 28 00000000: f2 4c df be 22 f2 80 69 1a 22 97 78 88 8e 02 03 ..}....i.".x.... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366979] ath11k c000000.wifi: nss tx msdu: 28 00000010: 00 97 02 13 ca 00 10 00 00 00 00 00 00 00 02 ce ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366988] ath11k c000000.wifi: nss tx msdu: 28 00000020: e3 73 fb 77 37 25 80 02 51 8c 01 ad d4 e8 8d c6 .s.w7%..Q....... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.366997] ath11k c000000.wifi: nss tx msdu: 28 00000030: 2b 40 41 d0 d7 e0 98 be 69 58 bc 81 8b 1e b0 00 +@A.....iX...... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367007] ath11k c000000.wifi: nss tx msdu: 28 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367017] ath11k c000000.wifi: nss tx msdu: 28 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e6 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367026] ath11k c000000.wifi: nss tx msdu: 28 00000060: 5e 6d 70 46 31 c8 59 db c2 84 d0 27 d1 d8 e3 00 ^mpF1.Y....'.... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367036] ath11k c000000.wifi: nss tx msdu: 28 00000070: 38 f8 16 7a fd f4 d1 aa a0 a1 0f 08 a3 e6 de c2 8..z............ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367045] ath11k c000000.wifi: nss tx msdu: 28 00000080: 66 49 99 2a 4b 71 79 6c 67 73 d8 ad f9 1c 0d 3f fI.*Kqylgs.....? Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367054] ath11k c000000.wifi: nss tx msdu: 28 00000090: 30 87 56 c9 ff 4b 34 1e fc a3 c8 ea a3 2f 57 84 0.V..K4....../W. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.367063] ath11k c000000.wifi: nss tx msdu: 28 000000a0: 7a cb 10 9c 3c bd 85 15 89 z...<.... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369265] ath11k c000000.wifi:
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369281] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 80 69 1a 22 97 78 f2 4c df be 22 f2 88 8e 02 03 .i.".x..}.......
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369292] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 5f 02 03 0a 00 10 00 00 00 00 00 00 00 02 00 .
..............
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369301] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369311] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369320] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369330] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b5 ................
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369339] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 8c 0a 63 d0 80 a0 d1 e6 ac 3c 3b 00 94 d8 e1 00 ..c......<;.....
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.369348] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 00 .
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.400943] ath11k c000000.wifi: nss vdev set cmd success cmd:15 val:6 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.400981] ath11k c000000.wifi: nss peer id 4 security cfg complete
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.400998] ath11k c000000.wifi: nss peer id 4 auth cfg complete Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.401124] ath11k c000000.wifi: nss wifili event received 21 response 0 error 0
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.401141] ath11k c000000.wifi: nss wifili event received 44 response 0 error 0 Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.401248] ------------[ cut here ]------------ Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.401282] phy2-ap0-20: Failed check-sdata-in-driver check, flags: 0x1 Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.405007] WARNING: CPU: 3 PID: 7095 at ../mac80211-regular/backports-6.12.6/net/mac80211/driver-ops.c:143 drv_sta_state+0xd8/0x34c [mac80211] Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.411587] nls_utf8 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.432282] ath11k c000000.wifi:
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433155] ath11k c000000.wifi: Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433183] ath11k c000000.wifi: dp rx msdu from nss: 00000000: ff ff ff ff ff ff f2 4c df be 22 f2 08 00 45 00 ........}.....E. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433196] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 01 48 07 16 00 00 ff 11 b3 8f 00 00 00 00 ff ff .H.............. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433207] ath11k c000000.wifi: dp rx msdu from nss: 00000020: ff ff 00 44 00 43 01 34 28 03 01 01 06 00 98 e8 ...D.C.4(....... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433218] ath11k c000000.wifi: dp rx msdu from nss: 00000030: eb be 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433229] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 f2 4c df be 22 f2 00 00 00 00 ........}....... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433240] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433251] ath11k c000000.wifi: dp rx msdu from nss: 00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433261] ath11k c000000.wifi: dp rx msdu from nss: 00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433272] ath11k c000000.wifi: dp rx msdu from nss: 00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433283] ath11k c000000.wifi: dp rx msdu from nss: 00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433293] ath11k c000000.wifi: dp rx msdu from nss: 000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433304] ath11k c000000.wifi: dp rx msdu from nss: 000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433315] ath11k c000000.wifi: dp rx msdu from nss: 000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433326] ath11k c000000.wifi: dp rx msdu from nss: 000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433336] ath11k c000000.wifi: dp rx msdu from nss: 000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433352] ath11k c000000.wifi: dp rx msdu from nss: 000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433363] ath11k c000000.wifi: dp rx msdu from nss: 00000100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433373] ath11k c000000.wifi: dp rx msdu from nss: 00000110: 00 00 00 00 00 00 63 82 53 63 35 01 01 37 09 01 ......c.Sc5..7.. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433384] ath11k c000000.wifi: dp rx msdu from nss: 00000120: 79 03 06 0f 6c 72 77 fc 39 02 05 dc 3d 07 01 c4 y...lrw.9...=... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433395] ath11k c000000.wifi: dp rx msdu from nss: 00000130: c1 7d ab c3 e2 33 04 00 76 a7 00 0c 0e 69 50 68 .}...3..v....iPh Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433406] ath11k c000000.wifi: dp rx msdu from nss: 00000140: 6f 6e 65 31 35 50 72 6f 4d 61 78 ff 00 00 00 00 one15ProMax..... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.433416] ath11k c000000.wifi: dp rx msdu from nss: 00000150: 00 00 00 00 00 00 ...... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.513711] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff f3 8b fb f2 4c df be 22 f2 86 dd 60 00 33......}.....`. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.513725] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 00 00 20 00 01 fe 80 00 00 00 00 00 00 18 b8 ... ............ Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.516161] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 97 2c c7 7e 47 85 ff 02 00 00 00 00 00 00 00 00 .,.~G........... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.533681] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 02 ff f3 8b fb 3a 00 01 00 05 02 00 00 84 00 ......:......... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.536196] ath11k c000000.wifi: dp rx msdu from nss: 00000040: a8 5a 00 00 00 00 ff 02 00 00 00 00 00 00 00 00 .Z.............. Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.546960] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 02 ff f3 8b fb ...... Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.547487] ath11k c000000.wifi:
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.560309] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff 7e 47 85 f2 4c df be 22 f2 86 dd 60 00 33.~G...}...... Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.561962] lr : drv_sta_state+0xd8/0x34c [mac80211] Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.634004] drv_sta_state+0xd8/0x34c [mac80211] Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.635489] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 ff 02 00 00 00 00 00 00 00 00 ................ Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.642516] ieee80211_find_sta_by_link_addrs+0x6e0/0x7d4 [mac80211] Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.649626] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 00 00 00 00 fb 3a 00 01 00 05 02 00 00 84 00 ......:......... Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.651197] sta_info_move_state+0x14/0x20 [mac80211] Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.658230] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 7b b1 00 00 00 00 ff 02 00 00 00 00 00 00 00 00 {............... Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.665338] ieee80211_nan_func_terminated+0x1288/0x4af0 [mac80211] Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.668641] ath11k c000000.wifi: dp rx msdu from nss: 00000050: 00 00 00 00 00 fb ...... Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.671935] ieee80211_nan_func_terminated+0x2728/0x4af0 [mac80211] Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.675332] ath11k c000000.wifi: <?> Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.677667] ieee80211_channel_switch+0x4ac/0x5f8 [mac80211] Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.740954] __arm64_sys_sendmsg+0x24/0x30 Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.740960] invoke_syscall.constprop.0+0x5c/0x100 Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.744857] ath11k c000000.wifi: dp rx msdu from nss: 00000000: 33 33 ff 2e 4f 64 f2 4c df be 22 f2 86 dd 60 00 33..Od..}......
Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.748411] do_el0_svc+0x40/0xc8
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.752071] ath11k c000000.wifi: dp rx msdu from nss: 00000010: 00 00 00 20 3a ff 00 00 00 00 00 00 00 00 00 00 ... :...........
Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.755965] el0_svc+0x28/0x9c
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.760751] ath11k c000000.wifi: dp rx msdu from nss: 00000020: 00 00 00 00 00 00 ff 02 00 00 00 00 00 00 00 00 ................
Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.764122] el0t_64_sync_handler+0x120/0x12c
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.764134] ath11k c000000.wifi: dp rx msdu from nss: 00000030: 00 01 ff 2e 4f 64 87 00 54 37 00 00 00 00 fe 80 ....Od..T7......
Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.767076] el0t_64_sync+0x178/0x17c
Wed Mar 5 22:29:57 2025 kern.debug kernel: [27229.767085] ath11k c000000.wifi: dp rx msdu from nss: 00000040: 00 00 00 00 00 00 10 ed 7d c7 86 2e 4f 64 0e 01 ........}...Od..
Wed Mar 5 22:29:57 2025 kern.warn kernel: [27229.771503] ---[ end trace 0000000000000000 ]---
Wed Mar 5 22:29:57 2025 daemon.notice hostapd: phy2-ap0: AP-STA-CONNECTED f2:4c:df:be:22:f2 auth_alg=open
Wed Mar 5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 RADIUS: starting accounting session 21EF72CE1247AD81
Wed Mar 5 22:29:57 2025 daemon.info hostapd: phy2-ap0: STA f2:4c:df:be:22:f2 WPA: pairwise key handshake completed (RSN)
Wed Mar 5 22:29:57 2025 daemon.notice hostapd: phy2-ap0: EAPOL-4WAY-HS-COMPLETED f2:4c:df:be:22:f2
As soon as a client associates, all sdata checks start to fail. The ext vdev vlan interface never comes up, which is why you see it always failing at drv_sta_state+0xd8/0x34c. This is a pretty big endeavor, and after working all this week, I'm no where closer to getting this tackled.

I will have to leave it open for now. Hopefully @BrainSlayer has come across the same issue. He was very helpful with WDS issues I had last year.

not yet. but i see "channel_switch" in the backtrace. dfs related?

@tardeaux
Copy link
Author

tardeaux commented Mar 6, 2025

@qosmio I'm in no particular rush personally since my nodes that use dyn vlan are working fine on the vanilla builds and fine to be less speedy. They cooperate just fine with my wireless NSS bridges that only serve wired clients.

I can add that I got some time to do packet captures while clients were trying to connect and I was able to observe that while the clients were being assigned a VLAN by RADIUS, all dhcp requests were going out on the untagged network and getting replies all the way up to the radio's wlan0(untagged) interface and then disappearing, never making it to the client, even on the untagged vlan1. I'm presently working on restructuring my network move all client traffic off of vlan1 so future troubleshooting isn't impacted by UniFi's weird treatment there. I'll make sure to include updated config files in future posts.

@qosmio
Copy link
Owner

qosmio commented Mar 6, 2025

@BrainSlayer, I thought that it might be that, but I tried on non-DFS and even on 2G. Same sequence of events. NSS is doing something strange as soon as hostapd moves the STA from the main AP to the VLAN.

Decoded stack trace to code + line numbers

====  drv_sta_state+0xd8/0x34c [mac80211] ====
0x4524 is in drv_sta_state (../mac80211-regular/backports-6.12.6/net/mac80211/driver-ops.c:143).
138		if (!ieee80211_hw_check(&local->hw, SUPPORTS_NSS_OFFLOAD) ||
139		    !(old_state == IEEE80211_STA_ASSOC &&
140		      new_state == IEEE80211_STA_AUTHORIZED))
141			sdata = get_bss_sdata(sdata);
142
143-->		if (!check_sdata_in_driver(sdata))
144			return -EIO;
145
146		trace_drv_sta_state(local, sdata, &sta->sta, old_state, new_state);
147		if (local->ops->sta_state) {

====  ieee80211_find_sta_by_link_addrs+0x6e0/0x7d4 [mac80211] ====
0x71d0 is in _sta_info_move_state (../mac80211-regular/backports-6.12.6/net/mac80211/sta_info.c:1333).
1328		 * fail the transition
1329		 */
1330		if (test_sta_flag(sta, WLAN_STA_INSERTED)) {
1331			int err = drv_sta_state(sta->local, sta->sdata, sta,
1332						sta->sta_state, new_state);
1333-->			if (err)
1334				return err;
1335		}
1336
1337		/* reflect the change in all state variables */

====  sta_info_move_state+0x14/0x20 [mac80211] ====
0x8780 is in sta_info_move_state (../mac80211-regular/backports-6.12.6/net/mac80211/sta_info.c:1415).
1410
1411	int sta_info_move_state(struct sta_info *sta,
1412				enum ieee80211_sta_state new_state)
1413	{
1414		return _sta_info_move_state(sta, new_state, true);
1415-->	}
1416
1417	static void __sta_info_destroy_part2(struct sta_info *sta, bool recalc)
1418	{
1419		struct ieee80211_local *local = sta->local;

====  ieee80211_nan_func_terminated+0x1288/0x4af0 [mac80211] ====
0x23ff8 is in sta_apply_auth_flags (../mac80211-regular/backports-6.12.6/net/mac80211/cfg.c:1726).
1721				ret = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED);
1722			else if (test_sta_flag(sta, WLAN_STA_AUTHORIZED))
1723				ret = sta_info_move_state(sta, IEEE80211_STA_ASSOC);
1724			else
1725				ret = 0;
1726-->			if (ret)
1727				return ret;
1728		}
1729
1730		if (mask & BIT(NL80211_STA_FLAG_ASSOCIATED) &&

====  ieee80211_nan_func_terminated+0x2728/0x4af0 [mac80211] ====
0x25498 is in sta_apply_parameters (../mac80211-regular/backports-6.12.6/net/mac80211/cfg.c:1978).
1973		/* auth flags will be set later for TDLS,
1974		 * and for unassociated stations that move to associated */
1975		if (!test_sta_flag(sta, WLAN_STA_TDLS_PEER) &&
1976		    !((mask & BIT(NL80211_STA_FLAG_ASSOCIATED)) &&
1977		      (set & BIT(NL80211_STA_FLAG_ASSOCIATED)))) {
1978-->			ret = sta_apply_auth_flags(local, sta, mask, set);
1979			if (ret)
1980				return ret;
1981		}
1982

====  ieee80211_channel_switch+0x4ac/0x5f8 [mac80211] ====
0x27d0c is in ieee80211_change_station (../mac80211-regular/backports-6.12.6/net/mac80211/cfg.c:2251).
2246				cfg80211_send_layer2_update(sta->sdata->dev,
2247							    sta->sta.addr);
2248			}
2249		}
2250
2251-->		err = sta_apply_parameters(local, sta, params);
2252		if (err)
2253			return err;
2254
2255		if (sdata->vif.type == NL80211_IFTYPE_STATION &&

====  cfg80211_vendor_cmd_reply+0x1e58/0x5a64 [cfg80211] ====
0x1a100 is in nl80211_set_station (../mac80211-regular/backports-6.12.6/net/wireless/rdev-ops.h:223).
218					      struct net_device *dev, u8 *mac,
219					      struct station_parameters *params)
220	{
221		int ret;
222		trace_rdev_change_station(&rdev->wiphy, dev, mac, params);
223-->		ret = rdev->ops->change_station(&rdev->wiphy, dev, mac, params);
224		trace_rdev_return_int(&rdev->wiphy, ret);
225		return ret;
226	}
227

I experimented with removing the OFFLOAD check so that sdata = get_bss_sdata(sdata) gets unconditionally set but that just results encap mismatch errors.

@BrainSlayer
Copy link

from this log the error does no occur in ath11k, but in mac80211 itself. check_sdata_in_driver fails. this technically means the interface cannot be added, because its already there. but i need to read alot of code here before i can tell you more and what the possible fix would be

@BrainSlayer
Copy link

another curious observation is that hostapd calls "set_sta_vlan" twice. which leads to nl80211_set_station called twice

@BrainSlayer
Copy link

okay. most likelly cause is that qca does not even provide patches for mac80211/ath11k with nss acceleration but there are also patches for hostapd with nss. i just found ap vlan related patches in hostapd on the qsdk

@BrainSlayer
Copy link

@qosmio please check this patch i took from qsdk mirror/dd-wrt@d0f7474

@qosmio
Copy link
Owner

qosmio commented Mar 7, 2025

@BrainSlayer, thank you for the tips! I actually have that patch in my testing repo too. Plus a few others I added to see it it helped.

package/network/services/hostapd/patches/h00-003-hostapd-allow-AP_VLAN-creation-for-dynamic-VLAN.patch 

package/network/services/hostapd/patches/r33-0001-QSDK-hostapd-Fix-interface-addition-to-bridge-sequen.patch

package/network/services/hostapd/patches/r34-hostapd-add-ap-vlan-interface-to-bridge-after-interface-up.patch

Sadly same issue.

another curious observation is that hostapd calls "set_sta_vlan" twice. which leads to nl80211_set_station called twice

I might be wrong in my assumption, but isn't that mean to happen? When STA is associated and authorized set to VID 0 (the default behavior). After that, hostapd sends another signal to mac80211 to move the STA to newly created bridge vlan interface?

Are dynamic VLANs working with NSS in dd-wrt?

@BrainSlayer
Copy link

i never played with dynamic vlans nor did i ever implement it. i mean it might work. but i cannot give you a answer here. but moving the sta to a new bridge must be handled by hotplug events. mac80211 is not removing interfaces from bridges and adding it to another one. for wds it works like its authenticated and then the interface is added and the hotplug code has to decide where to add it. i dont think this is much different from ap_vlan since they share most of the code. wds sta is handled like ap_vlan station

@BrainSlayer
Copy link

BrainSlayer commented Mar 8, 2025

from the patches you mentioned i see that hostapd is indeed handling bridge addition and removal. but this is optional and depends from the hostapd config. weired. i handle all in userspace with hotplug

@BrainSlayer
Copy link

from my point of view it seem that things got changed in mac80211 which are not working well anymore with the nss patches here. some workflow. check_sdata_in_driver fails here because a flag is set which shouldnt be there. and we have to find out why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants