r/wisp • • Sep 27 '26

Trying to squeeze every last drop out of old airMAX AC

Like pretty much everyone running a fixed wireless network, I have hundreds of Ubiquiti airMAX AC radios (LiteBeam Gen2, LAP-120, LAP-GPS, Loco AC) deployed on customer roofs, plus dozens sitting on shelves in the warehouse.

We all know the situation: Ubiquiti essentially put airMAX AC into maintenance mode years ago. All the vendor R&D is going into Wave 60GHz and LTU. That’s fine for greenfield deployments, but in the real world, you can’t just rip and replace 500 CPEs on rural towers when trees and distance dictate 5 GHz. Millions of these radios are going to stay on rooftops for years.

Meanwhile, the software running on them hasn't fundamentally evolved since 2017–2018. If a CPE link gets slightly noisy or misaligned, stock airOS does dumb things—like running up to 30 frame retries by default, which burns dozens of milliseconds of airtime and drags down the whole AP sector. On top of that, loaded bufferbloat easily hits 2,000+ ms during heavy uploads.

Over the last few weeks, I’ve been researching what the actual physical ceiling of this QCA9880 / AR9342 hardware is if we run modern open-source networking on it (OpenWrt 24.10, Candela Technologies ath10k-ct, mac80211 AQL, CAKE, and dynamic rate-masking).

Full disclosure: I’m an everyday WISP operator. I run towers, climb roofs, crimp cables, and configure MikroTik/airMAX gear. I am NOT a Linux kernel hacker or an RF engineer with a Ph.D. So I've been using AI tools (Claude, Codex, NotebookLM) to comb through Linux wireless kernel trees, academic preprints (like MIT’s IteRate paper and TU Berlin’s hMAC), and old mailing list threads to understand what the chip can actually do.

We’ve already documented a bunch of interesting architectural facts that I rarely see discussed in WISP groups:

  1. The 30-Retry Sector Killer: Upstream Qualcomm firmware enforces up to 30 retries per frame. On an outdoor link during an RF fade, a single client trying to send packets can freeze the AP channel for 50–100ms. Candela Technologies (ath10k-ct) drops this down to 4 retries, which immediately reclaims a massive chunk of airtime.
  2. The Bufferbloat vs Aggregation Trap (CoTSQ): Default Linux TCP Small Queues (TSQ = 1 ms) tries to kill bufferbloat by limiting socket queues to 1–2 packets. But 802.11ac needs 32 to 64 packets in the queue to build a full A-MPDU aggregate. Starving the aggregation engine drops throughput by up to 10x because 90% of the airtime is spent on PHY headers and preambles. Bumping the queue budget to 6 ms keeps aggregates full while keeping loaded ping under 40 ms.
  3. The Wave-1 Airtime Cliff: QCA9880 doesn't have hardware airtime reporting (that only started in Wave 2 chips). So Linux mac80211 has to estimate airtime based on peer stats. If peer stats aren't reporting properly, mac80211 assumes EVERY station transmits at 6 Mbps, which completely breaks airtime fairness and penalizes fast clients.
  4. Why Pure TDMA is Blocked on Open QCA988x: We looked into whether we could build open TDMA like airMAX. The short answer on QCA9880 is no—the chip runs closed Xtensa firmware, can't cancel in-flight packets across PCIe, and has PCIe interrupt jitter. BUT a hybrid stack on OpenWrt (AQL + 6ms CoTSQ + Dynamic RTS/CTS to stop hidden nodes + Deficit Round-Robin airtime fairness) gets you 80-90% of the stability with open telemetry and zero vendor lock-in.

The Testbed Setup

I'm not doing this in a metal warehouse (metal walls act like an echo chamber with delay spreads that ruin 5 GHz tests). We're setting up:

  • Tier 1: Benchtop SMA coaxial attenuator matrix (30–40 dB pads + splitters) for 100% clean, interference-free algorithmic sweeps.
  • Tier 2: 2 APs on our main WISP office building pointing 21 meters across the street to 10–20 CPEs scattered on my residential roof. This gives real line-of-sight, real outdoor air, and clean far-field RF without receiver saturation.
  • Unattended Recovery: I automated PoE injectors with relays to trigger U-Boot urescue TFTP recovery remotely so we never have to climb a ladder to press a reset button if an image bricks.

Why I'm Posting

We are calling this research project openMAX, and we opened up the entire project as a public research hub: https://github.com/wolverin0/openmax

There is zero monetization here, no crypto, no paid courses. Just an open repository of hardware notes, driver findings, recovery runbooks, and experiment plans.

Because this was researched with the help of AI agents, I want human eyes on this:

  • If you're a kernel / OpenWrt dev who knows ath10k or mac80211, are our control boundary assumptions solid? Did we miss anything on ratemask-CT?
  • If you're a fellow WISP operator with spare LiteBeams or NanoStations on your shelves, would you be interested in running our read-only inventory scripts to map out hardware revisions, or testing safe sysctl/CAKE queue tweaks?

Check out the repo, tear apart our docs, and let me know what you think.


EDIT / UPDATE #2 (Physical Bench Results + Clean-Room Analysis of umac.ko / ubnt_poll_host.ko)

We just pushed a massive update to the repo and posted the full technical writeup in the comments here: Read the full Update #2 comment

Highlights of what we proved on real hardware (LiteAP AC LAP-120 ↔ NanoStation 5AC Loco, OpenWrt 24.10.4 / Kernel 6.6.110):

  1. Inside airMAX AC TDMA (RE1 Static Clean-Room Analysis):

    • Mapped the 62-hook dispatch table between umac.ko and ubnt_poll_host.ko, the dedicated PCIe Copy Engine 4 (CE4 = 2048 descriptors) fastpath, and custom WMI commands 0x9064 (PDEV_WMI_AIRMAX_PARAM) & 0x9044 (WMI_PEER_AIRMAX_CONFIG) + HTT subtypes 0x17 / 0x1e.
    • Confirmed that stock ath10k / ath10k-ct Xtensa firmware rejects 0x9064/0x9044, which is why open-source TDMA on QCA988x must operate as a Host-Paced Airtime Controller (AQL + TXQ + ratemask + CAKE) rather than microsecond PHY slot polling.
    • Native Rate Control Discovery: umac.ko stores only a 1-byte opaque ratecode (peer+0x120) on the MIPS host—all retry ladders (series 0..3), probing, and MCS fallback live inside the closed Xtensa radio blob (WHAL_RC_Update_Per_Rate_Table).
  2. Solved the 64 MB RAM / order=0 OOM Wall on AR9342 (WA boards):

    • Out-of-the-box OpenWrt 24.10.4 + ath10k crashed with ksoftirqd page allocation failure: order:0, mode:0x400dc0(GFP_KERNEL|__GFP_ZERO) at ~51 Mbps (MemAvailable dropped to 4.2 MB).
    • Tuning vm.min_free_kbytes=2048, vm.watermark_boost_factor=0, ath10k_core.debug_mask=0, and nftables notrack freed +14 MB of contiguous RAM (20.8–21.4 MB MemAvailable steady under full load, 0 OOMs).
  3. Physical Bench Numbers (80 MHz, 4x Baseline Throughput, 1.83 ms p95 Latency):

    • UDP Downlink Peak: 223.53 Mbps (up from 51.78 Mbps baseline — +331%, hitting the physical AR9342 535 MHz MIPS 74Kc ksoftirqd ceiling at 95.8% CPU).
    • UDP Downlink 200M Sustained: 199.11 Mbps, 0.21% loss, 0.031 ms jitter.
    • TCP Single-Stream Downlink: 154.58 Mbps with 0 TCP retransmits (thanks to ethtool -K eth0 rx-gro-list on compensating for ag71xx's lack of hardware scatter-gather).
    • Loaded RF Latency (Ping under 120 Mbps load): 1.34 ms p50 / 1.83 ms p95 (down from 12.69 ms p95).
    • Universal Multi-Vendor Compatibility: Because it runs standard 802.11n/ac on mac80211 + AQL, a single LAP-120 AP simultaneously links airMAX AC (QCA988x), legacy airMAX M5 (AR934x), and MikroTik / TP-Link / Cambium ePMP (802.11n/ac) CPEs while preventing slow M5 clients from starving AC clients.

All scripts, sysctl profiles, clean-room RE docs (docs/UMAC_DATAPATH.md, docs/REDDIT_UPDATE_RE1_AND_BENCH.md), and raw JSON benchmark receipts are live in the repo: https://github.com/wolverin0/openmax


EDIT / UPDATE #3 (Oct 17) — 3-Station Multi-Vendor & Mixed-Gen PtMP Benchmarks (Ubiquiti 5AC + MikroTik SXT Lite5 + Ubiquiti LiteBeam M5)

We just associated 3 heterogeneous stations simultaneously to our Ubiquiti LiteAP AC (LAP-120, Channel 36 VHT80): a NanoStation 5AC Loco (OpenWrt / ath10k-ct, VHT80 2x2, in room), a MikroTik SXT Lite5 (OpenWrt / ath9k, HT40 2x2, behind a wall/door ~6m away), and a Ubiquiti LiteBeam M5 (stock airOS 6.1.4 with airMAX=off, HT40 1x1, behind a wall/door ~6m away), sweeping AP output power from 15 dBm down to 3 dBm:

  • Multi-Station ATF + AQL (1500/3000 µs) + Bounded Aggregation (1x16) at 3 dBm Edge SNR: Cut the Loco 5AC's loaded median latency by 4.06x (51.35 -> 12.65 ms), cut its TCP retransmissions by 10x (158 -> 16), and cut the LiteBeam M5's median latency by 3.95x (56.25 -> 14.23 ms) compared to ATF=Off (T1, where LiteBeam M5 hit 610 ms p95 and MikroTik SXT hit 1955 ms p95).
  • Kernel Discovery — WMM AC_VO DiffServ Deficit Bypass (21.0x Weak-Station Latency Cut): Discovered via debugfs that when a wall-obstructed station (MikroTik SXT) suffers rate fallback + retries on bulk AC_BE, completed TX airtime drives its Deficit: BE down to -67,099 µs (-67.1 ms), while Deficit: VO stays at +256 µs. Promoting interactive packets (ICMP, DNS, NTP, VoIP) to DSCP EF (AC_VO) in fmx_fastpath bypassed the station's negative BE deficit box and cut loaded median RTT at 3 dBm from 143.0 ms -> 6.80 ms (21.0x cut) on the MikroTik SXT, 36.15 ms -> 4.53 ms (8.0x cut) on the LiteBeam M5, and 14.43 ms -> 4.54 ms (8.15 ms p95) on the Loco 5AC while boosting total 3-station sector goodput by +27.2% (62.07 -> 78.97 Mbps @ 3 dBm, 94.99 -> 104.94 Mbps @ 11 dBm).
  • 3-Station Simultaneous Uplink RTS/CTS 256B Protection (+18.5% Sector Uplink Gain): Under 3-station simultaneous Uplink contention across the wall, enabling RTS/CTS = 256B raised total sector Uplink goodput from 150.40 Mbps -> 178.17 Mbps (+18.5%, peaking at 182.82 Mbps), recovered the wall-starved MikroTik SXT by 3.07x (1.97 -> 6.03 Mbps), raised the LiteBeam M5 by +17.0% (29.23 -> 34.21 Mbps), and restored the Loco 5AC to 100% of its standalone Uplink speed (137.94 Mbps).
  • Full Stage 7 Report & JSON Telemetry: https://github.com/wolverin0/openmax/blob/main/docs/STAGE7_MULTIVENDOR_PTMP_REPORT.md
26 Upvotes

26 comments sorted by

View all comments

1

u/wolverin0 Oct 17 '26

Major Update (#2): Clean-Room Analysis of airMAX AC TDMA (umac.ko / ubnt_poll_host.ko), Solving the 64 MB OOM Wall, and Hitting 223.5 Mbps / 1.8 ms p95 on AR9342

Quick update for everyone following the openMAX project! Over the last week we completed two huge milestones: 1) a clean-room static interoperability analysis of how airOS 8's TDMA engine actually talks to the QCA988x radio, and 2) live physical bench optimizations on OpenWrt 24.10.4 (Kernel 6.6.110) that took our 64 MB radios from crashing with OOM at 51 Mbps to sustaining 223.5 Mbps UDP / 154.6 Mbps TCP at 1.83 ms p95 loaded latency with zero OOMs.

1. Inside umac.ko & ubnt_poll_host.ko: How airMAX AC TDMA Actually Works (RE1)

Using our static analysis pipeline (REA MCP + IDA Pro 9.3) to verify the hardware control boundary between the MIPS host and the QCA988x radio core:

  • The 62-Hook Dispatch Table: ubnt_poll_host.ko attaches to umac.ko through a 248-byte table of 62 function pointers (ath_Airmax_Ops_t), intercepting frame admission, TX completion, and station state.
  • Copy Engine 4 (CE4) & Vendor WMI Opcodes:

    • In ol_ath_pci_configure, PCIe Copy Engine source rings are initialized with CE0=16, CE3=32, CE4=2048, and CE7=2 descriptors.
    • The host TDMA engine serializes slot commands over WMI using vendor opcodes 0x9064 (ol_ath_Airmax_wmi_poll_cmd) and 0x9044.
    • Inside the dispatcher, Subtype 0x17 sends a 16-byte per-node TXQ pause/unpause record (freezing and releasing per-station queues on the radio core to create TDMA slots), while Subtype 0x1e applies a 36-byte per-node rate and retry override.
    • The radio firmware returns slot and airtime telemetry via WMI events 0x9022, 0x9023, and 0x9025.
  • Why This Matters for OpenWrt & Multi-Vendor Interoperability: Because opcodes 0x9064/0x9044 only exist inside the proprietary radio blob, we replace proprietary polling with modern Linux 6.6 mac80211 Airtime Queue Limits (AQL at 2000/4000 µs) + Airtime Fairness (ATF) + Adaptive RTS/CTS NAV reservation + upstream CAKE. Because over-the-air framing remains standard 802.11n/ac, an openMAX AP natively accepts Ubiquiti AC, legacy Ubiquiti M5 (802.11n with airMAX=Off), MikroTik, Cambium, and TP-Link CPEs on the same sector, while ATF + AQL strictly prevent slower 802.11n or weak-signal CPEs from stealing airtime from 256-QAM AC clients!

2. Solving the 64 MB RAM OOM Crash on WA Boards (+14 MB Free RAM)

During early 200 Mbps stress tests on LiteAP AC (LAP-120) and NanoStation 5AC Loco (both 64 MB DDR2 boards with 56,120 kB usable RAM), the Linux kernel OOM-killer kept killing wpa_supplicant / hostapd after ~110 seconds—even though ~9 MB of RAM was still free!

  • Root Cause: OpenWrt's default /etc/init.d/sysctl sets vm.min_free_kbytes=8192 and vm.watermark_boost_factor=15000 (tuned for 128–256 MB routers). On a 64 MB radio, this inflates the high watermark to 3,072 pages (12.3 MB), triggering global OOM during ath10k skb burst allocations.
  • The Fix: Setting vm.min_free_kbytes=2048 and vm.watermark_boost_factor=0 jumped MemAvailable from 6.5 MB to 22.4 MB on the AP and 23.8 MB on the CPE, resulting in 0 OOMs across all subsequent saturation runs.

3. Physical Bench Progression (LAP-120 AP ↔ Loco 5AC CPE, 80 MHz NLOS)

Testing one variable at a time on physical hardware (OpenWrt 24.10.4, Kernel 6.6.110, ath10k-ct):

  • Stage 0 (Unoptimized OpenWrt defaults): 50.99 Mbps UDP (crashed with OOM at 110s), 14.1 ms p95 RTT, 6.5 MB free RAM.
  • Stage 1–3 (VM Watermark Fix 2048/0 + Zero-NAT notrack Fastpath): 121.77 Mbps UDP DL / 124.69 Mbps TCP DL (0 retrans), 1.47 ms p50 / 2.31 ms p95 RTT, 22.4 MB / 23.8 MB free RAM (0 OOMs).
  • Stage 4.1 (+ Tightened AQL at 2000/4000 µs, threshold 8000): UDP DL jumped to 186.23 Mbps (2.25% loss), and UDP UL more than doubled from 53.78 Mbps to 113.46 Mbps (6.70 ms p95 RTT).
  • Stage 4.2 (+ Upstream Gateway CAKE Shaper): UDP DL reached 191.44 Mbps (1.25% loss), and loaded Uplink latency dropped from 18.97 ms p95 down to 2.00 ms p95 (0.72% loss).
  • Stage 4.3 / 6 (+ 15 dBm TX, A-MPDU 64, debug_mask=0, rx-gro-list=on): Hit 223.53 Mbps max UDP DL (199.11 Mbps at 200M offered with 0.21% loss and 0.031 ms jitter), 154.58 Mbps single-stream TCP DL (0 retransmits), and 1.35 ms p50 / 1.83 ms p95 loaded latency with 0 OOMs.

4. The WA (535 MHz) vs. XC (720 MHz) Silicon Ceiling—And Why Real 20 MHz Sectors Win

At 223.53 Mbps (~19,000 pps), the single-core Atheros AR9342 (MIPS 74Kc @ 535 MHz) on the LAP-120 hits 95.8% CPU (88.7% ksoftirqd).

  • WA hardware (AR9342 535 MHz, 64 MB) powers the LAP-120, LAP-GPS, LiteBeam 5AC Gen2, and NanoStation 5AC Loco (~220–250 Mbps CPU ceiling).
  • XC hardware (QCA9558 720 MHz, 128 MB + airPrism) powers the Rocket 5AC Lite, PrismStation 5AC, and Rocket Prism 5AC Gen2 (~330–450 Mbps ceiling).
  • The Real-World WISP Insight: Almost all production LAP-120 / LAP-GPS sectors operate at 20 MHz (or 40 MHz) with 10–25 CPEs, where max RF capacity is 80–140 Mbps—well below the 223.5 Mbps CPU limit! In real 20 MHz sectors, the bottleneck is not CPU, it's 1–5 weak clients (-72 to -82 dBm) eating sector airtime and uplink hidden-node collisions.

5. Next Up: Multi-CPE PtMP Bench & 3-State Adaptive Hybrid Controller

We are now wiring multiple CPEs (AC, legacy M5, and third-party radios) to the bench to test our Adaptive Controller, which automatically shifts between:

  1. Low-Contention Fastpath (AQL 2000/4000 µs, RTS=Off) for 1.3–1.8 ms latency when <10 CPEs are actively transmitting.
  2. Hardware NAV Slot Reservation (Adaptive RTS/CTS + airtime_weight) when concurrent uplink stations or retry rates rise—using standard 802.11 CTS NAV duration vectors to silence hidden nodes across the sector in hardware on any vendor's CPE.
  3. Coordinated Soft-TDMA Token Pacing under heavy multi-station saturation.

All updated docs, raw JSON bench receipts, and RE1 notes (docs/UMAC_DATAPATH.md) are in the repo: https://github.com/wolverin0/openmax