BRING-UP GUIDE
A fault-isolation sequence for 802.11ac MiniPCIe modules on Linux and OpenWrt. It starts at the PCIe bus and ends when the radio passes traffic — covering enumeration, firmware and board-file resolution, regulatory domain, and the dmesg lines that tell you which of those three failed.
Contents
A MiniPCIe WiFi module sits behind four independent layers. Each one can fail silently while the layers above it report a plausible-looking error, so the symptom usually points at the wrong place.
The four layers, in the order the kernel walks them:
There is a fifth layer that is not a failure at all but behaves like one: the regulatory domain. A module with correct firmware and a working driver will still refuse to start an AP on a channel the current regulatory domain does not permit, and the error surfaces as a generic interface-down message rather than anything mentioning the country code.
MiniPCIe carries one PCI Express lane plus USB 2.0 on the same 52-pin edge connector. WiFi modules use the PCIe lane; some cellular and combo modules use USB. Confirm which interface your module actually uses before assuming PCIe — a module that presents only on USB will never appear in lspci, and that is correct behaviour, not a fault.
# List PCI devices with numeric vendor:device IDs
lspci -nn
# Show the PCIe topology as a tree, which reveals which root port
# the module is behind — needed later for the OpenWrt 'path' option
lspci -nn -t
# Confirm the kernel bound a driver to the device
lspci -k -s 01:00.0
Qualcomm Atheros 802.11ac parts appear under vendor ID 168c. The QCA986x/988x family reports as 168c:003c, which is the ID you will see for a QCA9880-based MiniPCIe card. If lspci shows the device but lspci -k shows no “Kernel driver in use” line, you have reached layer 3 and the driver is the problem. If lspci shows nothing at all, stay on this step.
Work through these in order. Each one is cheap to check and rules out a large block of causes.
Qualcomm Atheros 802.11ac PCIe parts are handled by ath10k_pci, which depends on ath10k_core, mac80211, and cfg80211. Loading ath10k_pci pulls the rest in automatically. The driver has been in the mainline kernel since 4.4, so on any current LTS kernel the code itself is not the problem — the question is whether your build includes it and whether it carries your module’s subsystem ID.
# Is the driver built into this kernel at all?
zcat /proc/config.gz | grep -i ATH10K
# Expect CONFIG_ATH10K=m and CONFIG_ATH10K_PCI=m
# Is it loaded, and what does it depend on?
lsmod | grep ath10k
# Load it explicitly and watch the result
modprobe ath10k_pci
dmesg | tail -40
If CONFIG_ATH10K_PCI is absent from the kernel config, no amount of module loading will help — the driver has to be built. On OpenWrt this means installing the package; on a custom kernel it means enabling the option and rebuilding.
OpenWrt splits the driver and the firmware into separate packages, and the naming is specific to the chip family. For a QCA9880-based MiniPCIe card the set is:
opkg update
opkg install kmod-ath10k \
ath10k-firmware-qca988x \
ath10k-board-qca988x \
wireless-regdbThe qca988x suffix covers the QCA986x/988x family, which is what a QCA9880 reports as. Installing ath10k-firmware-qca9888 instead — a mistake that is easy to make because the names differ by one digit — leaves the driver looking for a board file that does not exist for your chip, and you get the board-data failure described in the next section.
This is the subsystem ID case. lspci -nn shows the device, lspci -k shows no driver in use, and dmesg says nothing about ath10k. The driver’s PCI ID table matches on vendor and device, and for some vendor-specific modules also on subsystem vendor and device. A module built on a QCA9880 with a custom subsystem ID that is not in the table will enumerate and stay unclaimed.
Confirm the ID before assuming this is the cause:
# Full ID string including subsystem
lspci -nn -vv -s 01:00.0 | grep -i -E 'Subsystem|Kernel'
# Check whether the driver knows this ID
modinfo ath10k_pci | grep alias | grep -i 168c
If the subsystem ID is genuinely missing, the fix is a one-line addition to the driver’s ID table followed by a rebuild, or asking the module vendor for a card whose subsystem ID is already covered. Patching a driver ID table is a maintenance commitment, not a one-time fix — every kernel update re-applies it.
ath10k needs two different files, and confusing them is the most common reason a MiniPCIe card enumerates correctly and still produces no wireless interface.
Both live under /lib/firmware/ath10k/, in a directory named for the chip family and the silicon hardware revision. For a QCA9880 the path is:
/lib/firmware/ath10k/QCA988X/hw2.0/
├── firmware-5.bin # firmware image
├── board.bin # single-board data file (older format)
└── board-2.bin # multi-board container (current format)The trailing digit is the firmware interface version, not a revision counter. The driver tries the highest number it supports and walks downward. On a current kernel you will see it attempt firmware-6.bin first and fall back:
ath10k_pci 0000:01:00.0: Direct firmware load for
ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
ath10k_pci 0000:01:00.0: Falling back to user helper
ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5
features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast crc32 7f5a1c3eThe error -2 on the first line is ENOENT and is expected — it means that particular version is not installed, and the driver moved on. The line that matters is the one reporting firmware ver … api 5. If you see that line, firmware loaded successfully and you can stop looking at firmware. If the log ends at the fallback message with no version line, firmware loading failed and the next section applies.
This error appears immediately after the firmware loads and mentions a file path, which makes it easy to misread as a firmware fault:
ath10k_pci 0000:01:00.0: failed to fetch board data for
bus=pci,bmi-chip-id=0,bmi-board-id=20 from
ath10k/QCA9888/hw2.0/board-2.bin
ath10k_pci 0000:01:00.0: failed to fetch board-2.bin or board.bin
from ath10k/QCA9888/hw2.0
ath10k_pci 0000:01:00.0: failed to fetch board file: -12
ath10k_pci 0000:01:00.0: could not probe fw (-12)Read the first line carefully. The file board-2.bin was found and opened — otherwise the message would be a plain load failure. What failed is the lookup inside that container. board-2.bin is an archive holding board data for many different module designs, and the driver selects an entry by matching the identifiers the chip reports: bmi-chip-id and bmi-board-id. If no entry in the container matches the pair your card reports, the lookup fails and the probe aborts with -12 (ENOMEM here, misleadingly, because the driver’s error path reuses that code).
Three causes:
Once the radio is up, confirm the firmware and board file versions rather than assuming:
# Firmware and board file versions as reported by the driver
dmesg | grep -E 'firmware ver|board_file api'
# Expected shape of a healthy pair:
# firmware ver 10.2.4-1.0-00047 api 5 features ... crc32 ...
# board_file api 2 bmi_id 0:20 crc32 ...
# Which files the driver will look for
modinfo ath10k_pci | grep firmware
The board_file api 2 bmi_id 0:20 line confirms which board entry was selected. If that line is missing while the firmware line is present, the board lookup failed and the interface will not come up even though firmware loaded.
Regulatory domain produces symptoms that point away from itself. A module with correct firmware and a working driver will still refuse to operate on channels the current domain does not permit, and the refusal often surfaces as a generic interface-down message with no mention of the country code.
The kernel enforces the domain in two places. cfg80211 holds the current domain and applies it to every wireless device. The domain itself comes from the wireless-regdb database, which is a separate package from the driver. If that package is missing, the kernel falls back to the world domain, which is the most restrictive set of rules and blocks most of the 5 GHz band.
# What domain is currently in force?
iw reg get
# A healthy result names a country and lists per-band limits:
# country DE: DFS-ETSI
# (2400 - 2483 @ 40), (N/A, 20), (N/A)
# (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR
# ...
# A broken result looks like this:
# global
# (N/A - N/A @ 20), (N/A, 20), (N/A)
# Set the domain explicitly
iw reg set DE
If iw reg get shows no country and no frequency ranges, the regulatory database is not being read. On OpenWrt that means wireless-regdb is not installed. On a custom build it usually means the kernel was compiled without CONFIG_CFG80211_CRDA_SUPPORT or the database file is not at the path the kernel expects.
When you configure a channel the domain does not allow, the driver does not fail loudly. It either refuses to bring the interface up or falls back to a permitted channel, and the only evidence is in the log:
cfg80211: regulatory: domain 00 is unset
cfg80211: Regulatory domain changed to country: 00
ath10k_pci 0000:01:00.0: failed to set channel: -22The -22 is EINVAL — the channel is not valid under the current domain. This is not a driver bug and not a hardware fault. It is the regulatory layer doing its job with an unset domain.
OpenWrt applies the country code through UCI rather than through iw reg set, because UCI writes it into the wireless configuration that is re-applied on every boot:
# /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0'
option hwmode '11a'
option htmode 'VHT80'
option channel '36'
option country 'DE'
# Apply without rebooting
wifi reload
# Confirm the domain took effect
iw reg get
The option path value must match the PCIe path the module actually enumerates at, which is why lspci -nn -t from Step 1 matters. If the path is wrong, the wireless device never attaches and the interface stays down — a failure that looks identical to a regulatory problem but is not.
Channels in the 5250–5350 and 5470–5725 MHz ranges require Dynamic Frequency Selection: the radio must listen for radar before transmitting, and must vacate the channel if radar is detected. On a freshly booted system this produces a delay of up to a minute before the interface becomes usable, and the log shows a channel availability check in progress. An interface that appears up but passes no traffic for 60 seconds on channel 52 is usually doing exactly what it should. If the deployment cannot tolerate that delay, use a non-DFS channel — but check the domain first, because which channels are non-DFS varies by country.
ath10k is unusually verbose during probe, which is an advantage once you know the order of the messages. A successful probe produces a fixed sequence:
[ 15.915387] ath10k_pci 0000:01:00.0: enabling device (0000 -> 0002)
[ 15.922213] ath10k_pci 0000:01:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[ 17.274870] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x01000000 chip_id 0x00000000 sub 0000:0000
[ 17.284440] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[ 17.303702] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features ... crc32 7f5a1c3e
[ 17.643425] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 0:20 crc32 9a038867
[ 17.695594] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal otp max-sta 128 raw 0 hwcrypto 1
[ 17.812004] ath: EEPROM regdomain: 0x0
[ 17.812011] ath: EEPROM indicates default country code should be used
[ 17.812018] ath: doing EEPROM country->regdmn map search
[ 17.812026] ath: country maps to regdmn code: 0x3a
[ 17.812031] ath: Country alpha2 being used: US
[ 17.812037] ath: Regpair used: 0x3a
[ 18.104221] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 18.105887] ath10k_pci 0000:01:00.0 wlp1s0: renamed from wlan0The messages appear in a fixed order, and the point where the sequence stops tells you which layer failed:
The block starting ath: EEPROM regdomain: 0x0 is frequently misread as an error. It is not. It reports that the module’s EEPROM does not carry a hard-coded regulatory domain, so the kernel should apply the country code from userspace instead. That is the normal and preferred state — a module with a hard-coded domain cannot be legally redeployed to another country. The lines that follow trace the mapping from the EEPROM value to a regulatory pair, and Country alpha2 being used: US shows which country was applied at that moment. If that country is not where the equipment is installed, fix it in Step 4.
A failure has a location. Three real failure sequences, each stopping at a different point:
# Failure A — firmware file absent entirely
ath10k_pci 0000:01:00.0: Failed to find firmware-N.bin (N between 2 and 6)
from ath10k/QCA988X/hw2.0: -12
ath10k_pci 0000:01:00.0: could not fetch firmware files (-12)
ath10k_pci 0000:01:00.0: could not probe fw (-12)
# Failure B — firmware loaded, board lookup failed
ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features ... crc32 ...
ath10k_pci 0000:01:00.0: failed to fetch board data for
bus=pci,bmi-chip-id=0,bmi-board-id=20 from ath10k/QCA9888/hw2.0/board-2.bin
ath10k_pci 0000:01:00.0: failed to fetch board-2.bin or board.bin from ath10k/QCA9888/hw2.0
ath10k_pci 0000:01:00.0: failed to fetch board file: -12
ath10k_pci 0000:01:00.0: could not probe fw (-12)
# Failure C — firmware loaded, board loaded, then firmware crashed at runtime
ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features ... crc32 ...
ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 0:20 crc32 ...
ath10k_pci 0000:01:00.0: firmware crashed! (uuid 8f3c1a2e-...)
ath10k_pci 0000:01:00.0: firmware assert log:
Failure A is a packaging problem — the file is not on disk. Failure B is a matching problem — the file is on disk but contains no entry for this card. Failure C is different in kind: everything loaded, and the firmware then faulted while running. Failure C is the only one of the three where the firmware version itself is a plausible cause, and the assert log that follows the crash line is what you send to the driver maintainers.
Once the interface exists, the remaining failures are physical. The driver will happily report a working radio with a disconnected antenna, because nothing in the digital path knows the RF connector is loose. The symptoms are a link that associates at close range and collapses at distance, or a transmit power reading that looks normal while throughput is a fraction of expectation.
Two connector families appear on 802.11ac MiniPCIe modules, and they are physically incompatible despite looking similar at a glance:
| Connector | Hirose part | Mated height | Rated mating cycles | Typical use |
|---|---|---|---|---|
| U.FL (MHF1) | U.FL-R-SMT-1 | 2.5 mm | 30 | Older and lower-density modules |
| MHF4 | MHF4-2L | 1.2 mm | 50 | Current modules, tighter stack-ups |
The mating cycle rating is the number that matters in the field. It is the manufacturer’s specification for how many times the connector can be mated before contact reliability is no longer guaranteed. A U.FL connector rated at 30 cycles has used a tenth of its life after three service visits; an MHF4 rated at 50 has more headroom but the same failure mode. A link that degrades after a maintenance visit is therefore more often a connector than a radio.
Before touching hardware, get the radio’s measurement of its own state. These three commands separate a configuration problem from a physical one:
# Current channel, width, and transmit power
iw dev wlp1s0 info
# Per-chain signal, noise, and bitrate for the current peer
iw dev wlp1s0 station dump
# Survey: how much airtime is actually busy on this channel
iw dev wlp1s0 survey dump
In station dump, the fields to read are signal (per-chain dBm), tx bitrate, and expected throughput. A 2×2 module with one antenna disconnected shows a large gap between the two chain signal values — typically 15 dB or more — and the bitrate will sit at a low MCS regardless of distance. That asymmetry is the signature of a single broken RF path, and it is visible without any test equipment.
When measured range falls short, the instinct is to raise transmit power. On a regulatory-compliant module there are three independent ceilings, and the effective power is the lowest of them:
If iw dev wlp1s0 info reports a transmit power well below what the datasheet claims, the cause is one of the first two, and no configuration change will exceed them. Check the domain first, then the board file.
A metal enclosure with the antenna mounted inside it is a shielded box. The radio will associate with a client in the same room and fail through a wall, and no amount of driver tuning changes that. Either bring the antenna outside through a bulkhead connector, or leave a non-metallic window in the enclosure at the antenna location. The pigtail from the module to the bulkhead connector adds loss — roughly 0.3 to 0.5 dB per connector pair plus cable loss — and that loss comes directly off the link budget. Budget it before choosing a cable length, not after the range test fails.
The layers above are ordered because each one depends on the previous. Running them out of order wastes time: a firmware error cannot be diagnosed while the device is not enumerating, and a regulatory problem cannot be seen while the interface does not exist.
| # | Layer | Command | Pass condition | If it fails |
|---|---|---|---|---|
| 1 | Power and slot | lspci -nn | Device appears with ID 168c:xxxx | Slot mux, BAR space, 3.3 V rail, seating |
| 2 | Driver binding | lspci -k -s 01:00.0 | “Kernel driver in use: ath10k_pci” | Missing kernel module, or subsystem ID not in table |
| 3 | Firmware | dmesg | grep ‘firmware ver’ | A version line with api 5 or higher | Wrong firmware package, or file not on disk |
| 4 | Board data | dmesg | grep ‘board_file api’ | A line with a bmi_id pair | Board ID absent from container; contact module vendor |
| 5 | Regulatory | iw reg get | Country code with frequency ranges listed | wireless-regdb missing, or country not set |
| 6 | Interface | ip link show wlp1s0 | Interface exists and can be brought up | UCI option path mismatch |
| 7 | RF path | iw dev wlp1s0 station dump | Per-chain signal within a few dB of each other | Connector, pigtail, or antenna |
Do not skip a row because you believe it is fine — a failure at row 5 is invisible until rows 1 through 4 pass. When a row fails, fix only that row and re-run from the top. Changing two variables at once makes the next failure ambiguous.
For a production run, capture the pass values from rows 3, 4, and 5 for every unit and store them against the serial number. The firmware version, the board file bmi_id, and the regulatory domain together define the radio’s legal and functional state. When a unit comes back from the field, comparing its recorded values against a known-good unit answers most questions before any hardware is touched — and it distinguishes a unit that was misconfigured in production from one that was altered in service.
Each of these is a case where the symptom points at the wrong layer.
The Direct firmware load for … firmware-6.bin failed with error -2 line appears on healthy systems. It means the driver tried the newest interface version, did not find it, and moved on. Reinstalling firmware packages in response to this line changes nothing, because the system is already working. The line to look for is the firmware ver line that follows.
A QCA9880 reads from QCA988X, not QCA9880. The same pattern applies across the family — the directory is the driver’s internal family name, and the only reliable way to learn it is to read the family name in the driver’s own log line, not to infer it from the marketing part number.
Installing kmod-ath10k-ct alongside stock firmware, or the reverse, produces a probe failure that reads like a corrupt firmware image. The two drivers are not interchangeable and the firmware packages are paired to them. If a system has both installed, remove one pair completely before diagnosing anything else.
Beyond the compliance problem, a permissive domain often makes things worse: it enables channels the module’s board data was never calibrated for, and the radio then transmits at a power the calibration does not support. The result is a link that looks strong on the client side and performs badly, which is harder to diagnose than a channel that simply refuses to come up.
No driver setting recovers a disconnected antenna, a mismatched connector, or an antenna inside a sealed metal box. Once rows 1 through 6 of the checklist pass, further driver work has no leverage — the remaining variables are physical.
Last reviewed 27 October 2026. Driver behaviour described here reflects mainline Linux ath10k and the OpenWrt 23.05 package set. Firmware file names and package names change between releases — verify against your own kernel log before acting on a specific path.