The iwlwifi war: twenty-five rounds against a firmware nobody documents
Every other driver in UnoDOS was written against something you can read: a datasheet, a public register map, an emulator that tells you what you did wrong. The Intel AX201 is different. Its host interface is a PCIe mailbox through which you hand the card a firmware image and then speak to that image in commands whose layouts live only in the Linux driver's source, and whose rejections come back as an assert with an internal error code that, in the words of the handoff document, has "no open decode". QEMU does not model the part. The only way to test a change was to flash a USB stick, walk to a ThinkPad X13 Yoga, boot it, and read a log off the stick.
This essay is the log: what working against a black box does to an engineering process, when the process is an AI coding agent with me as its operator, lab tech and courier.
Fourteen rounds of reading the wrong register
The driver arrived on master on July 20 (12ef6666, "integrate the concurrent Wi-Fi driver work onto Studio") and met real hardware the next morning. The first metal run filed the finding that named the next two weeks: 3c5f21be, July 21, 01:48: "F12 (OPEN): AX201 loads fw, passes card-ready/RF-kill/APM, but no ALIVE in 2s." The card would accept the firmware image and then never post the ALIVE notification that means the firmware is running.
What followed, in one night, was a sequence the series has seen before: confident, specific, wrong. By 11:11 the same day (feef2f6e) the agent had an autopsy: "firmware NEVER STARTS on every card (no ALIVE in any RB, rb_status=0)." At 19:27 (1ad40025) it dropped a register write as "the spurious UREG_CPU_INIT_RUN=1 write (a gen3/IML register; gen2 kicks on the BA write alone)." At 21:34 (87e6c447) it found that the DMA arena sat above 4 GB and called it "a classic device-boot-ROM 32-bit-DMA limitation." At 23:49 (ae0047f9) it put the register it had removed four hours earlier back: "the doorbell we removed as 'spurious' in 1ad4002." Then, after midnight, rounds two through five: CNVi "force-power-gating" (abf77d1c), radio straps and paging sections (2f61df0d), a chicken register (b506abb7), a device-stop before bring-up (8ef7c09d). Each one metal-pending, each commit message ending with what the next Yoga boot should show.
I want to be fair to those five rounds, because the method inside them is better than the results. Read 87e6c447 to its end: "If FH_INT is still 0 with a <4GB arena, the theory is wrong and we look elsewhere - no risky ring refactor spent on an unconfirmed hunch." That is a prediction, written down before the experiment, with the action for either outcome. Round two (abf77d1c) ends the same way: "the window probe splits 'PRPH works, ROM quiet' from 'MAC still absorbing writes'." Every round shipped with instrumentation designed to make the next boot conclusive, and it did: round five settled round four's question ("UREG_CHICK readback=01000000 - UREG block writes LAND, so the CPU_INIT_RUN doorbell has been reaching the device all along").
The problem was not the experiments. It was the premise under all of them.
On July 22 the agent stopped reading Linux source from memory and booted Ubuntu on the Yoga to trace a working load. 338b2187, 12:40, is titled "iwlwifi F12 FIX" and opens "THE fix, from ground truth": the boot ROM "will NOT start the firmware load until MSI-X is enabled AND its interrupt causes are mapped + unmasked - which we never did." Three hours later (6581b089) a second cause: "VT-d DMA remapping is ACTIVE on the PCH IOMMU unit that covers the AX201... This fully explains the 6-round mystery together with the MSI-X requirement." Five minutes after that (db5257cc), with the IOMMU fully torn down and the ROM still apparently silent: "So the IOMMU, though it had TES=ON, was NOT actually gating the AX201's DMA."
By round fifteen (a77f09f1, July 22) the diagnosis had moved to a "secure-boot/firmware-image class failure". By round seventeen (1facd690, July 23) that was retired too, the firmware blob having been found byte-identical to Debian's, and the same commit records the turn in method: "Everything reachable by inspection is now verified, which is the argument for the new method: capture what the driver actually does and diff it." The handoff document's version is shorter: "So: stop reading, start recording."
The firmware had been alive the whole time
Two hours after the I/O recorder landed, a673bab4, July 23, 20:33:
Seventeen rounds concluded "the firmware never starts" from CSR_INT, FH_INT and UREG_UCODE_LOAD_STATUS all reading 0. They read 0 because this device runs in MSI-X mode, where causes are reported in CSR_MSIX_HW/FH_INT_CAUSES_AD and the legacy CSR_INT stays 0 forever. We never read those registers.
The MSI-X fix of round six had been correct. From that moment the firmware loaded, ran and reached ALIVE on every boot, and the driver declared failure every time because it was watching a register that this device never touches. Rounds seven through seventeen were spent hunting a park that did not exist, which is, as the commit says, "precisely why every load-path suspect kept checking out correct." Note what the commit does not do. "What is NOT here is the cure." Acting on the cause had wedged the Yoga twice, taking the in-flight log frames with it, so there was no evidence for which step was unsafe. The fix (fa7163b6, July 24, 04:58, "F12 SOLVED") was built register by register over a live remote channel, each write its own command, each result read back before the next: "No wedge." Three and a half days for a handshake that was a few lines once the right register was read.
Association: the rounds where the agent was wrong in public
Reaching ALIVE meant the real work could start. The agent bisected the post-ALIVE command sequence one firmware command per round trip (9bd3ebcf, July 24) and found the box wedged at ADD_STA, because the join scaffold was adding a station for a broadcast address. Then came the wall that held for three rounds: a firmware assert, data1=0x400, on the command that reserves airtime for authentication.
The commit titles from July 27 read like a lab notebook that knows it is one. Round 21 (8d8c9574): "right cmd+24B but LMAC-FATALs data1=0x400; airtime is the wall". Round 22 (440075b3): "ROOT CAUSE from working assoc trace: fw uses new link-based cmd API... legacy MVM path is why SESSION_PROTECTION has no link". That root cause was wrong, and the next day's metal commit says so in its own section heading: "Three hypotheses DISPROVEN on metal this round, do not re-chase", first among them "Round 22's stated root cause was WRONG." The actual fix (a84c6acd, July 27) was a command nobody had been looking for, RLC_CONFIG_CMD, and the commit records how it was found: the working Linux trace had been summarised as per-command counts; read in order, it showed the missing command following every PHY context, both times. In the handoff document's words, "The artifact had the answer for five rounds; nobody had read it in order."
With airtime solved, transmit turned out never to have worked at all. cb657a1b, July 27, 22:50: "Nothing this driver has ever queued has actually been transmitted." A missing four-byte header meant "a 30-byte auth frame arrives as cmd 0x1e group 0 = TXPATH_FLUSH. send_cmd() has always built this header correctly, which is why commands worked and TX never did." Then, on July 28, what the handoff calls "Five independently-necessary defects": our own MAC address "was never populated" (every frame had gone out from 00:00:00:00:00:00, and the access point's hardware ACK had been read as acceptance), the supplicant was handed the wrong pointer and armed after the association request instead of before, and the RSN element in the association request differed by two bytes from the one in the handshake. The WPA2 four-way completed on metal that afternoon; by 16:12 (9721db9e) a DHCP lease, three pings and a DNS answer had crossed the encrypted link, and that evening I joined my own network from the Control Panel on a second machine, an X1 Carbon (b66d341e).
Round 25 is where v3.34.0's Wi-Fi claim comes from, and it is real. It is also where the open case begins.
What was still open at v3.34.0
The Surface Laptop Go, a third AX201 with a different silicon stepping and no wired port, broke the picture again on August 3. The shipped firmware file was the wrong stepping, and the driver had read the hardware revision register and, in 1a70aa3f's words, "threw the answer away". The fix tries every candidate image until one ALIVEs (2b111d40), because "the decode is a hypothesis... while ALIVE is a clean 2-second pass/fail oracle." It worked (eab51d24, "correcting my own 'not demonstrated'"). Then the Surface associated, installed keys, and got no lease.
August 4 is the day I would hand to anyone who thinks a coding agent is either reliable or useless. At 13:28 (59f0d49c) the agent shipped a fix with "HONEST STATUS: this is the leading explanation, not a proven one"; it asserted the firmware on metal and was reverted (dade4c22). At 14:29 (927ed9be) it wrote: "I have guessed twice and been wrong twice, the second time shipping a LINK_CONFIG re-point that asserted the firmware and cost a boot. So this measures instead of guessing." At 20:09 (6283b152) it declared a log line "the answer, sixty times over"; forty-one minutes later (ffc80e13) it reverted itself: "I read a truncated grep of the Surface's boot log... and concluded the driver had been silently re-pointed to a node it did not choose. The full log says the opposite... A misleading diagnostic is worse than none: this one had a MAC address in it and looked authoritative." At 22:45 (1d82f542) it noticed the receive descriptor "has been saying all along whether the firmware decrypted, and nobody read it". At 23:40 (8b44cf5e) the real mechanism: a retried join re-pointed a live station instead of replacing it, so the card "found no key to apply to a frame encrypted with the very key it is transmitting under." The fix replaces the station. It has not been proven on the Surface; TODO.md at v3.34.0 still carries "iwlwifi RX decryption on the Surface Go: association and the 4-way handshake complete, no DHCP lease follows."
The last round before v3.34.0 came out of the August 20 conformance run. The Yoga could join an Eero's guest network and not its main one: the supplicant offered one AKM, WPA2-PSK, with no SAE and no management-frame protection. The commit that adds WPA3-SAE (9b1e64ef, August 20) says what that cost: a modern network "is not 'older', it is locked out". Its companion (140949e8) adds the diagnostic half: the driver had never parsed a beacon's RSN element, so "a WPA3-only BSS was not rejected - it was attempted with the wrong AKM, and the deauthentication that came back read exactly like a wrong password." SAE is checked against an independent Python model of the 802.11 text, because "Two peers agreeing on a PMK cannot catch a bignum layer that is self-consistently wrong."
And that is where v3.34.0 stands. The release notes say WPA3. The contract in the same tree, pc64/WIFI-SECURITY.md, says [EXPERIMENTAL], and its Open section begins: "The SAE path has never completed a join against a real access point." The IGTK is parsed and deliberately not handed to the firmware, because "a command this firmware dislikes does not fail - it SYSASSERTs". The Surface's retried-join fix is unproven. Three AX201s; one joins from the GUI on WPA2, one proved the data path, one associates and cannot receive. Nothing in the repo closes any of it, so this essay does not either.
Postscript: v3.35.0
The paragraph above was true when it was written, at v3.34.0. Seven weeks later, release v3.35.0 (October 9) closed the item that mattered: on the Surface Laptop Go, the AX201 scans, joins a WPA2 network, completes the handshake and takes a DHCP lease, from the GUI. Four commits did most of it, each with the same discipline of a written prediction. 3ce95802 (August 23) stopped treating "prefer SAE" as "only SAE", so a transition-mode access point that never answered the SAE commit got a WPA2-PSK join instead of "this machine has no network". d797e776 (August 24) found the freeze "on exchanging keys": twenty-one completed four-way handshakes, one every 200 ms, forever, because a supplicant already in its DONE state was still being handed message 1/4. 9fc2fc12 (August 24) is the one nobody had on the list: with the join finally held, every receive counter froze at exactly 2047, one lap of the ring, "because restock refilled nothing". And 2eeb336b (August 26) stopped reloading the firmware to change networks, because the firmware's own error table said the second load was what asserted it, and Linux does not reload either.
What the release notes still call open, in their words: WPA3-SAE "authenticates against a real access point but its handshake does not complete", so a WPA3-only network cannot be joined; switching networks after a join is not reliable; and joining a remembered network at boot was fixed (b8418150: the boot path "announced its intent and stopped one step short of it, on every boot this driver has ever had") but has not yet been seen working on hardware. The war is narrower. It is not over.
The lesson
Twenty-five rounds, two reverts, three "root cause" commits that were not, and one measurement error that cost eleven rounds. The thing that eventually worked was not a better guess. It was a change in what counted as evidence.
Against an undocumented device, treat every probe as an experiment with a written prediction, and treat the commit log as the lab notebook. The rounds that moved the project were the ones whose commit messages said, in advance, what the next boot would show and what each outcome would mean (87e6c447's "if FH_INT is still 0... the theory is wrong"), and the ones that recorded their own failures in a form the next reader could not miss (a84c6acd's "do not re-chase", ffc80e13's "wrong in the direction that matters"). The rounds that burned time reasoned from recalled source instead of recorded behaviour, and the turn came when the agent wrote that down too: "stop reading, start recording." A coding agent does not get more careful because you ask it to. It gets more careful when what it produces has to state a falsifiable claim, and when the history it reads next morning includes the claims that were falsified.
The closer follows: what an AI-built operating system does and does not prove about a codebase that is not greenfield.
Sources: https://github.com/hmofet/unodos, commits 12ef6666, 3c5f21be, feef2f6e, 1ad40025, 87e6c447, ae0047f9, abf77d1c, 2f61df0d, b506abb7, 8ef7c09d, 338b2187, 6581b089, db5257cc, a77f09f1, 1facd690, a673bab4, fa7163b6, 9bd3ebcf, 8d8c9574, 440075b3, a84c6acd, cb657a1b, 9721db9e, b66d341e, 1a70aa3f, 2b111d40, eab51d24, 59f0d49c, dade4c22, 927ed9be, 6283b152, ffc80e13, 1d82f542, 8b44cf5e, 9b1e64ef, 140949e8, July 20 to August 20; pc64/WIFI-F12-HANDOFF.md, pc64/WIFI-SECURITY.md, pc64/CONFORMANCE-2026-08.md section 8 and TODO.md at v3.34.0 (82a7fe90).