FreeBSD Lacked a Wi-Fi Driver for My Old MacBook, So I Had AI Build One

The Problem: No Native FreeBSD Wi-Fi Driver

When Vladimir Varankin decided to repurpose his old 2016 MacBook Pro as a FreeBSD playground, he hit an immediate wall: FreeBSD had no native driver for the Broadcom BCM4350 Wi-Fi chip used in that model. The standard community workaround was wifibox — running a tiny Linux VM with PCI pass-through to manage the Wi-Fi device. Varankin wanted something cleaner.

Calling in Claude Code

The level-zero idea in 2026, as Varankin puts it, is to try AI. He cloned the brcmfmac subtree from the Linux kernel (ISC-licensed) and asked Claude Code to port it to FreeBSD using the LinuxKPI compatibility layer — the same mechanism FreeBSD already uses for Intel's iwlwifi driver. He pointed Claude at the iwlwifi implementation and said: "do as they did it."

The module compiled. But when loaded against actual hardware, kernel panics cascaded. Claude fixed one panic, only for the next to emerge. The deep technical challenges — differences in Linux and FreeBSD thread models, exception handling, PCI interaction patterns — surfaced one by one across many iterative sessions.

Success and What It Demonstrates

After extensive back-and-forth, the Wi-Fi driver eventually worked. The story went viral on Bluesky and Hacker News (351 points), resonating with developers who've faced similar hardware support gaps. Varankin's experiment demonstrates that Claude Code can be a genuine co-developer in low-level kernel programming — not just a code autocomplete tool, but a debugging partner capable of navigating complex OS internals.

Broader Implications

This is a meaningful data point for the state of AI coding assistants. Kernel driver development has traditionally required deep systems programming expertise accumulated over years. That AI can meaningfully contribute to this domain — even if imperfectly — suggests the range of "solvable" technical problems is expanding rapidly. Hardware support gaps in niche OS communities could become significantly more tractable with AI assistance.