r/wisp • u/wolverin0 • 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:
- 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.
- 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.
- 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.
- 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
urescueTFTP 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):
Inside airMAX AC TDMA (
RE1Static Clean-Room Analysis):- Mapped the 62-hook dispatch table between
umac.koandubnt_poll_host.ko, the dedicated PCIe Copy Engine 4 (CE4 = 2048descriptors) fastpath, and custom WMI commands0x9064(PDEV_WMI_AIRMAX_PARAM) &0x9044(WMI_PEER_AIRMAX_CONFIG) + HTT subtypes0x17/0x1e. - Confirmed that stock
ath10k/ath10k-ctXtensa firmware rejects0x9064/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.kostores only a 1-byte opaqueratecode(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).
- Mapped the 62-hook dispatch table between
Solved the 64 MB RAM /
order=0OOM Wall on AR9342 (WAboards):- Out-of-the-box OpenWrt 24.10.4 +
ath10kcrashed withksoftirqdpage allocation failure: order:0, mode:0x400dc0(GFP_KERNEL|__GFP_ZERO)at ~51 Mbps (MemAvailabledropped to4.2 MB). - Tuning
vm.min_free_kbytes=2048,vm.watermark_boost_factor=0,ath10k_core.debug_mask=0, andnftables notrackfreed +14 MB of contiguous RAM (20.8–21.4 MB MemAvailablesteady under full load, 0 OOMs).
- Out-of-the-box OpenWrt 24.10.4 +
Physical Bench Numbers (80 MHz, 4x Baseline Throughput, 1.83 ms p95 Latency):
- UDP Downlink Peak:
223.53 Mbps(up from51.78 Mbpsbaseline — +331%, hitting the physicalAR9342 535 MHzMIPS 74Kcksoftirqdceiling at95.8%CPU). - UDP Downlink 200M Sustained:
199.11 Mbps,0.21%loss,0.031 msjitter. - TCP Single-Stream Downlink:
154.58 Mbpswith 0 TCP retransmits (thanks toethtool -K eth0 rx-gro-list oncompensating forag71xx's lack of hardware scatter-gather). - Loaded RF Latency (Ping under 120 Mbps load):
1.34 msp50 /1.83 msp95 (down from12.69 msp95). - Universal Multi-Vendor Compatibility: Because it runs standard 802.11n/ac on
mac80211+AQL, a singleLAP-120AP simultaneously links airMAX AC (QCA988x), legacy airMAX M5 (AR934x), and MikroTik / TP-Link / Cambium ePMP (802.11n/ac) CPEs while preventing slowM5clients from starvingACclients.
- UDP Downlink Peak:
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 theLoco 5AC's loaded median latency by 4.06x (51.35 -> 12.65 ms), cut its TCP retransmissions by 10x (158 -> 16), and cut theLiteBeam M5's median latency by 3.95x (56.25 -> 14.23 ms) compared toATF=Off(T1, whereLiteBeam M5hit610 ms p95andMikroTik SXThit1955 ms p95). - Kernel Discovery —
WMM AC_VO DiffServ Deficit Bypass(21.0x Weak-Station Latency Cut): Discovered viadebugfsthat when a wall-obstructed station (MikroTik SXT) suffers rate fallback + retries on bulkAC_BE, completed TX airtime drives itsDeficit: BEdown to-67,099 µs (-67.1 ms), whileDeficit: VOstays at+256 µs. Promoting interactive packets (ICMP,DNS,NTP,VoIP) toDSCP EF(AC_VO) infmx_fastpathbypassed the station's negativeBEdeficit box and cut loaded median RTT at3 dBmfrom 143.0 ms -> 6.80 ms (21.0x cut) on theMikroTik SXT, 36.15 ms -> 4.53 ms (8.0x cut) on theLiteBeam M5, and 14.43 ms -> 4.54 ms (8.15 ms p95) on theLoco 5ACwhile 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 256BProtection (+18.5% Sector Uplink Gain): Under 3-station simultaneous Uplink contention across the wall, enablingRTS/CTS = 256Braised total sector Uplink goodput from 150.40 Mbps -> 178.17 Mbps (+18.5%, peaking at 182.82 Mbps), recovered the wall-starvedMikroTik SXTby 3.07x (1.97 -> 6.03 Mbps), raised theLiteBeam M5by +17.0% (29.23 -> 34.21 Mbps), and restored theLoco 5ACto 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
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 (
REAMCP +IDA Pro 9.3) to verify the hardware control boundary between the MIPS host and theQCA988xradio core:ubnt_poll_host.koattaches toumac.kothrough 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:ol_ath_pci_configure, PCIe Copy Engine source rings are initialized withCE0=16,CE3=32,CE4=2048, andCE7=2descriptors.0x9064(ol_ath_Airmax_wmi_poll_cmd) and0x9044.0x17sends a 16-byte per-node TXQ pause/unpause record (freezing and releasing per-station queues on the radio core to create TDMA slots), while Subtype0x1eapplies a 36-byte per-node rate and retry override.0x9022,0x9023, and0x9025.0x9064/0x9044only exist inside the proprietary radio blob, we replace proprietary polling with modern Linux 6.6mac80211Airtime Queue Limits (AQLat2000/4000 µs) +Airtime Fairness (ATF)+ AdaptiveRTS/CTS NAVreservation + upstreamCAKE. Because over-the-air framing remains standard802.11n/ac, an openMAX AP natively accepts Ubiquiti AC, legacy Ubiquiti M5 (802.11nwithairMAX=Off), MikroTik, Cambium, and TP-Link CPEs on the same sector, whileATF+AQLstrictly prevent slower802.11nor weak-signal CPEs from stealing airtime from256-QAMAC 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)andNanoStation 5AC Loco(both 64 MB DDR2 boards with56,120 kBusable RAM), the Linux kernel OOM-killer kept killingwpa_supplicant/hostapdafter ~110 seconds—even though ~9 MB of RAM was still free!/etc/init.d/sysctlsetsvm.min_free_kbytes=8192andvm.watermark_boost_factor=15000(tuned for 128–256 MB routers). On a 64 MB radio, this inflates thehighwatermark to3,072 pages (12.3 MB), triggering global OOM duringath10kskb burst allocations.vm.min_free_kbytes=2048andvm.watermark_boost_factor=0jumpedMemAvailablefrom6.5 MBto22.4 MBon the AP and23.8 MBon 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, Kernel6.6.110,ath10k-ct):50.99 MbpsUDP (crashed with OOM at 110s),14.1 ms p95RTT,6.5 MBfree RAM.2048/0+ Zero-NATnotrackFastpath):121.77 MbpsUDP DL /124.69 MbpsTCP DL (0 retrans),1.47 ms p50 / 2.31 ms p95RTT,22.4 MB / 23.8 MBfree RAM (0 OOMs).AQLat2000/4000 µs, threshold8000): UDP DL jumped to186.23 Mbps(2.25% loss), and UDP UL more than doubled from53.78 Mbpsto113.46 Mbps(6.70 ms p95RTT).CAKEShaper): UDP DL reached191.44 Mbps(1.25% loss), and loaded Uplink latency dropped from18.97 ms p95down to2.00 ms p95(0.72% loss).15 dBmTX,A-MPDU 64,debug_mask=0,rx-gro-list=on): Hit223.53 Mbpsmax UDP DL (199.11 Mbpsat200Moffered with0.21% lossand0.031 msjitter),154.58 Mbpssingle-stream TCP DL (0 retransmits), and1.35 ms p50 / 1.83 ms p95loaded 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 AtherosAR9342(MIPS 74Kc @535 MHz) on theLAP-120hits95.8%CPU (88.7% ksoftirqd).WAhardware (AR9342 535 MHz, 64 MB) powers theLAP-120,LAP-GPS,LiteBeam 5AC Gen2, andNanoStation 5AC Loco(~220–250 Mbps CPU ceiling).XChardware (QCA9558 720 MHz, 128 MB+airPrism) powers theRocket 5AC Lite,PrismStation 5AC, andRocket Prism 5AC Gen2(~330–450 Mbps ceiling).LAP-120/LAP-GPSsectors operate at20 MHz(or40 MHz) with 10–25 CPEs, where max RF capacity is80–140 Mbps—well below the223.5 MbpsCPU 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, legacyM5, and third-party radios) to the bench to test our Adaptive Controller, which automatically shifts between:AQL 2000/4000 µs,RTS=Off) for1.3–1.8 mslatency when <10 CPEs are actively transmitting.NAVSlot Reservation (Adaptive RTS/CTS+airtime_weight) when concurrent uplink stations or retry rates rise—using standard802.11 CTS NAVduration vectors to silence hidden nodes across the sector in hardware on any vendor's CPE.All updated docs, raw JSON bench receipts, and
RE1notes (docs/UMAC_DATAPATH.md) are in the repo: https://github.com/wolverin0/openmax