v1.11 fixes the multi-second Wi-Fi stalls of the -nss images (#18) and makes
802.11s mesh work with NSS Wi-Fi offload (#21).
What changed
-nss images
- Wi-Fi-to-Wi-Fi stalls (#18). When one client received slower than another
sent to it, the queue to that client could take every NSS packet buffer. The
radio then stopped receiving and froze for seconds at a time. Two changes:- Each radio's NSS transmit queue is capped at 1024 packets. A full queue
drops at enqueue, which TCP handles as ordinary loss. nss-bufpoolno longer caps NSS at 4096 buffers. Its pool write also
lowered the high water mark, the most buffers NSS may hold. It now
restores it to 8704, the way stock sets its own separately.- On the bench, the stalls are gone. Idle memory is within ~0.6 MB of v1.10
on a fresh boot. The cap is theath11kparameternss_tx_desc
(256-8192).
- Each radio's NSS transmit queue is capped at 1024 packets. A full queue
- 802.11s mesh with NSS Wi-Fi offload (#21). Mesh interfaces now come up
with offload on, on both radios. Before, they failed, and took the AP on the
same radio off the air. Open and SAE mesh were tested against real peers. - Per-client Wi-Fi statistics (#23). A client's RX counters and inactive
time were read with the wrong layout and came out wrong. - Frame mode (#24). With NSS offload,
frame_modevalues other than
Ethernet let clients associate but never finish WPA. ath11k now warns and
uses Ethernet mode. - 2.4 GHz reconnect after a Wi-Fi firmware restart (#25). A client that
rejoined within a few seconds could take ~17 s to come back. The WPA 4-way
handshake now gets 8 tries: added once to each AP interface that does not set
its own value. - Smaller fixes: the wifili exception callback pointer (#22), and a debugfs
warning at startup (#26).
Both images
rd03v2-watchdogre-joins an encrypted mesh after the driver recovers a
radio in place. Otherwise SAE peers stay linked but pass no traffic.
Hardware validation
The release's own -nss image was installed on the bench's NAND with a
config-preserving sysupgrade from RAM, and checked there:
- NSS buffers at boot: pool 4096, high water 8704. The log shows
pool 8704 -> 4096, thenhigh water 4096 -> 8704. - ath11k:
nss_tx_desc=1024, and the mesh manager is loaded. - 4-way handshake option: added once to both APs.
- Idle state: both APs up, the watchdog running, no kernel warnings, idle
MemAvailable37 MB. - #18's reproduction: a VHT80 station sending to an HT20 station on the same
5 GHz AP, iperf3, 30 s.- With 2 or with 8 streams, no second fell to 0 bit/s, and there were no NSS
buffer failures. v1.10 stalled for 3-7 s per run in the same test. - A fast VHT80 pair ran at 164 Mbit/s.
- With 2 or with 8 streams, no second fell to 0 bit/s, and there were no NSS
Development testing on the same bench compared the old and new settings
back to back, including:
- cross-band and both radios queuing at once;
- firmware-crash recovery;
- throughput to fast clients (172-360 Mbit/s, unchanged).
See docs/nss-wifi-validation.md. Mesh was tested in #27 against real peers:
open and SAE, RT3070 on 2.4 GHz and mt76 on 5 GHz.
Release verification
Both image families were rebuilt from 60e9481 with KMODS=1.
tools/verify-release.sh passed 43/43 checks, including:
nss-bufpoolactually writing pool 4096 and high water 8704 when run, in
both flavours;- NSS Wi-Fi offload content in the
-nssimages, and none in the plain ones; - the native IPQ5018 BDF in both squashfs roots and all four initramfs
variants; - radio-silent ordinary images and beaconing
-wifiinstallers; - matched kernel/kmod repositories for each flavour;
- all asset checksums.
Kernels: plain 6.12.94~22588d2e…-r1, NSS 6.12.94~b8b357d5…-r1. The NSS
identity is unchanged from v1.10. Install kmods only from the v1.11 archive
that matches your image: each archive is signed with its own image's key.
Upgrading
Unchanged from v1.10. Boot the matching initramfs image into RAM, then run
sysupgrade with the matching v1.11 squashfs-sysupgrade image. Do not run an
in-place NAND sysupgrade; the platform intentionally refuses it. See
docs/no-uart-reflash.md.
For an existing NSS installation, compare /etc/rc.local with
/rom/etc/rc.local after upgrading, as described in the README. That file is
preserved from the old installation.
Not tested
- Wi-Fi 6/7 clients and 160 MHz with the new transmit queue cap. The bench's
clients are Wi-Fi 5. If peak throughput to a fast client drops compared with
v1.10, addnss_tx_desc=2048to theath11kline in
/etc/modules.d/ath11k-smallbuffersand reboot. - WAN over PPPoE, IPv6, VLAN-aware bridges and long soaks with the NSS Wi-Fi
changes.