Qualcommax NSS Build

Did you select symbol "CONFIG_ATH11K_MEM_PROFILE_512M" in your config?

I have been running @AgustinLorenzo 's build for 10days now.
No reboots/crashes and I have not noticed any hickups so far.
The highest RAM usage I noticed was 76% while running iperf3 tests. After the tests it went down to 70ish%

I have my AX3600 set up as a "dumb AP" for IOT devices and clients on the 2.4Ghz radios and 802.11s mesh on the 5Ghz radio.

Hello, does your build supported ax6? Could you please share your build .config ? Thanks

Currently, I'm stuck at

make[4]: Entering directory '/home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5'
make[5]: 'Kconfig.versions' is up to date.
make[7]: 'Kconfig.versions' is up to date.
make[8]: 'conf' is up to date.
boolean symbol CRYPTO_LIB_ARC4 tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
  CC [M]  /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath/ath10k/mac.o
/home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath/ath10k/mac.c:9466:43: error: initialization of 'int (*)(struct ieee80211_hw *, struct ieee80211_vif *)' from incompatible pointer type 'void (*)(struct ieee80211_hw *, struct ieee80211_vif *)' [-Werror=incompatible-pointer-types]
 9466 |         .update_vif_offload             = ath10k_update_vif_offload,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath/ath10k/mac.c:9466:43: note: (near initialization for 'ath10k_ops.update_vif_offload')
cc1: some warnings being treated as errors
make[11]: *** [scripts/Makefile.build:250: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath/ath10k/mac.o] Error 1
make[10]: *** [scripts/Makefile.build:500: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath/ath10k] Error 2
make[9]: *** [scripts/Makefile.build:500: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless/ath] Error 2
make[8]: *** [scripts/Makefile.build:500: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/drivers/net/wireless] Error 2
make[7]: *** [Makefile:2014: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5] Error 2
make[6]: *** [Makefile.build:13: modules] Error 2
make[5]: *** [Makefile.real:105: modules] Error 2
make[4]: *** [Makefile:121: modules] Error 2
make[4]: Leaving directory '/home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5'
make[3]: *** [Makefile:439: /home/eww/builds/openwrt-ipq/build_dir/target-aarch64_cortex-a53_musl/linux-qualcommax_ipq807x/backports-6.5/.built] Error 2
make[3]: Leaving directory '/home/eww/builds/openwrt-ipq/package/kernel/mac80211'
time: package/kernel/mac80211/regular/compile#4.30#0.68#4.93
    ERROR: package/kernel/mac80211 failed to build (build variant: regular).
make[2]: *** [package/Makefile:128: package/kernel/mac80211/compile] Error 1
make[2]: Leaving directory '/home/eww/builds/openwrt-ipq'
make[1]: *** [package/Makefile:122: /home/eww/builds/openwrt-ipq/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/eww/builds/openwrt-ipq'
make: *** [/home/eww/builds/openwrt-ipq/include/toplevel.mk:232: world] Error 2

Same but unfortunately it can't use luci-app-sqm.

@qosmio I want to try out your build. It's my first time compiling my own openwrt built, but which target system should I use for my AX3600? There's no option for qualcommax/ipq807.

Did you select symbol "CONFIG_ATH11K_MEM_PROFILE_512M" in your config?

And how do you select this? There's no option for it in make menuconfig

also are these safe to ignore?

Sorry, I'm new. I've never done it.

Target System: Qualcomm Atheros 802.11ax WiSoC-s
Subtarget: Qualcomm Atheros IPQ807x
Target profile: Xiaomi AX3600

1 Like

Yes, I have already selected this option.

edit: even use the 256MB profile and then it's the same result.

u can try this build from @dimfish

https://openwrt.admincomps.ru/nss-wifi/20240110/

just finish upgrade my ax6 firmware

1 Like

@dimfish

i found issue

i using nexcloud server with truenas scale, domain ssl cert from cloudflare. server at my home, and my pc also at my home.

with version 20240110/ my nextcloud sync speed from pc to server drop, can't achive 60mbps, avg below 25mbps. i try speed test to same server show normal speed, around 100mbps same like my isp service.

i downgrade to 20231130 version nextcloud sync speed back to normal, speed can achieve 90mbps

*all connection speed test and nextcloud sync using domain not by ip port.


no 1 using 20240110 version (high spike is speed test)
no 2 using 20231130 version

any solution for this issue?

thanks for your effort

btw 20231229/ also show same issue

1 Like

Nss Wifi offload version is for testing and can have problems that's why I've created standalone folder "nss-wifi"

1 Like

Is it possible to disable NSS for just the 2G interface? Its not capable of the kind of speeds that make NSS valuable, and even more now, its kind of being relegated to mostly very low traffic IoT devices that can be served perfectly well with B or G kind of speeds.

Unfortunately, I can't confirm for ax6. I see it's having issues on the ath10k build portion. Most of my changes are to (ath11k/subsys [mac80211]).

However, if it builds on master, it should build on main though. Similar to Xiaomi AX3600, which is also ath10/11k based.

I haven't found a reliable way to achieve this yet. It seems like an all or nothing type of deal vs. per radio.

2 Likes

yes, the code is against the ath11k module ... ath11k_ahb and ath11k_pci are just streaming to ath11k ... possible but would be an additional layer to maintain

@qosmio I am running the ax9000 and the dynalink with my hack of using the qsdk mac80211 with no issues with the ath11k_pci. Wonder if anyone has tried your changes on the ax9000 ? otherwise will try your build over the weekend or maybe next if I have some spare time...

1 Like

Interesting! You're using just the mac80211 based NSS setup, and none of the ath11k offload patches? Are you getting any auth/deauth issues?

Really interested to know, especially for any "tri/quad-band" setups. Too bad there aren't many ipq807x setups that are 1GB with 3 or more wifi 6 radios... I believe AX9000, MX4200v2, and MX5300 are the only ones? It's a shame Asus didn't add the third radio to AX89X. Hoping to eventually integrate the nss mesh packages in the future.

1 Like

I tried to use a WDS connection with a compiled version from your NSS wifi branch that had all the commits from Jan 10, 2024. The WDS client was R7800.
According to the info (added some QSDK NSS patches for dynamic vlan, WDS.) from this commit WDS should be supported.
The drive very quickly ran out of memory.
I didn't try the commits from Jan 11 because the compilation of mac80211 failed.
Information that I saved is this. If it could be useful.

[104592.801312] CPU: 1 PID: 23037 Comm: kworker/u8:3 Not tainted 6.1.71 #0
[104592.813504] Hardware name: QNAP 301w (DT)
[104592.819922] Workqueue: events_unbound call_usermodehelper_exec_work
[104592.824092] Call trace:
[104592.830595]  dump_backtrace.part.0+0xc0/0xd0
[104592.833116]  show_stack+0x18/0x30
[104592.837368]  dump_stack_lvl+0x6c/0x88
[104592.840666]  dump_stack+0x18/0x34
[104592.844398]  dump_header+0x44/0x1a0
[104592.847782]  oom_kill_process+0x270/0x274
[104592.851517]  out_of_memory+0xd0/0x30c
[104592.855422]  __alloc_pages_slowpath.constprop.0+0x69c/0xa20
[104592.859159]  __alloc_pages+0x214/0x260
[104592.864971]  __alloc_pages_bulk+0x168/0x570
[104592.868533]  __vmalloc_node_range+0x1cc/0x704
[104592.873044]  copy_process+0x708/0x13c0
[104592.877297]  kernel_clone+0x4c/0x3bc
[104592.881030]  user_mode_thread+0x5c/0x70
[104592.884850]  call_usermodehelper_exec_work+0x7c/0xb0
[104592.888852]  process_one_work+0x1f0/0x360
[104592.893798]  worker_thread+0x70/0x430
[104592.897784]  kthread+0x108/0x114
[104592.901516]  ret_from_fork+0x10/0x20
[104592.905110] Mem-Info:
[104592.908578] active_anon:3697 inactive_anon:1296 isolated_anon:0
[104592.908578]  active_file:198 inactive_file:0 isolated_file:0
[104592.908578]  unevictable:0 dirty:4 writeback:0
[104592.908578]  slab_reclaimable:2709 slab_unreclaimable:85221
[104592.908578]  mapped:67 shmem:3655 pagetables:243
[104592.908578]  sec_pagetables:0 bounce:0
[104592.908578]  kernel_misc_reclaimable:0
[104592.908578]  free:12761 free_pcp:1182 free_cma:0
[104592.927413] Node 0 active_anon:14788kB inactive_anon:5184kB active_file:1712kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:416kB dirty:16kB writeback:0kB shmem:14620kB writeback_tmp:0kB kernel_stack:2528kB pagetables:972kB sec_pagetables:0kB all_unreclaimable? no
[104592.953848] DMA free:112980kB boost:0kB min:16384kB low:20480kB high:24576kB reserved_highatomic:0KB active_anon:14788kB inactive_anon:5184kB active_file:2560kB inactive_file:0kB unevictable:0kB writepending:16kB present:1048576kB managed:888336kB mlocked:0kB bounce:0kB free_pcp:4076kB local_pcp:1152kB free_cma:0kB
[104592.981917] lowmem_reserve[]: 0 0 0 0
[104593.004155] DMA: 4108*4kB (UME) 2543*8kB (UE) 1590*16kB (UME) 833*32kB (UME) 297*64kB (UME) 14*128kB (UM) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 109672kB
[104593.008055] 4796 total pagecache pages
[104593.022323] 0 pages in swap cache
[104593.025871] Free swap  = 0kB
[104593.029313] Total swap = 0kB
[104593.032356] 262144 pages RAM
[104593.035286] 0 pages HighMem/MovableOnly
[104593.038250] 40060 pages reserved
[104593.042285] Tasks state (memory values in pages):
[104593.045449] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[104593.050165] [   1029]    81  1029      379      116    36864        0             0 ubusd
[104593.058752] [   1030]     0  1030      227        9    32768        0             0 askfirst
[104593.067096] [   1072]     0  1072      266       16    28672        0             0 urngd
[104593.075704] [   1946]     0  1946      275       15    28672        0             0 dropbear
[104593.083849] [   2126]     0  2126      693      289    32768        0             0 netifd
[104593.092642] [   2373]     0  2373      439      156    32768        0             0 odhcpd
[104593.100746] [   2432]     0  2432      333       12    28672        0             0 crond
[104593.108939] [   2549]     0  2549      465       26    32768        0             0 dbus-daemon
[104593.117357] [   2760] 65534  2760      598      202    32768        0             0 avahi-daemon
[104593.126209] [   4674]     0  4674      707       29    36864        0             0 ntpd
[104593.134973] [   4701]   123  4701      332        9    32768        0             0 ntpd
[104593.143170] [   4816]     0  4816      269       16    32768        0             0 odhcp6c
[104593.151287] [   4819]     0  4819      332        9    32768        0             0 udhcpc
[104593.160055] [   6854]     0  6854      461      133    28672        0             0 dynamic_dns_upd
[104593.168004] [  20520]     0 20520     1226      162    36864        0             0 collectd
[104593.177248] [  22391]     0 22391      242       90    32768        0             0 wsdd2
[104593.185662] [   7491]     0  7491      529      173    36864        0             0 banip-service.s
[104593.193828] [   7492]     0  7492      531      173    36864        0             0 banip-service.s
[104593.203138] [   7493]     0  7493      439      113    32768        0             0 logread
[104593.212245] [  22702]     0 22702      404       23    32768        0             0 ksmbd.mountd
[104593.220639] [  22710]     0 22710      412       14    32768        0             0 ksmbd.mountd
[104593.229438] [  23250]     0 23250      333       10    32768        0             0 sleep
[104593.238279] [  23788]     0 23788      953      132    40960        0             0 rpcd
[104593.246424] [  23858]   514 23858      990      158    36864        0             0 logd
[104593.254656] [  24519]     0 24519      529      424    32768        0             0 mac80211.sh
[104593.262817] [  24520]     0 24520      529      422    28672        0             0 mac80211.sh
[104593.271672] [  24548]     0 24548      273        1    28672        0             0 ip
[104593.280436] [  24547]     0 24547      273      208    32768        0             0 ip
[104593.288170] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=banip-service.s,pid=7492,uid=0
[104593.296173] Out of memory: Killed process 7492 (banip-service.s) total-vm:2124kB, anon-rss:692kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:36kB oom_score_adj:0
[104593.328478] br-lan: port 6(phy0-ap0) entered disabled state
[104593.355493] br-lan: port 5(phy1-ap0) entered disabled state
[104593.357606] device phy0-ap0 left promiscuous mode
[104593.360337] br-lan: port 6(phy0-ap0) entered disabled state
[104593.396752] device phy1-ap0 left promiscuous mode
[104593.396797] br-lan: port 5(phy1-ap0) entered disabled state
[104594.699781] br-lan: port 5(phy0-ap0) entered blocking state
[104594.699826] br-lan: port 5(phy0-ap0) entered disabled state
[104594.704997] device phy0-ap0 entered promiscuous mode
[104594.710457] br-lan: port 5(phy0-ap0) entered blocking state
[104594.715116] br-lan: port 5(phy0-ap0) entered forwarding state
[104594.763042] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[104594.850276] br-lan: port 6(phy1-ap0) entered blocking state
[104594.850316] br-lan: port 6(phy1-ap0) entered disabled state
[104594.855659] device phy1-ap0 entered promiscuous mode
[104594.860931] br-lan: port 6(phy1-ap0) entered blocking state
[104594.865609] br-lan: port 6(phy1-ap0) entered forwarding state
[104594.897602] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[104596.689692] net_ratelimit: 82 callbacks suppressed
[104596.689710] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.693667] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104596.704473] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.709407] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104596.715025] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.725268] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104596.731547] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.742677] device phy1-ap0.sta1 entered promiscuous mode
[104596.747881] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104596.758711] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104596.763759] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.774304] br-lan: port 7(phy1-ap0.sta1) entered forwarding state
[104596.775548] device phy1-ap0.sta1 left promiscuous mode
[104596.780779] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104596.792184] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104596.797005] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104596.818973] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104596.844455] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104596.844502] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104596.850121] device phy1-ap0.sta1 entered promiscuous mode
[104596.856107] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104596.861026] br-lan: port 7(phy1-ap0.sta1) entered forwarding state
[104597.411584] ath11k_warn: 56804 callbacks suppressed
[104597.411605] ath11k c000000.wifi: failed to transmit frame 2
[104597.415658] ath11k c000000.wifi: failed to transmit frame 2
[104597.421311] ath11k c000000.wifi: failed to transmit frame 2
[104597.426938] ath11k c000000.wifi: failed to transmit frame 2
[104597.432604] ath11k c000000.wifi: failed to transmit frame 2
[104597.438217] ath11k c000000.wifi: failed to transmit frame 2
[104597.443869] ath11k c000000.wifi: failed to transmit frame 2
[104597.449558] ath11k c000000.wifi: failed to transmit frame 2
[104597.455145] ath11k c000000.wifi: failed to transmit frame 2
[104597.460788] ath11k c000000.wifi: failed to transmit frame 2
[104597.948196] hostapd invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[104597.948257] CPU: 0 PID: 24591 Comm: hostapd Not tainted 6.1.71 #0
[104597.957805] Hardware name: QNAP 301w (DT)
[104597.963871] Call trace:
[104597.967946]  dump_backtrace.part.0+0xc0/0xd0
[104597.970641]  show_stack+0x18/0x30
[104597.974892]  dump_stack_lvl+0x6c/0x88
[104597.978191]  dump_stack+0x18/0x34
[104597.981924]  dump_header+0x44/0x1a0
[104597.985311]  oom_kill_process+0x270/0x274
[104597.989042]  out_of_memory+0xd0/0x30c
[104597.992948]  __alloc_pages_slowpath.constprop.0+0x69c/0xa20
[104597.996686]  __alloc_pages+0x214/0x260
[104598.002497]  __folio_alloc+0x14/0x20
[104598.006055]  __filemap_get_folio+0x160/0x394
[104598.009877]  filemap_fault+0x134/0x7ac
[104598.014215]  __do_fault+0x3c/0x10c
[104598.017860]  __handle_mm_fault+0x538/0xa1c
[104598.021335]  handle_mm_fault+0xd8/0x260
[104598.025501]  do_page_fault+0x13c/0x310
[104598.029667]  do_translation_fault+0x88/0x94
[104598.033228]  do_mem_abort+0x44/0x94
[104598.037740]  el0_ia+0x4c/0xc0
[104598.041298]  el0t_64_sync_handler+0xc4/0x120
[104598.044164]  el0t_64_sync+0x174/0x178
[104598.048847] Mem-Info:
[104598.052279] active_anon:1288 inactive_anon:4212 isolated_anon:0
[104598.052279]  active_file:198 inactive_file:32 isolated_file:0
[104598.052279]  unevictable:0 dirty:4 writeback:0
[104598.052279]  slab_reclaimable:2700 slab_unreclaimable:88252
[104598.052279]  mapped:75 shmem:3664 pagetables:242
[104598.052279]  sec_pagetables:0 bounce:0
[104598.052279]  kernel_misc_reclaimable:0
[104598.052279]  free:9983 free_pcp:350 free_cma:0
[104598.071294] Node 0 active_anon:5152kB inactive_anon:16848kB active_file:0kB inactive_file:928kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:296kB dirty:16kB writeback:0kB shmem:14656kB writeback_tmp:0kB kernel_stack:2544kB pagetables:968kB sec_pagetables:0kB all_unreclaimable? no
[104598.097576] DMA free:47220kB boost:0kB min:16384kB low:20480kB high:24576kB reserved_highatomic:0KB active_anon:5152kB inactive_anon:16848kB active_file:0kB inactive_file:1132kB unevictable:0kB writepending:16kB present:1048576kB managed:888336kB mlocked:0kB bounce:0kB free_pcp:4696kB local_pcp:228kB free_cma:0kB
[104598.125259] lowmem_reserve[]: 0 0 0 0
[104598.147451] DMA: 737*4kB (U) 1623*8kB (U) 1882*16kB (U) 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 46044kB
[104598.151300] 3878 total pagecache pages
[104598.163059] 0 pages in swap cache
[104598.166774] Free swap  = 0kB
[104598.170218] Total swap = 0kB
[104598.173252] 262144 pages RAM
[104598.176273] 0 pages HighMem/MovableOnly
[104598.179159] 40060 pages reserved
[104598.183247] Tasks state (memory values in pages):
[104598.186367] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[104598.191081] [   1029]    81  1029      380       47    36864        0             0 ubusd
[104598.199685] [   1030]     0  1030      227        9    32768        0             0 askfirst
[104598.208019] [   1072]     0  1072      266       16    28672        0             0 urngd
[104598.216692] [   1946]     0  1946      275       15    28672        0             0 dropbear
[104598.224779] [   2126]     0  2126      693      109    32768        0             0 netifd
[104598.233436] [   2373]     0  2373      439       38    32768        0             0 odhcpd
[104598.241497] [   2432]     0  2432      333       12    28672        0             0 crond
[104598.249848] [   2549]     0  2549      465       26    32768        0             0 dbus-daemon
[104598.258238] [   2760] 65534  2760      598       80    32768        0             0 avahi-daemon
[104598.267228] [   4674]     0  4674      707       29    36864        0             0 ntpd
[104598.275908] [   4701]   123  4701      332        9    32768        0             0 ntpd
[104598.284108] [   4816]     0  4816      269       16    32768        0             0 odhcp6c
[104598.292216] [   4819]     0  4819      332        9    32768        0             0 udhcpc
[104598.300721] [   6854]     0  6854      461      133    28672        0             0 dynamic_dns_upd
[104598.308787] [  20520]     0 20520     1226      162    36864        0             0 collectd
[104598.318260] [  22391]     0 22391      241       19    32768        0             0 wsdd2
[104598.327228] [   7491]     0  7491      529      173    36864        0             0 banip-service.s
[104598.335356] [   7493]     0  7493      439       35    32768        0             0 logread
[104598.344825] [  22702]     0 22702      404       23    32768        0             0 ksmbd.mountd
[104598.353102] [  22710]     0 22710      447       14    32768        0             0 ksmbd.mountd
[104598.361365] [  23250]     0 23250      333       10    32768        0             0 sleep
[104598.370644] [  23788]     0 23788      953      132    40960        0             0 rpcd
[104598.378493] [  23858]   514 23858      990       89    36864        0             0 logd
[104598.386627] [  24588]     0 24588      707       24    40960        0             0 wpa_supplicant
[104598.395003] [  24589]     0 24589      707       24    40960        0             0 hostapd
[104598.403729] [  24591]   101 24591     2602      312    53248        0             0 hostapd
[104598.412326] [  24590]   101 24590     2457      182    49152        0             0 wpa_supplicant
[104598.420770] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=hostapd,pid=24591,uid=101
[104598.429659] Out of memory: Killed process 24591 (hostapd) total-vm:10408kB, anon-rss:1248kB, file-rss:0kB, shmem-rss:0kB, UID:101 pgtables:52kB oom_score_adj:0
[104598.615400] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104598.655464] device phy1-ap0.sta1 left promiscuous mode
[104598.655511] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104598.914845] br-lan: port 5(phy0-ap0) entered disabled state
[104598.944115] br-lan: port 6(phy1-ap0) entered disabled state
[104598.944564] device phy0-ap0 left promiscuous mode
[104598.948983] br-lan: port 5(phy0-ap0) entered disabled state
[104598.973907] device phy1-ap0 left promiscuous mode
[104598.973955] br-lan: port 6(phy1-ap0) entered disabled state
[104600.033269] br-lan: port 5(phy1-ap0) entered blocking state
[104600.033313] br-lan: port 5(phy1-ap0) entered disabled state
[104600.040204] device phy1-ap0 entered promiscuous mode
[104600.044246] br-lan: port 5(phy1-ap0) entered blocking state
[104600.048625] br-lan: port 5(phy1-ap0) entered forwarding state
[104600.054720] br-lan: port 5(phy1-ap0) entered disabled state
[104600.094680] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[104600.094901] br-lan: port 5(phy1-ap0) entered blocking state
[104600.100512] br-lan: port 5(phy1-ap0) entered forwarding state
[104600.250911] br-lan: port 6(phy0-ap0) entered blocking state
[104600.250950] br-lan: port 6(phy0-ap0) entered disabled state
[104600.256395] device phy0-ap0 entered promiscuous mode
[104600.261547] br-lan: port 6(phy0-ap0) entered blocking state
[104600.266254] br-lan: port 6(phy0-ap0) entered forwarding state
[104600.312663] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[104601.693227] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104601.693273] br-lan: port 7(phy1-ap0.sta1) entered disabled state
[104601.698399] net_ratelimit: 49171 callbacks suppressed
[104601.698415] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104601.709843] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104601.712039] device phy1-ap0.sta1 entered promiscuous mode
[104601.720672] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104601.731127] br-lan: port 7(phy1-ap0.sta1) entered blocking state
[104601.736352] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104601.746595] br-lan: port 7(phy1-ap0.sta1) entered forwarding state
[104601.752825] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104601.769308] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104601.780340] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104601.790639] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104601.801089] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:4, vlan:0)
[104601.811590] br-lan: received packet on phy1-ap0 with own address as source address (addr:00:, vlan:0)
[104602.416131] ath11k_warn: 72400 callbacks suppressed
[104602.416154] ath11k c000000.wifi: failed to transmit frame 2
[104602.420247] ath11k c000000.wifi: failed to transmit frame 2
[104602.425905] ath11k c000000.wifi: failed to transmit frame 2
[104602.431625] ath11k c000000.wifi: failed to transmit frame 2
[104602.437199] ath11k c000000.wifi: failed to transmit frame 2
[104602.442832] ath11k c000000.wifi: failed to transmit frame 2
[104602.448597] ath11k c000000.wifi: failed to transmit frame 2
[104602.454079] ath11k c000000.wifi: failed to transmit frame 2
[104602.459779] ath11k c000000.wifi: failed to transmit frame 2
[104602.465469] ath11k c000000.wifi: failed to transmit frame 2
[104603.828042] netifd invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[104603.828105] CPU: 3 PID: 2126 Comm: netifd Not tainted 6.1.71 #0
[104603.837649] Hardware name: QNAP 301w (DT)
[104603.843632] Call trace:
[104603.847537]  dump_backtrace.part.0+0xc0/0xd0
[104603.850231]  show_stack+0x18/0x30
[104603.854482]  dump_stack_lvl+0x6c/0x88
[104603.857790]  dump_stack+0x18/0x34
[104603.861512]  dump_header+0x44/0x1a0
[104603.864897]  oom_kill_process+0x270/0x274
[104603.868631]  out_of_memory+0xd0/0x30c
[104603.872538]  __alloc_pages_slowpath.constprop.0+0x69c/0xa20
[104603.876274]  __alloc_pages+0x214/0x260
[104603.882093]  __folio_alloc+0x14/0x20
[104603.885645]  __filemap_get_folio+0x160/0x394
[104603.889467]  filemap_fault+0x134/0x7ac
[104603.893812]  __do_fault+0x3c/0x10c
[104603.897456]  __handle_mm_fault+0x538/0xa1c
[104603.900923]  handle_mm_fault+0xd8/0x260
[104603.905090]  do_page_fault+0x13c/0x310
[104603.909255]  do_translation_fault+0x88/0x94
[104603.912816]  do_mem_abort+0x44/0x94
[104603.917329]  el0_ia+0x4c/0xc0
[104603.920887]  el0t_64_sync_handler+0xc4/0x120
[104603.923753]  el0t_64_sync+0x174/0x178
[104603.948676] Mem-Info:
[104603.948715] active_anon:7183 inactive_anon:3930 isolated_anon:0
[104603.948715]  active_file:125 inactive_file:52 isolated_file:0
[104603.948715]  unevictable:0 dirty:0 writeback:0
[104603.948715]  slab_reclaimable:2694 slab_unreclaimable:84445
[104603.948715]  mapped:99 shmem:3667 pagetables:280
[104603.948715]  sec_pagetables:0 bounce:0
[104603.948715]  kernel_misc_reclaimable:0
[104603.948715]  free:8546 free_pcp:343 free_cma:0
[104603.966645] Node 0 active_anon:15720kB inactive_anon:28732kB active_file:164kB inactive_file:544kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:396kB dirty:0kB writeback:0kB shmem:14668kB writeback_tmp:0kB kernel_stack:2592kB pagetables:1120kB sec_pagetables:0kB all_unreclaimable? no
[104603.993266] DMA free:35940kB boost:0kB min:16384kB low:20480kB high:24576kB reserved_highatomic:0KB active_anon:35824kB inactive_anon:8628kB active_file:0kB inactive_file:1116kB unevictable:0kB writepending:0kB present:1048576kB managed:888336kB mlocked:0kB bounce:0kB free_pcp:1128kB local_pcp:0kB free_cma:0kB
[104604.020918] lowmem_reserve[]: 0 0 0 0
[104604.043034] DMA: 1270*4kB (U) 1181*8kB (U) 1205*16kB (U) 30*32kB (UE) 5*64kB (U) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 35088kB
[104604.046603] 3804 total pagecache pages
[104604.059396] 0 pages in swap cache
[104604.063171] Free swap  = 0kB
[104604.066560] Total swap = 0kB
[104604.069561] 262144 pages RAM
[104604.072519] 0 pages HighMem/MovableOnly
[104604.075472] 40060 pages reserved
[104604.079461] Tasks state (memory values in pages):
[104604.082675] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
[104604.087422] [   1029]    81  1029      380       47    36864        0             0 ubusd
[104604.096029] [   1030]     0  1030      227        9    32768        0             0 askfirst
[104604.104415] [   1072]     0  1072      266       16    28672        0             0 urngd
[104604.112905] [   1946]     0  1946      275       15    28672        0             0 dropbear
[104604.121154] [   2126]     0  2126      693      109    32768        0             0 netifd
[104604.129650] [   2373]     0  2373      439       38    32768        0             0 odhcpd
[104604.137838] [   2432]     0  2432      333       12    28672        0             0 crond
[104604.146140] [   2549]     0  2549      465       26    32768        0             0 dbus-daemon
[104604.154593] [   2760] 65534  2760      600       82    32768        0             0 avahi-daemon
[104604.163428] [   4674]     0  4674      707       29    36864        0             0 ntpd
[104604.172267] [   4701]   123  4701      332        9    32768        0             0 ntpd
[104604.180372] [   4816]     0  4816      269       16    32768        0             0 odhcp6c
[104604.188503] [   4819]     0  4819      332        9    32768        0             0 udhcpc
[104604.197082] [   6854]     0  6854      461      133    28672        0             0 dynamic_dns_upd
[104604.205155] [  20520]     0 20520     1226      162    36864        0             0 collectd
[104604.214493] [  22391]     0 22391      239       18    32768        0             0 wsdd2
[104604.223017] [   7491]     0  7491      529      173    36864        0             0 banip-service.s
[104604.231085] [   7493]     0  7493      439       35    32768        0             0 logread
[104604.240402] [  22702]     0 22702      404       23    32768        0             0 ksmbd.mountd
[104604.248809] [  22710]     0 22710      447       14    32768        0             0 ksmbd.mountd
[104604.257618] [  23250]     0 23250      333       10    32768        0             0 sleep
[104604.266428] [  23788]     0 23788      953      132    40960        0             0 rpcd
[104604.274618] [  23858]   514 23858      990       97    36864        0             0 logd
[104604.282822] [  24588]     0 24588      707       24    40960        0             0 wpa_supplicant
[104604.290986] [  24590]   101 24590     2461      216    49152        0             0 wpa_supplicant
[104604.299861] [  24874]     0 24874     1921      206    49152        0             0 uhttpd
[104604.308918] [  24875]     0 24875      707       29    36864        0             0 dnsmasq
[104604.317178] [  24880]   453 24880     5725     5364    73728        0             0 dnsmasq
[104604.325941] [  24946]     0 24946      707       25    36864        0             0 hostapd
[104604.334260] [  24947]   101 24947     2575      310    53248        0             0 hostapd
[104604.342767] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/,task=dnsmasq,pid=24880,uid=453
[104604.351114] Out of memory: Killed process 24880 (dnsmasq) total-vm:22900kB, anon-rss:21452kB, file-rss:0kB, shmem-rss:4kB, UID:453 pgtables:72kB oom_score_adj:0
[104606.787171] net_ratelimit: 56125 callbacks suppressed
[104606.787186] br-lan: received packet on phy1-ap0 with own address as source address (addr:24:, vlan:0)
[104606.791419] br-lan: received packet on phy1-ap0 with own address as source address (addr:24:, vlan:0)
[104607.416525] ath11k_warn: 327017 callbacks suppressed
[104607.416548] ath11k c000000.wifi: failed to transmit frame 2
[104607.421471] ath11k c000000.wifi: failed to transmit frame 2
[104607.426354] ath11k c000000.wifi: failed to transmit frame 2
[104607.431960] ath11k c000000.wifi: failed to transmit frame 2
[104607.431960] ath11k c000000.wifi: failed to transmit frame 2
[104607.443244] ath11k c000000.wifi: failed to transmit frame 2
[104607.443245] ath11k c000000.wifi: failed to transmit frame 2
[104607.454527] ath11k c000000.wifi: failed to transmit frame 2
[104607.454527] ath11k c000000.wifi: failed to transmit frame 2
[104607.465811] ath11k c000000.wifi: failed to transmit frame 2
[104612.417690] ath11k_warn: 332432 callbacks suppressed
[104612.417716] ath11k c000000.wifi: failed to transmit frame 2

Otherwise it was running stable for 2 days with my usual home setup with minimum 10-15% available memory.
And few cosmetic issues - RX Rate is always zero.
image

WLAN LED doesn't work during network activity (Transmit/Receive) but otherwise work with Link On. Probably because the NSS wifi uses different mechanism,

Wax630 has 3 radios too :slightly_smiling_face: I have one.

Btw. I had one patch that solved the snr issue on each radio. But don’t remember the exact one. It was 97 compared to 110. No way 110 is correct for my ap’s.

I’m going to try to figure out what path and see if we can use it on default build.

2 Likes

Still crashes with oom and memleak is present on my ax3600, it is much better than previous builds tough, lasts 2-3 hours instead of 20-30 mins. Unfortunately unusable yet :frowning: @qosmio

no issues whatsoever - see my repo https://github.com/rmandrad/openwrt/tree/backports-qsdk-6.1.31

what I did was to retrofit the backports that are on AU_LINUX_QSDK_NHSS.QSDK.12.4.5.R2_TARGET_ALL.12.4.502.099.019

as a temporary measure also to help you ... the qsdk backports are on this link https://github.com/rmandrad/openwrt/blob/backports-qsdk-6.1.31/backports-6.1.31.tar.xz it has all of the qsdk patches already applied

1 Like

hi found error during build the firmware, always stuck with firewall4
build from fresh

make[3]: Entering directory '/home/william/ax6/openwrt/package/network/config/firewall4'
touch /home/william/ax6/openwrt/build_dir/target-aarch64_cortex-a53_musl/firewall4-2023-11-03-698a5335/.prepared_6f141276034165ac78eb29232d2525d6_6664517399ebbbc92a37c5bb081b5c53_check
. /home/william/ax6/openwrt/include/shell.sh; xzcat /home/william/ax6/openwrt/dl/firewall4-2023-11-03-698a5335.tar.xz | tar -C /home/william/ax6/openwrt/build_dir/target-aarch64_cortex-a53_musl/firewall4-2023-11-03-698a5335/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/william/ax6/openwrt/build_dir/target-aarch64_cortex-a53_musl/firewall4-2023-11-03-698a5335

Applying /home/william/ax6/openwrt/package/network/config/firewall4/patches/001-firewall4-Add-fullcone-support.patch using plaintext: 
patching file root/etc/config/firewall
patching file root/usr/share/firewall4/templates/ruleset.uc
Hunk #1 succeeded at 327 with fuzz 2 (offset 11 lines).
Hunk #2 succeeded at 343 with fuzz 2 (offset 11 lines).
patching file root/usr/share/firewall4/templates/zone-fullcone.uc
patching file root/usr/share/ucode/fw4.uc
Hunk #2 succeeded at 491 (offset 61 lines).
Hunk #3 succeeded at 853 (offset 54 lines).
Hunk #4 succeeded at 1046 (offset 54 lines).
Hunk #5 succeeded at 1500 (offset 54 lines).
Hunk #6 succeeded at 1972 (offset 58 lines).
Hunk #7 succeeded at 2008 (offset 58 lines).
Hunk #8 succeeded at 2238 (offset 58 lines).

Applying /home/william/ax6/openwrt/package/network/config/firewall4/patches/002-firewall4-Fix-MSS-clamping-with-PBR.patch using plaintext: 
patching file root/usr/share/firewall4/templates/ruleset.uc
Hunk #1 succeeded at 443 with fuzz 2 (offset 26 lines).
Hunk #2 FAILED at 451.
1 out of 2 hunks FAILED -- saving rejects to file root/usr/share/firewall4/templates/ruleset.uc.rej
patching file root/usr/share/firewall4/templates/zone-mssfix.uc
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file root/usr/share/firewall4/templates/zone-mssfix.uc.rej
Patch failed!  Please fix /home/william/ax6/openwrt/package/network/config/firewall4/patches/002-firewall4-Fix-MSS-clamping-with-PBR.patch!
make[3]: *** [Makefile:57: /home/william/ax6/openwrt/build_dir/target-aarch64_cortex-a53_musl/firewall4-2023-11-03-698a5335/.prepared_6f141276034165ac78eb29232d2525d6_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/home/william/ax6/openwrt/package/network/config/firewall4'
time: package/network/config/firewall4/compile#0.11#0.04#0.17
    ERROR: package/network/config/firewall4 failed to build.
make[2]: *** [package/Makefile:128: package/network/config/firewall4/compile] Error 1
make[2]: Leaving directory '/home/william/ax6/openwrt'
make[1]: *** [package/Makefile:122: /home/william/ax6/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/william/ax6/openwrt'
make: *** [/home/william/ax6/openwrt/include/toplevel.mk:232: world] Error 2

share my config
config file

thanks

Still getting tons of these, but otherwise its working really nice, fast, and stable (uptime 1d15h). Only happens on the 2G interface which is all IoT.

Fri Jan 12 09:08:54 2024 daemon.info hostapd: phy1-ap0: STA 20:f4:1b:be:9f:6b IEEE 802.11: disassociated due to inactivity
Fri Jan 12 09:08:55 2024 daemon.info hostapd: phy1-ap0: STA 20:f4:1b:be:9f:6b IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

I've tried every permutation inactivity polling and disassociate on low ack to try to get around this, and nothing seems to have any impact on the behavior or frequency of these disassoc's. Its as if the settings were hard coded and the UI switches don't actually do anything.

I need something in short order to address that, anybody know of a USB wifi adapter that would work well and stable? Or do I need to set up a second AP just to handle the 2G network?