Firmware & Connectivity

Wi-Fi on Real SoCs: Qualcomm First, and What Breaks on the Others

Wi-Fi works on the evaluation board and fails on your product. This note covers the Wi-Fi silicon we integrate (Qualcomm in depth, then Espressif, Nordic, Infineon/Cypress, NXP, MediaTek, Realtek and others), the classes of problem that actually cost projects time, and how we diagnose and fix them.

A Wi-Fi chip is never just a chip. It is silicon, a firmware blob you do not control, a host driver, a calibration and regulatory data set, an antenna, a power-delivery design, and a set of expectations from the product ("it must reconnect in a basement, on battery, next to a Bluetooth headset"). Most field failures sit in the gaps between those parts, which is why Wi-Fi bring-up is an firmware and hardware problem at the same time.

This note describes how Rivix Systems approaches Wi-Fi integration across SoC vendors. We focus on Qualcomm because its parts span the widest range, from low-power IoT Wi-Fi to Wi-Fi 6E and Wi-Fi 7 on embedded Linux, and because that range exposes most of the problem classes. It is a description of our method and of failure modes that are common in this industry. It is not a report on a named client, and it contains no client data or measured figures. Vendor SDKs, part numbers and feature sets change; always check the current vendor documentation and your NDA'd release notes.

The silicon landscape, and where each family bites

The same product requirement ("add Wi-Fi") lands very differently depending on the family. This is the map we start from:

VendorTypical parts and roleSoftware modelWhere projects usually hurt
QualcommIoT Wi-Fi/BLE parts such as QCA4020 and the low-power QCC730; Wi-Fi 5/6/6E/7 PCIe, SDIO and SoC-integrated radios (QCA, WCN, QCN families; IPQ networking SoCs)RTOS SDK with vendor APIs on the IoT parts; ath10k, ath11k, ath12k on Linux with firmware and board data files; vendor stacks on Android and networking platformsBoard data and regulatory mismatches, firmware crashes and recovery, PCIe and power-management interaction, coexistence, throughput tuning, vendor-SDK-to-upstream drift
EspressifESP32 family (Wi-Fi + BLE on one chip)ESP-IDF on FreeRTOSShared 2.4 GHz radio between Wi-Fi and Bluetooth, memory pressure from the Wi-Fi stack, power-save behavior, provisioning flows
NordicnRF70 Series Wi-Fi 6 companion ICs alongside nRF Bluetooth SoCsnRF Connect SDK on ZephyrHost-to-companion bus bring-up, power sequencing, low-power Wi-Fi duty cycling next to BLE
Infineon (Cypress)CYW43xxx combo parts, widely used via Murata and other modulesVendor stacks (ModusToolbox/WICED lineage), or Linux brcmfmac with firmware and CLM blobsFirmware/NVRAM/CLM file matching per module, SDIO signal integrity, regulatory (CLM) data
NXPWi-Fi/BT combo chips, commonly delivered as modulesLinux mwifiex or NXP's out-of-tree driver; RTOS SDK on MCUsDriver and firmware version pairing, SDIO/PCIe bring-up, module vendor patches
MediaTekFilogic networking SoCs, MT79xx client/AP chipsLinux mt76 (upstream) and OpenWrt; vendor SDKs for routers and CPEUpstream versus vendor-SDK feature gaps, DFS and mesh behavior, hardware offload
RealtekLow-cost client chips and MCU-class Wi-Fi partsLinux rtw88/rtw89 or out-of-tree vendor drivers; vendor RTOS SDKsOut-of-tree driver quality, kernel-version porting, power-save and roaming quirks
OthersSilicon Labs, Texas Instruments, Microchip, Renesas and moreVendor SDKs, often host-MCU plus network co-processorCo-processor AT or host-interface protocols, provisioning, certification scope

Why Wi-Fi integration fails: five layers

Whatever the vendor, we sort every symptom into one of five layers before touching code. Most wasted weeks come from debugging the wrong layer.

  1. RF and hardware. Antenna match and placement, ground and shielding, supply noise and transient response, module orientation, clock quality.
  2. Platform data. Calibration and board data, regulatory tables, country code, per-board transmit-power limits, module and variant identification.
  3. Firmware and driver. The vendor firmware version, the host driver, and the pairing between them; boot, recovery and crash behavior.
  4. Host system. The bus (PCIe, SDIO, SPI, SoC-internal), interrupts, DMA, power management, device tree, kernel or RTOS configuration.
  5. Network and application. Roaming, DHCP and DNS behavior, power save and DTIM, TCP behavior, retry logic, the access points actually deployed.
Our Wi-Fi bring-up process

Six steps, each ending in something reviewable.

The order matters: we establish that the radio is healthy before we trust any software-level measurement.

01

Silicon and SDK fit

Confirm the part, SDK and kernel line meet the product requirements

02

Hardware review

Antenna, power, bus and layout checked before first boot

03

Bring-up

Firmware loads, scans, associates, passes traffic

04

Platform data

Board data, regulatory and power tables for your hardware

05

Stress and coexistence

Range, roaming, power, Bluetooth, soak and crash recovery

06

Certify and hand over

Pre-compliance, logs, runbooks, regression tests

Qualcomm in depth

Qualcomm's Wi-Fi portfolio is really three different engineering worlds. Choosing the wrong mental model for the one you are in is the first mistake.

World 1: IoT Wi-Fi on an RTOS (QCA4020, QCC730 class)

These parts target battery and cost-constrained devices. The Wi-Fi stack lives in the vendor SDK, applications call vendor APIs, and the host often shares a chip or a tightly coupled processor with the radio. The hard problems here are about budgets, not drivers:

  • Power. A device that associates fine but drains a battery has usually lost its sleep schedule: it is waking for every beacon, missing the DTIM interval it negotiated, keeping the radio on while the application polls, or reconnecting with a full scan after every drop. We profile current against a state timeline (sleep, wake for beacon, TX, RX, reconnect) and fix the scheduler, the listen interval, the application's traffic pattern and the reconnect strategy (cached channel and BSSID, bounded scan) rather than just "enabling power save".
  • Memory and task budget. The Wi-Fi, TCP/IP and TLS stacks compete with the application for RAM. We measure heap high-water marks through a full connect, TLS handshake and OTA cycle, and tune buffer pools and task priorities until the worst case fits with margin.
  • Multi-protocol coexistence. Where Wi-Fi shares a radio front end or an antenna with Bluetooth Low Energy or 802.15.4, arbitration decides who loses. We test the worst combined load (BLE connection events during a Wi-Fi TLS handshake) rather than each protocol alone.
  • Provisioning and recovery. First-time credentials, credential change, an unreachable access point and a captive portal each need a defined behavior and a way out that does not need a truck roll.

World 2: Wi-Fi 5/6/6E/7 on embedded Linux (ath10k, ath11k, ath12k)

For gateways, cameras, industrial and automotive-adjacent computers, and access points, Qualcomm radios are commonly attached over PCIe (or SDIO and SoC-internal buses on some parts) and driven by the in-kernel ath10k, ath11k and ath12k drivers. The driver is only the host half: each radio runs a firmware image that you load at boot, and the pair is version-sensitive. This is where we spend most of our Qualcomm time. The recurring problem classes, and what we do about them:

SymptomUsual root causeHow we diagnose and fix it
Radio does not probe, or probes with no usable channelsFirmware or board data file missing, wrong or not matched to the board; device tree or PCIe resource problemRead the driver's probe and firmware-load messages, confirm which firmware and board-data entry was selected for the board and chip identifiers, and add or correct the board data entry for your hardware rather than borrowing a reference one
Association works, but TX power is low or channels are missingRegulatory domain not set as intended; board-level power limits absent or from a different designVerify country code flow end to end (firmware, regulatory database, user space); work with the module or board vendor on a board data file calibrated for your antenna and front end; confirm in a shielded setup, not only in the lab
Firmware crash, then no network until rebootFirmware assertion, bus error, host-side mistake (memory, power sequencing) or an unsupported feature combinationCapture the crash dump (kernel device-coredump mechanisms), check whether firmware recovery restores a working state, and bisect: firmware version, feature flags, power-save settings, traffic pattern. Make recovery a tested path: after a crash, the connection manager must reassociate unattended
Link drops when the system suspends or idlesPCIe link power states (ASPM, L1 sub-states) or runtime power management interacting badly with the platform's root complex; wake-on-WLAN misconfiguredTest with link power states constrained to find the culprit, then apply the narrowest fix that keeps the power budget: a platform quirk, root-complex configuration, or a tuned runtime-PM policy. Validate suspend/resume in a loop, not once
Throughput far below the PHY rateHost bottleneck (single-core interrupt handling, NAPI and softirq limits, copy overhead), TCP window, retries from interference, antenna imbalanceSeparate radio from host: look at PHY rate and retry counters first, then CPU per core and interrupt affinity during iperf3-style runs, then TCP. Fix the bottleneck that the data points to; on networking SoCs, check whether the vendor's hardware offload path is available and compatible with your firewall and QoS needs
Wi-Fi works until Bluetooth audio startsCoexistence arbitration on combo parts sharing 2.4 GHz and sometimes an antenna; a missing coex configuration; poor isolationReproduce with a scripted A2DP or BLE load, read coexistence statistics, tune priority and traffic shaping, and push isolation fixes back to the hardware design if the problem is physical
6 GHz not appearing or limitedRegional rules (low-power indoor versus standard power and the associated coordination requirements), firmware or regulatory database support, AP mode versus client mode differencesCheck the regulatory database version and the firmware's reported capabilities before blaming RF; confirm the intended operating class for your market with your compliance lead
AP mode: clients flap, DFS channel changes surprise usersRadar-detection behavior, beacon and power-save handling for many clients, hostapd configurationLog hostapd and driver events together, tune beacon interval, DTIM and group-key handling, and decide a DFS policy deliberately instead of accepting the defaults
Works on the vendor kernel, breaks on a newer one (or the reverse)Vendor BSP kernel carries patches that upstream lacks, or firmware requires a newer driverPin a tested firmware-and-driver pair, and track the delta between the vendor tree and upstream. Where a long product life is expected, we plan the upgrade path up front

The firmware and board data discipline

The single habit that prevents the most Qualcomm Linux problems is treating firmware, board data and the regulatory database as versioned product artifacts, not files that happen to be in /lib/firmware. In practice that means:

  • the exact firmware and board-data files are in your image build, checksummed and recorded in the release notes;
  • a boot-time check logs which firmware, board entry and regulatory data were actually loaded, so a field unit's logs tell you the truth;
  • an OTA update changes firmware, driver and board data together, and can roll back together;
  • any module or antenna change triggers a re-validation of the board data, not just a regression run.

A typical first look at a misbehaving unit uses standard tools. The commands are generic Linux tooling, not Qualcomm-specific:

# Which driver and firmware actually loaded?
dmesg | grep -iE 'ath1[012]k|firmware|board|regdomain'

# Regulatory state and what the radio thinks it may do
iw reg get
iw phy | less          # supported bands, rates, per-channel flags

# Link quality while it is misbehaving
iw dev wlan0 link
iw dev wlan0 station dump     # signal, tx/rx rates, retries, failures

# Radio versus host: is the air the problem or the CPU?
iperf3 -c <server> -P 4 -t 60
mpstat -P ALL 1               # one saturated core usually means a host bottleneck
cat /proc/interrupts | grep -i wlan

World 3: Android, mobile and vendor networking stacks

On Android-class and networking-platform builds, Wi-Fi arrives through a vendor-supplied stack (framework, HAL, a vendor driver and its configuration files) that you customize rather than own. Our work here is mostly configuration and behavior: per-region and per-SKU configuration files, roaming and band-steering parameters, power-save policy, connectivity-framework settings for captive portals and no-internet networks, and getting vendor patches to survive an OS upgrade. We keep customizations as small, documented overlays so they can be re-applied to each vendor drop.

Cross-cutting Qualcomm lessons

  • The firmware is a black box with a log. We always find out how to capture its logs and crash dumps before we need them, because on a field unit after a failure it is too late to learn.
  • Reference-board results do not transfer. The reference design has tuned antennas, a clean supply and a calibrated board data file. Your product has none of those until you do the work.
  • Pair versions. Many "driver bugs" are firmware and driver being a version apart. Fix the pair, then test.
  • Treat regulatory as a feature. Country code, DFS and 6 GHz rules are behavior your product must get right for each market it ships in.

The other vendors: what we watch for

Espressif (ESP32 family)

ESP32 parts are popular because Wi-Fi and Bluetooth come on one inexpensive chip with a mature SDK. The classic traps: Wi-Fi and Bluetooth share the 2.4 GHz radio, so heavy BLE traffic and heavy Wi-Fi traffic degrade each other and need coexistence settings validated under combined load; the Wi-Fi stack's RAM use can starve the application, so buffer counts and task stacks need measuring; the ADC unit that shares resources with the radio is unusable while Wi-Fi runs on some variants, which matters for sensor designs; and modem sleep and light sleep need tuning against the access point's DTIM behavior. We also design the provisioning and reconnect state machine deliberately, since defaults rarely match a product's failure cases.

Nordic (nRF70 Series)

Nordic's Wi-Fi 6 companion ICs pair with its Bluetooth SoCs and are driven from the nRF Connect SDK. The issues we focus on are the host-to-companion interface (signal integrity, power sequencing, bring-up order), power behavior when Wi-Fi is mostly off and woken for bursts, and the interplay with BLE so that provisioning over Bluetooth hands cleanly to Wi-Fi operation.

Infineon / Cypress and NXP (module-based combos)

These parts mostly reach products as certified modules from partners such as Murata. The recurring Linux and RTOS problem is file matching: firmware, NVRAM or configuration, and regulatory (CLM) data must correspond to the exact module variant, and a file that "mostly works" from another module can silently cost range or violate regulatory limits. The second is SDIO: marginal clocking, level shifting or pull-ups produce intermittent timeouts that look like firmware bugs. We validate the bus at the intended speed across temperature and supply tolerance before trusting higher-level tests.

MediaTek and Realtek

MediaTek's Filogic parts are common in routers, CPE and gateways, where the upstream mt76 driver, OpenWrt and the vendor SDK coexist and differ in features and offload. Realtek parts are often cost-driven and sometimes depend on out-of-tree drivers of varying quality. In both cases the questions are the same: which driver tree will you ship, who maintains it, how does it port to your kernel version, and does it cover the features you promise (mesh, DFS, WPA3, offload) as opposed to the features its datasheet lists. We make that decision explicitly at the start, because it is expensive to reverse.

Problems that cut across every vendor

ProblemWhat actually goes wrongWhat we do
Roaming and sticky clientsThe device clings to a distant access point, or roams too eagerly and drops trafficTune scan and roam triggers against the real deployment's AP vendor and 802.11k/v/r support; test with a walk-through, not a bench
Power save versus latencyAggressive power save delays packets until the next DTIM; no power save drains the batterySet policy per product mode (idle, streaming, alert) and test against several access point brands
WPA3, enterprise and odd networksConnects at home, fails on a corporate or hotel network (802.1X, captive portals, transition modes, hidden SSIDs)Build a test network matrix covering the security modes you claim, and a defined behavior for captive and no-internet networks
Reconnect stormsAfter an outage every device scans and associates at once, overloading the AP and the cloudBackoff with jitter on the device, bounded scans, cached channel and BSSID. See performance testing for the backend half
Antenna and enclosureRange and throughput collapse once the real enclosure, battery and cabling are addedReview placement early, measure in the final enclosure, and iterate the antenna match before software tuning
Regulatory and certificationLate discovery that a channel, power level or DFS behavior is not compliant for a target marketPre-compliance runs, a per-market configuration table, and a documented test plan before the lab visit
OTA of the radio stackUpdating firmware or a driver bricks connectivity, so the unit cannot fetch its own fixA/B or rollback-capable updates, and a connectivity health check that triggers automatic revert. See device identity and provisioning

How we diagnose, in practice

The toolkit is deliberately boring, because boring tools are repeatable:

  • Over-the-air capture. A monitor-mode adapter and Wireshark to see what is really on the air: association exchanges, retries, rate behavior, power-save bits, deauthentication reasons. Many "firmware bugs" are visible here as an access point rejecting the device.
  • Driver and firmware logs. Kernel logs, driver debug facilities and vendor firmware logs correlated by timestamp with the capture.
  • Controlled RF. Shielded enclosures and variable attenuators for repeatable range and roaming tests, so a result does not depend on who walked past the bench.
  • Current profiling. A power analyzer synchronized with logs for any battery device, so energy is explained by state, not guessed.
  • Spectrum view. A spectrum analyzer when interference, harmonics from a switching regulator, or coexistence with another radio is suspected.
  • Soak and fault injection. Long runs with repeated suspend/resume, AP reboot, DHCP loss, forced firmware crash and power-cycle, with the pass criterion that the device recovers unattended.

Across these, the discipline is the same as in our other work: reproduce first, change one variable at a time, and close a finding with a re-measurement. AI tooling helps us read large logs, correlate captures with driver traces and draft test scripts faster; engineers decide what the evidence means. How we divide that work is described on The AI/Human Split.

An illustrative walkthrough

This is a composite of how engagements of this kind are run, not a report on one named client. It contains no client data or measured figures.

Imagine a gateway on embedded Linux with a Qualcomm Wi-Fi 6E module over PCIe, intended for homes and small offices. The prototype works on the bench. We would proceed like this:

  • Before layout freeze: review the antenna plan, module placement, supply design and PCIe routing, and confirm the vendor SDK, kernel line and firmware version support the features in the product spec (6 GHz client and AP roles, WPA3, the offload path).
  • Bring-up: get the firmware and board data loading from a reproducible image; log what was selected; verify scan, association and traffic on both bands.
  • Platform data: produce and validate board data for the actual antenna and front end, and put the per-market regulatory behavior in a table that the product configuration drives.
  • Stability: loop suspend/resume and AP reboot; inject firmware crashes and confirm unattended recovery; trace any PCIe power-state sensitivity to a narrow fix.
  • Performance: separate radio limits from host limits, tune interrupt and queue handling, and confirm behavior with a mixed fleet of client devices.
  • Coexistence and roaming: test Bluetooth peripherals alongside, and a walk-through on a multi-AP network.
  • Handover: versioned firmware and board-data artifacts, an automated regression suite, pre-compliance results, and a runbook for field diagnosis.

To see how we approach complete products rather than isolated debugging, our proof of work pages show the devices, platforms and apps we have built.

How to judge any Wi-Fi integration claim

  1. Which exact firmware, driver and board data were tested, and are they the ones shipping?
  2. Was it tested in the final enclosure with the final antenna, not just on a reference board?
  3. Is the regulatory behavior defined per market, and was it verified on the air?
  4. Does the device recover unattended from a firmware crash, an AP reboot and a suspend/resume loop?
  5. Was power measured by state on the real battery profile?
  6. Was coexistence tested under combined Wi-Fi and Bluetooth load?
  7. Was it tried against several access point brands and security modes, not one home router?
  8. Who maintains the driver tree after launch, and how does an update roll back?
What you receive

The deliverables of a Wi-Fi integration engagement.

Scoped to your silicon and product; we can take one layer or the whole path from schematic to certification.

Silicon and SDK recommendation

A reasoned choice of part, module and driver tree against your power, range, cost and lifetime needs.

Hardware and RF review

Findings on antenna, power, bus and layout, with fixes ranked before they become respins.

Working stack

Firmware, driver, board data and configuration building reproducibly from your repository.

Findings with evidence

Each issue with captures, logs and traces, a probable cause, a fix and a before-and-after measurement.

Regression suite

Scripted soak, recovery, roaming and coexistence tests your team can run on every release.

Runbook and handover

How to capture field logs, read them, update the radio stack safely and roll back.

Common questions

Which Qualcomm families do you work with?

We work across the IoT Wi-Fi/BLE parts on RTOS SDKs and the Wi-Fi 5/6/6E/7 parts on embedded Linux using the ath10k, ath11k and ath12k drivers. Access to some vendor SDKs and documents depends on NDAs and your own vendor relationship; we tell you up front what we can and cannot see.

Can you fix a firmware bug inside the Wi-Fi chip?

Usually no: radio firmware is vendor-supplied binary. What we do is isolate the trigger, find a host-side or configuration workaround, and write a reproducible report the vendor can act on. Many problems that look like firmware bugs turn out to be board data, power, bus or configuration issues, which we can fix.

Should we use a module or a chip-down design?

Modules shorten certification and de-risk RF, at higher unit cost and less control. Chip-down gives cost and control but puts RF layout, calibration and certification on you. We help you decide from your volume, schedule and team.

Do you handle certification?

We prepare for it with pre-compliance testing and a documented configuration per market, and we work with accredited labs for formal testing. The certification itself is issued by the labs and bodies for your target markets.

What does a Wi-Fi engagement cost and how long does it take?

It depends on the silicon, how far along the hardware is, and the number of markets. Tell us what you are building and we will scope it.

Let's build

Tell us what you're building — get a scoped plan back in days, not weeks.