I've got the Qualcomm Atheros QCA6174 (PCI 168c:003e) working on Renku OS, and I'd like testers before it lands in the tree. It's Adrian Chadd's athp, a FreeBSD port of Linux's ath10k driver, built as a Renku driver called atheros10kwifi.
Download: atheros10kwifi-qca6174-test1.zip (1 MB, x86_64). It has the driver, an install script, a log-collection script, and the firmware from linux-firmware, so there's nothing else to fetch.
Tested on an Acer Chromebook "Kasumi" with a Lite-On QCA6174 (hw3.2, subsystem 11ad:0807): it scans 2.4 and 5 GHz, joins WPA2 networks on 802.11ac, and downloaded and installed a full system update (240 MB) without dropping. Other QCA6174 cards should work. Some cards need their own calibration data, and the driver picks it out of the bundled board-2.bin by PCI ID.
Not tested yet: other QCA6174 cards, hw2.1 cards (they need a firmware file that isn't included), the QCA988X and QCA99X0, open and WEP networks, suspend/resume, and Haiku.
Installing
sh /path/to/atheros10kwifi-qca6174-test1/install.sh
Then reboot and join your network from Network preferences. It's a test build, so it may drop into the kernel debugger (KDL). If the machine won't boot, hold Shift (or Space) at boot, choose to disable user add-ons, and run install.sh --uninstall.
Reporting
Whether it works or not, please post your card's PCI IDs (the listdev section) and how it went. After a test, collect-log.sh saves the driver's log into the folder. The logs include your network name and MAC addresses, so take those out before posting. For a KDL, a photo of the screen and of bt is the most useful thing.
What it took
Getting from "it loads" to a stable connection took 17 fixes: nine bugs in athp (among them a use-after-free and received packets claiming twice their real size), three Renku-specific adaptations (error codes and FreeBSD's printf formats work differently here), and five in Renku's FreeBSD compatibility layer, which should help other FreeBSD wifi drivers too. Two findings may matter beyond this card:
- Some QCA6174 cards won't run with the generic
board.bin: the firmware boots but never starts its data path. On this card it needed its own entry from board-2.bin.
- In a crowded area, wpa_supplicant can fail to join a network that Network preferences shows, because it reads scan results into a 24 KB buffer and your network may not fit. That's haikuports#15005. The fix in PR #199, which is built into this test driver, lists the network you asked for first, which works around it.
The code is up for review in Renku PR #200, with the compat fixes in PR #199.