Qualcommax NSS Build

yeah 5.15 suffers the same fate but for me seems to die after 4 days, where 6.1 is just random

The only change to affinity\interrupts that i did, is to use the script shared by @sppmaster in this post:

Any way, here is a full screenshot from cat /proc/interrupts:

Thanks. But is there any big difference between the AX3600 and example wax620/wax630 other than amount of memory? Is it the AX3600 that have that extra pcie card?

On another post from github I believe we found out that AX3600 did not like WLAN.HK.2.6 or 2.7 but the wax620 and 630 has no issues.

But I really don't know what the issue could be. I'm just curious and hoped that other router/APs was stable too.

Edit: Ah... AX3600 is Qualcomm IPQ8071A and not the same as the wax-family. Hmm...

WLAN Hardware:
    Qualcomm QCA9889, Qualcomm QCN5024, Qualcomm QCN5054

Can't install lcm-app-sqm with @AgustinLorenzo build on my AX3600?

Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-sched-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-sched-cake
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-sched-cake found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-ifb
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-reject
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-ipt
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-log
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-ipt-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nfnetlink
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-reject6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-conntrack
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-conntrack6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-nat
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nf-log6
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-crypto-hash
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-crypto-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-lib-crc32c
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nft-core
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-nft-compat
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-nft-compat found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc) for kmod-ipt-ipopt
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-ipt-ipopt found, but incompatible with the architectures configured
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-i18n-sqm-es:
 * 	kernel (= 6.1.71-1-8251895876d8972111de2acf07a77dbc)
 * opkg_install_cmd: Cannot install package luci-i18n-sqm-es.

One question: some of you have tried Amazon Luna? I'm having problems with the official snapshot and the wifi, and I'm thinking about testing one NSS version.

More info in this post: Amazon Luna unplayable

Thanks!

I've got a Dynalink WRX36 I've run the command on - I've included the whole output because the sysctl command failed and it's relatively short. Didn't manage to get the full NSS config since it failed out of memory and that right after rebooting.

Is this helpful or is there something else I can run to fix that?

ath_pktlog.system.enable = 0
sysctl: error reading key 'ath_pktlog.system.mac': Operation not permitted
ath_pktlog.system.options = 0
ath_pktlog.system.per_thresh = 30
ath_pktlog.system.phyerr_thresh = 300
ath_pktlog.system.remote_port = 0
ath_pktlog.system.reset_buffer = 0
ath_pktlog.system.sack_thr = 3
ath_pktlog.system.size = 1048576
ath_pktlog.system.tail_length = 100
ath_pktlog.system.thruput_thresh = 65536
ath_pktlog.system.trigger_interval = 500
ath_pktlog.wifi0.enable = 0
ath_pktlog.wifi0.mac = 0	0	0	0	0
ath_pktlog.wifi0.options = 0
ath_pktlog.wifi0.per_thresh = 30
ath_pktlog.wifi0.phyerr_thresh = 300
ath_pktlog.wifi0.remote_port = 0
ath_pktlog.wifi0.reset_buffer = 0
ath_pktlog.wifi0.sack_thr = 3
ath_pktlog.wifi0.size = 1048576
ath_pktlog.wifi0.tail_length = 100
ath_pktlog.wifi0.thruput_thresh = 65536
ath_pktlog.wifi0.trigger_interval = 500
ath_pktlog.wifi1.enable = 0
ath_pktlog.wifi1.mac = 0	0	0	0	0
ath_pktlog.wifi1.options = 0
ath_pktlog.wifi1.per_thresh = 30
ath_pktlog.wifi1.phyerr_thresh = 300
ath_pktlog.wifi1.remote_port = 0
ath_pktlog.wifi1.reset_buffer = 0
ath_pktlog.wifi1.sack_thr = 3
ath_pktlog.wifi1.size = 1048576
ath_pktlog.wifi1.tail_length = 100
ath_pktlog.wifi1.thruput_thresh = 65536
ath_pktlog.wifi1.trigger_interval = 500
debug.exception-trace = 1
dev.nss.c2c_tx.test_code = -1
dev.nss.clock.auto_scale = 1
dev.nss.general.coredump = 0
dev.nss.general.jumbo_mru = 0
dev.nss.general.logbuf = 0
dev.nss.general.paged_mode = 0
dev.nss.general.redirect = 1
sysctl: out of memory

If it would help more I have the contents of /rom available or could share what are probably the MTD images (I say that because they were taken from LuCi in the ramdisk of OpenWRT proper so I'm not sure if they were read off the actual flash and this is a nand device so hopefully that doesn't actually use MTD because I'm told that's bad). I can also probably get other files on request.

1 Like

@xShARkx Can I ask you a favour since you're running macos and latest version.

Can you post your output of this command from your terminal. (MacOS speedtest-ish).

networkQuality -v -s

My result are:

==== Verbose Results ====
---
Capacity:
---
   Uplink capacity: 122.308 Mbps
      Accuracy: High
      Uplink bytes transferred: 142.484 MB
      Uplink Flow count: 12
   Downlink capacity: 122.324 Mbps
      Accuracy: High
      Downlink bytes transferred: 269.295 MB
      Downlink Flow count: 16
---
Latency:
---
   Idle Latency:
      4485 RPM (13.375 milliseconds)
         Transport: 4444 RPM (13.500 milliseconds)
         HTTP: 4528 RPM (13.250 milliseconds)
      Accuracy: High
   Uplink Responsiveness: High
      4169 RPM (14.388 milliseconds)
         Transport: 4185 RPM (14.337 milliseconds)
         HTTP: 3853 RPM (15.568 milliseconds)
         HTTP loaded: 2900 RPM (20.684 milliseconds)
      Accuracy: High
   Downlink Responsiveness: Medium
      558 RPM (107.415 milliseconds)
         Transport: 4392 RPM (13.660 milliseconds)
         HTTP: 4034 RPM (14.872 milliseconds)
         HTTP loaded: 269 RPM (222.832 milliseconds)
      Accuracy: Medium
---
Protocols Used:
---
    HTTP/2: 100%
---
Transport-layer info:
---
    ECN Disabled: 100%
---

I'm just curious if you or anyone else has this bad HTTP loaded: 269 RPM (222.832 milliseconds) result as I am...

You are mistaken rsrs, I am not running macOS :stuck_out_tongue: I am using windows 11. You probably confused me with someone else here in this thread.

I did, and my bad :slight_smile:

I've been pushing a good number of fixes to my branch. So far

  • ath11k_nss: fix clearing peer keys during sta state auth to assoc (fix for multiple deauth/auth)
  • ath11k_nss: Add bt coex support
  • ath11k_nss: Add NSS wireless VLAN support
  • ath11k_nss: Add NSS EXT VDEV support
  • ath11k_nss: optimized qca-nss-pbuf script to properly set dev.nss.n2hcfg.* values for all supported boards (1GB, 512M, 256M)
  • ath11k_nss: bugfix ordering of sysctl values
  • ath11k_nss: handle qca-nss-drv symbol dependancies
  • ath11k_nss: bugfix handling native wifi frames
  • feeds: update to use personal fork of nss-packages
  • qca-nss-dp: bump version to 12.4.5.r3
  • qca-ssdk: bump version to 12.4.5.r3 and fix warnings
  • qca-nss-drv: change default firmware load to non-warning one (doesn't print "failed to load firmware, falling back to sysfs...")
  • qca-ssdk: fix compile warnings + make parallel
  • qualcommax: add nss macsec support
  • qualcommax: optimize smp_affinity to move USB interrupt and NSS queues
  • qualcommax: silence annoying 'UBI NAND' warnings.

For devices that keep getting disconnected (mostly on 2G). It is
recommended to use the following settings for wifi. Change for your
country.

WPA3 should be disabled, and left as WPA2. Experimenting with max_inactivity, dtim_period, and disassoc_low_ack to hopefully resolve the deauth disconnects.

config wifi-device 'radio0'
				option type 'mac80211'
				option path 'platform/soc/c000000.wifi'
				option band '5g'
				option txpower '24'
				option country 'PA'
				option channel '100'
				option htmode 'HE160'
				option cell_density '0'

config wifi-iface 'default_radio0'
				option device 'radio0'
				option network 'lan'
				option mode 'ap'
				option encryption 'psk2'
				option key 'SOME_PASSWORD'
				option ssid 'EXAMPLE_5G'
				option dtim_period '3'
				option max_inactivity '86400'
				option disassoc_low_ack '0'

config wifi-device 'radio1'
				option type 'mac80211'
				option path 'platform/soc/c000000.wifi+1'
				option band '2g'
				option htmode 'HT20'
				option channel '1'
				option txpower '36'
				option country 'PA'
				option cell_density '0'

config wifi-iface 'default_radio1'
				option device 'radio1'
				option network 'lan'
				option mode 'ap'
				option ssid 'EXAMPLE_2G'
				option encryption 'psk2'
				option key 'SOME_PASSWORD'
				option max_inactivity '86400'
				option dtim_period '3'
				option disassoc_low_ack '0'

Memory usage has been stable since 2024-01-07 (12AM).

Before, the most I was able to get, was 2 days without memory leaks and the eventual kernel panic. I am also no longer seeing the frame mismatch errors.

I also reverted to using the older ath11k firmware, as that's been more stable for me:
WLAN.HK.2.9.0.1-01385 vs WLAN.HK.2.9.0.1-01890

Still needs heavy testing, but would like to get some feedback on how it performs.

openwrt fork: https://github.com/qosmio/openwrt-ipq/tree/qualcommax-6.1-nss-wifi
nss-packages fork: https://github.com/qosmio/nss-packages/tree/NSS-12.4-K6.1

10 Likes

The updated version is nice for non-nss builds too.

1 Like

Is there anything we have to do to use the older firmware or does it come along for the ride when pulling in the latest changes?

If you're building from my fork, It's already the default.

package/firmware/ath11k-firmware/Makefile

PKG_NAME:=ath11k-firmware
PKG_SOURCE_DATE:=2023-03-31
PKG_SOURCE_VERSION:=a039049a9349722fa5c74185452ab04644a0d351
PKG_MIRROR_HASH:=ed401e3f6e91d70565b3396139193f7e815f410db93700697205ac8ed1b828c5
PKG_RELEASE:=1
1 Like

Do I need to build both to make it work? Or just anyone of them?

Simply copy feeds.default.conf to feeds.conf. My nss repository is already listed there.

Btw MX4200 PR is now merged so you can add it now

1 Like



still have issue on my ax3600
even I modified the script to extra_pbuf_core0=3100000 n2h_high_water_core0=30624 n2h_wifi_pool_buf=6144 apply_sysctl

When did you compile your build. I saw that @qosmio committed two new commits to the NSS-wifi repo today after he announced the new changes yesterday. I built twice since yesterday.
I'm still testing the latest build and for now it seems I was able to resolve my issue with wlan clients (that have static leases set) that were unable to get IP address via DHCP only with NSS-wifi build.
Probably an issue with my config but I'm not sure.
I build with latest Ath11k firmware because I think it is OK on QNAP.

1 Like

OpenWrt SNAPSHOT r0-c43e96d
I built it on the latest commit c43e96d28f4177f594367e592fc4cd7cde42fffd

1 Like

Excellent! I actually preempted the changes for mx4200v1, mx4200v2 ad and mx5300 so added it to the pbuf script.

  case "$board" in
    # 1GB+ profile
    buffalo,wxr-5950ax12 | \
    dynalink,dl-wrx36 | \
    edgecore,eap102 | \
    linksys,mx5300 | \
    linksys,mx4200v2 | \
    netgear,rax120v2 | \
    netgear,wax620 | \
    netgear,wax630 | \
    prpl,haze | \
    qnap,301w | \
    xiaomi,ax9000 | \
    zyxel,nbg7815)
      extra_pbuf_core0=9000000 n2h_high_water_core0=67392 n2h_wifi_pool_buf=40960 apply_sysctl
      ;;
    # 512MB profile
    edimax,cax1800 | \
    linksys,mx4200v1 | \
    xiaomi,ax3600) # 512MB profile
      extra_pbuf_core0=3100000 n2h_high_water_core0=30624 n2h_wifi_pool_buf=8192 apply_sysctl
      ;;