[ DOTSTAR_SYSTEMS ]

blog article

Wi-Fi 8 Is Already in Linux. Mismatched Drafts Quietly Turn It Back Into Wi-Fi 7.

IEEE 802.11bn (Wi-Fi 8, "UHR") won't be a standard until 2028, but mac80211, cfg80211, iwlwifi, mac80211_hwsim and hostapd have been implementing its drafts all year, and Linux 7.4, the likely LTS kernel, ships the D1.5 layout. I brought up UHR links with no radio and found that a D1.5 client meeting a D1.4 hostapd doesn't fail. It quietly connects as Wi-Fi 7. Here's the byte-level cause, the full draft matrix, and a script to reproduce it.

Wi-Fi 8 Is Already in Linux. Mismatched Drafts Quietly Turn It Back Into Wi-Fi 7.

TL;DR: Wi-Fi 8 (IEEE 802.11bn, “UHR” in the code) won’t be a standard until 2028, but the Linux kernel and hostapd already implement its drafts, and each moves to a new draft on its own schedule. I wanted to know what happens when they disagree, so I ran hostap’s UHR tests against today’s wireless-next with mac80211_hwsim in User-Mode Linux, with no radio. One mismatch fails loudly: the AP won’t start. The other doesn’t fail at all. A kernel at draft D1.5, which is what Linux 7.4 (the likely LTS) ships, finds the UHR Capabilities element from a D1.4 hostapd two bytes too short, drops it and connects as Wi-Fi 7. A production kernel logs nothing. Today that only affects hostapd built from git between May and October with 802.11bn enabled, but the same kind of break comes with every draft step until 2028. uhr-lab.sh reproduces it in about ten minutes, and I’ve sent two patches so the kernel says why it dropped UHR.

Wi-Fi 8 is already in your kernel

The IEEE 802.11bn task group isn’t expected to finish until 2028, and the Wi-Fi Alliance certification program is expected around CES 2028. None of that has stopped the code. Intel and Broadcom showed 802.11bn interoperability at the end of October. They called it an engineering demonstration, not certification. Module vendors already have Wi-Fi 8 roadmaps. Meanwhile, Johannes Berg and others have been putting UHR into the Linux wireless stack one draft at a time:

WhenWhereWhat landed
Linux 7.0 merge windowcfg80211, mac80211Initial UHR support: make UHR connections, accept UHR clients
Linux 7.1mac80211_hwsimBasic UHR (ELR only, “since the spec isn’t really all that well-specified yet”)
Linux 7.2mac80211, hwsim, iwlwifiNPCA and DBE parsing, iwlwifi advertising UHR “for such devices”, and UHR only with MLO
May 2026hostapd, wpa_supplicantUHR AP and STA support against “IEEE P802.11bn/D1.4”, CONFIG_IEEE80211BN
2 Oct 2026hostapUHR: Update to IEEE P802.11bn/D1.5
Linux 7.4everything abovewifi: update UHR to Draft_P802.11bn D1.5, UHR Co-BF and sniffer support in iwlwifi
wireless-next nowmac80211UHR parameter updates, non-MLO stations limited to EHT

If you haven’t followed the task group, here is what the acronyms mean. ELR is enhanced long range. NPCA (non-primary channel access) lets a station keep transmitting on a secondary channel while the primary is busy. DBE (dynamic bandwidth expansion) lets an AP serve some clients on a wider channel than its BSS normally uses. DPS is dynamic power save. Co-BF is coordinated beamforming across APs. The theme of Wi-Fi 8 is reliability, not peak rate. The headline throughput number is the same as Wi-Fi 7.

One kernel design decision matters for everything below. UHR requires multi-link operation (MLO), and the reason is mechanical, not a policy choice. As the commit puts it, the client can’t follow the AP’s BSS parameter changes otherwise, “since the Critical Update Counter is inside the Multi-Link Element.” So every UHR connection in this post is an MLO connection, and a non-MLO client is held to EHT on purpose.

All of this tracks a draft. The table shows the kernel and hostap each moving from D1.4 to D1.5, but in different months and in different trees. On a real product the kernel comes from the BSP and hostapd from whatever snapshot the vendor picked, so nothing forces them onto the same draft.

The experiment: two drafts, no radio

The question was simple: if you build Wi-Fi 8 on Linux today, do the kernel and hostapd agree on what Wi-Fi 8 is, and if they don’t, how would you find out?

hostap has shipped UHR tests since the summer. There are five cases: a plain SAE link, an AP that requires UHR, a single-link MLD, and DBE at 80 MHz used and unused. They run against mac80211_hwsim inside User-Mode Linux, so the whole thing, AP and client, runs on a laptop.

I built today’s wireless-next (24 November) as a UML kernel, built hostapd and wpa_supplicant from hostap, and ran the suite. Three of the five tests failed:

FAIL uhr_simple
PASS uhr_required_not_supported
FAIL uhr_mld_sae_single_link
FAIL uhr_5ghz_dbe_80
PASS uhr_5ghz_dbe_80_not_used

My hostap tree turned out to be from late September, and updating it made all five pass. Testing hostap’s D1.5 update against its parent isolates it to that one commit: three failures on the parent, all five passing on the commit itself. Then I built the kernel at the parent of its D1.5 commit and ran the same two hostap builds. That gives the whole matrix:

hostapd at D1.4hostapd at D1.5
kernel at D1.4 (7.2/7.3 layout)UHR, 5/5 passAP won’t start, 0/5
kernel at D1.5 (7.4+)Associates as Wi-Fi 7, 2/5 passUHR, 5/5 pass

The D1.4 kernel row is wireless-next at the commit just before the kernel’s D1.5 update, not a released 7.2 or 7.3 tag, so treat that label as the element layout rather than a tested release. The D1.5 row is wireless-next as of 24 November.

The top-right cell fails loudly. A D1.5 hostapd hands the old kernel a 2-byte UHR Operation element, and the D1.4 size check wants at least 6, so nl80211 refuses the beacon configuration:

nl80211: Beacon set failed: -22 (Invalid argument)
Interface initialization failed

You’ll find that one the first time you bring up the AP. The bottom-left cell is the one that hurts, so the rest of this post is about it.

Why the client falls back to Wi-Fi 7

Here is the UHR Capabilities element (Element ID Extension 152) that the AP sends in its probe response, as captured on hwsim0 in both runs:

        MAC caps           PHY caps        DBE params
D1.4:   10 04 00 00 00 00  c0 00 00 00 00  02
D1.5:   10 04 00 00 00 00  c0 00 00 00 00  02 00 00
           ^^                                 ^^ ^^
           0x04 = DBE supported               switch time,
                                              mode change
                                              (new in D1.5)
D1.5 kernel, AP with DBE supported:
  needs 6 + 5 + 3 = 14 bytes
  gets         12 bytes  -> element dropped,
                            AP treated as EHT
The same AP, two drafts. D1.5 grew the DBE Capability Parameters field from one byte to three. A D1.5 client sees the D1.4 element as too short and discards the whole thing.

mac80211_hwsim claims DBE support, so hostapd adds the DBE Capability Parameters field. In D1.4 that field was one byte. D1.5 added a maximum switch time period and a mode change interval, so it is now three. The D1.5 kernel’s ieee80211_uhr_capa_size_ok() sees the DBE-supported bit, asks for three bytes, gets one, and returns false. The parser doesn’t store the element. When mac80211 decides how to talk to this AP, it has a UHR Operation element but no UHR Capabilities from a non-beacon frame, so it settles on EHT. The UHR Operation element changed too (D1.5 removed the 4-byte Basic UHR-MCS and NSS Set), but a too-long element passes the size check. The capabilities field is what trips it here.

What happens next depends on how the AP is configured. The determined AP ... to be EHT lines below are debug messages that only exist with CONFIG_MAC80211_MLME_DEBUG=y. hostap’s test kernel config turns that on and distribution kernels don’t.

  • The AP requires UHR (require_uhr=1, advertised as BSS membership selector 120). The client refuses, with a message that points you at basic rates:

    wlan8: [link 0] determined AP 02:00:00:1d:54:79 to be EHT
    wlan8: [link 0] required basic rate or BSS membership selectors not supported or disabled, rejecting connection
  • The AP doesn’t require UHR, which is how almost every real deployment will run during the transition. The client connects, and everything looks fine. On a production kernel only the second line appears:

    wlan8: [link 0] determined AP 02:00:00:f0:e9:eb to be EHT
    wlan8: associated

That second case is the problem. Both sides advertise Wi-Fi 8, the link works, and throughput looks like good Wi-Fi 7. Unless a test explicitly asserts the connection mode, as hostap’s suite does by checking wifi_generation=8 on the client and the [UHR] station flag on the AP, nothing tells you the feature you’re shipping isn’t in use. A patch to make the kernel say so is below.

Who is affected, and why it will happen again

This is not a bug in either project. Pre-standard code is supposed to follow the draft, and both projects did, about two months apart.

  • Today the exposure is narrow. No released hostapd has UHR, and CONFIG_IEEE80211BN isn’t in hostapd’s or wpa_supplicant’s defconfig. You hit this exact pairing only with hostap built from git between 29 May and 2 October, with 802.11bn switched on, and a 7.4-era kernel. In practice that means the chipset, module and AP vendors and the test labs bringing up Wi-Fi 8 right now.
  • The kernel and the supplicant move on different schedules. The draft that mac80211 speaks comes from the kernel version. The draft that hostapd speaks comes from the hostap snapshot. BSPs and SDKs routinely pair a new kernel with an older hostap, and the reverse.
  • Linux 7.4 freezes D1.5. If 7.4 becomes the LTS kernel as expected, it will carry D1.5 parsing for years, while Wi-Fi 8 silicon and APs follow D2.x and then the final standard. Treat the UHR code in an LTS kernel as a snapshot, not a stable feature, and plan the backports, or expect the same kind of mismatch against every newer AP.
  • The drafts keep moving. hostap already has 802.11bn security profile definitions taken from D2.0. Firmware-offloaded designs, where the element layout lives in vendor firmware rather than the kernel, will make the next break harder to see.
  • “Connected” isn’t a test result. A Wi-Fi 8 interop test that stops at association passes the bottom-left cell. The useful assertion is the negotiated mode, on both ends.

Making the downgrade visible upstream

The obvious “fix” would be to make the kernel accept both layouts. I didn’t send that, and I don’t think it should go in. Until 802.11bn is final, the kernel and hostap track the latest draft and make no promises to older ones. They did the same through the Wi-Fi 7 drafts. Code that parses D1.4 elements would be dead the day D2.0 moves a field again, and the right answer to a D1.4 hostapd is to update it.

What can be fixed is the silence. Both failure cells in the matrix are hard to diagnose for the same reason: an element fails a size check and nothing says why. In the silent cell, a production kernel prints nothing at all. I sent a two-patch series to linux-wireless against today’s wireless-next:

  • nl80211: report why UHR capabilities or operation are invalid. The two UHR attribute validators returned -EINVAL without an extack message. On a D1.4 kernel, D1.5 hostapd now gets told what it got wrong:

    wlan3: nl80211: kernel reports: malformed UHR operation
    nl80211: Beacon set failed: -22 (Invalid argument)
  • mac80211: log when an AP’s UHR elements are dropped. The parser already records that an AP advertised UHR even when its elements fail the size checks, so mac80211 can tell “not a UHR AP” from “a UHR AP whose elements I rejected”. With the patch, the silent cell prints one info-level line per association attempt (the determined AP line after it is still debug-only):

    wlan8: AP UHR capabilities missing or invalid, drop UHR
    wlan8: [link 0] determined AP 02:00:00:8f:94:49 to be EHT
    wlan8: associated

I tested both with the same hwsim setup. With matching drafts, all five test_uhr.py cases still pass and neither message appears. The patches are under review, not merged. Until they land, and on any 7.4 kernel without them, the downgrade stays silent, so the checks below still apply.

What to do if you’re building Wi-Fi 8 products now

  1. Pin the 802.11bn draft per component. Write down which draft the kernel, hostapd and wpa_supplicant, and any offload firmware speak, and treat a mismatch as a release blocker, not a footnote.
  2. Test the matrix, not just the diagonal. Run the client from one draft against the AP from the other. The failure that matters only appears off the diagonal.
  3. Assert the mode. Check wifi_generation=8 in wpa_supplicant STATUS and the [UHR] flag in hostapd’s STA output, which is what hostap’s own tests do. Fail the test if the client reports 7.
  4. Don’t count on the kernel log. On a production kernel the downgrade is silent. The determined AP ... to be EHT line needs CONFIG_MAC80211_MLME_DEBUG. If the patch above lands, look for drop UHR instead. Until then, wpa_cli status on the client is the reliable check.
  5. Use hwsim before silicon. Every result in this post came from a laptop with no Wi-Fi hardware. The same setup catches draft drift on every rebase.

Run it yourself

uhr-lab.sh builds a UML kernel from wireless-next, builds hostap’s test binaries, runs test_uhr.py, and then decodes the AP’s UHR elements from the capture and prints the kernel’s verdict on the AP. To see both sides of the hostap change:

curl -O https://dotstarsystems.com/uhr-lab.sh && chmod +x uhr-lab.sh
HOSTAP_REV=b81dcc8a59e2~1 ./uhr-lab.sh   # hostapd at D1.4: silent EHT
HOSTAP_REV=b81dcc8a59e2   ./uhr-lab.sh   # hostapd at D1.5: UHR

The output looks like this (D1.4 hostapd, D1.5 kernel):

== what the AP actually put on the air (uhr_simple, first probe response)
  UHR Capabilities: 12 bytes, UHR Operation: 6 bytes (after the Element ID Extension)
  -> D1.4 layout: Operation still carries the 4-byte Basic UHR-MCS and NSS Set
== kernel's view of the AP and the outcome (uhr_5ghz_dbe_80, first attempt)
  wlan8: [link 0] determined AP 02:00:00:f0:e9:eb to be EHT
  wlan8: associated

Point WN_DIR and HOSTAP_DIR at existing checkouts to skip the clones, and set WN_REV to try other kernels. Keep the work directory out of /tmp, because the UML guest mounts its own /tmp. The script checks for that.

A note on where this comes from: I maintain Zephyr’s Wi-Fi stack and its hostap integration and contribute to hostap upstream. This was my own testing on public trees, in a personal capacity, not work for a client or a statement from anyone I work with.

Where Dotstar fits

If you’re bringing up Wi-Fi 7 or pre-standard Wi-Fi 8 on Linux or Zephyr and want someone to check which drafts your stack actually speaks, that’s a Technical Audit: we map the kernel, supplicant and firmware versions, build the hwsim draft matrix for your exact combination, and tell you which pairings silently downgrade. If you want that matrix running in CI on every rebase, that’s an Engineering Sprint.

Book a Wi-Fi 8 readiness audit

Sources

Original post on LinkedIn →