skip to content

Why can forged deauthentication or disassociation frames drop clients from a WPA2 network, and why does 802.11w PMF stop it?

level: middleimportance: must knowfreq 42%

answer

  1. availability, not decryption
  2. management frames older than the security
  3. a reason code only claims
  4. protected associations expect protected requests
  5. hostapd spells it ieee80211w

basics

~20 s

Legacy 802.11 management frames such as deauthentication and disassociation carry no authentication, so a frame claiming to come from the access point can end an association. PMF protects them, so a receiver that negotiated PMF ignores unprotected ones.

solid answer

~40 s

Before 802.11w, 802.11i protected data frames but not management frames, so a deauthentication or disassociation frame was accepted on its apparent sender alone (NIST SP 800-97). That makes it an **availability** threat: a stream of such frames keeps clients from staying connected, but the frames themselves reveal no key or passphrase and decrypt no traffic. With **Protected Management Frames (PMF)** a receiver that negotiated PMF does not act on an unprotected deauthentication or disassociation, so the lever is gone for those clients. In the Wi-Fi 7 era the Wi-Fi Alliance states PMF is required for all new certified devices, and hostapd's `ieee80211w` is 0 (disabled) by default, 1 optional, 2 required. PMF does not help against jamming or clients without PMF.

code

ini · 11 lines
ini
# hostapd.conf (hostapd's names, not the standard's)
ssid=corp-example
wpa=2

# Optional: PMF-capable clients are protected, others can still join
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
ieee80211w=1

# Required: clients that do not negotiate PMF cannot associate
#wpa_key_mgmt=WPA-PSK-SHA256
#ieee80211w=2

go deeper

for a junior

Recall that deauthentication floods are a denial-of-service threat and that PMF is the control that removes them.

for a middle

Explain that legacy management frames are unauthenticated, that encryption covered only data frames, and what hostapd's values 0, 1 and 2 of ieee80211w mean.

for a senior

Describe running optional against required on a mixed fleet, counting session terminations for alerts, and not trusting reason codes as origin.

for a principal

Decide the retirement path and exception policy for clients without PMF, as dated commitments rather than an open-ended optional setting.

## What is weak 802.11 management frames set up and tear down associations. Two of them end one: **deauthentication** (`IEEE80211_STYPE_DEAUTH`, 0x00C0 in the Linux definitions) and **disassociation** (`IEEE80211_STYPE_DISASSOC`, 0x00A0). Each carries a **reason code** such as 1 (`WLAN_REASON_UNSPECIFIED`), 3 (`WLAN_REASON_DEAUTH_LEAVING`) or 7 (`WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA`). NIST SP 800-97 states that 802.11i protects data frames and does not protect control or management frames, and that management frames are not authenticated, so a client can be deauthenticated or disassociated. The AP's encryption setting (CCMP, for example) covers data frames and does nothing for these. ## Why it is an availability threat The frame ends a session; it does not reveal a key and does not let anyone read data. The damage is that clients repeatedly lose their association, reconnect, and may reselect another AP. NIST SP 800-153 treats denial of service as one of the active attack classes a WLAN should monitor. ## What PMF changes 802.11w, certified as **Protected Management Frames**, extends protection to management action frames. The Wi-Fi Alliance describes it as protection against eavesdropping and forging for unicast frames and against forging for multicast frames, and says it is required for all new certified devices; WPA3 networks require it. For this question the key point is the outcome: a receiver in a PMF association does not treat an unprotected deauthentication or disassociation as a valid request. The mechanism, including the SA Query procedure, the integrity protocol and the group key, is covered with protected management frames in the transition-mode material. ## What the operator sets Written in hostapd's spelling, `ieee80211w` has three values: | hostapd value | Meaning | Who is protected | |---|---|---| | `0` | Disabled (hostapd's default) | Nobody | | `1` | Optional | Clients that negotiate PMF | | `2` | Required | All clients; those without PMF cannot associate | Choosing `2` costs compatibility with older devices, so many estates run optional while they retire or isolate non-PMF clients, and move to required afterwards. `2` paired with SAE is the WPA3-Personal-only configuration that hostapd.conf documents. ## What PMF leaves open - **Clients that did not negotiate PMF** under the optional setting remain exposed. - **Jamming and flooding at the radio level.** NIST SP 800-97 states that the 802.11 standard offers no defence against them; PMF protects the authenticity of management frames, not the channel. - **Beacon authenticity** is a separate feature. hostapd's `beacon_prot` is 0 (disabled) by default and depends on `ieee80211w` not being 0. ## How it is noticed NIST SP 800-153 section 3.3 says many denial-of-service attacks are detected by counting events in a period; a large number of terminated WLAN sessions can indicate one. Three limits apply to what monitoring can conclude: 1. A count shows that sessions ended, not who sent the frames. 2. The reason code is whatever the frame claims; it is not evidence of origin. 3. On a PMF-required SSID, forged frames of this kind are not acted on, so a spike there points to something other than this lever. ## Design or implementation, client or access point The gap is in the **design** of legacy 802.11: management frames were never authenticated, so every conforming implementation of the old standard shared it. The fix is an **amendment** (802.11w) plus implementations on both sides. PMF is negotiated per association, so an access point that supports it protects only clients that also support and negotiate it, and a PMF-capable client on an AP that has it disabled gets nothing. Both sides must change, and the Wi-Fi Alliance certification programme is what pushed new devices there. ## Migrating a mixed fleet 1. Measure which client models associate without PMF, from association data. 2. Put those devices on a separate SSID, or set the main SSID to optional while the list shrinks. 3. Set a retirement date for each exception and record the owner. 4. Move the main SSID to required and watch association failures for the first week. ## Decision checklist 1. Which clients lack PMF, and can they be isolated on their own SSID? 2. Is `ieee80211w` optional or required on each SSID, and what is the retirement date for the exceptions? 3. Does monitoring alert on session-termination counts per AP?

  • A site keeps hostapd's ieee80211w at 1 for old scanners; what stays exposed and what are the options?
    Clients that do not negotiate PMF stay exposed to forged deauthentication, while PMF-capable ones are protected. Options are to move the non-PMF devices to their own SSID and require PMF on the main one, or to set a retirement date for them. The cost is compatibility, not security of the PMF clients.
  • Does requiring PMF fix a complaint that the WLAN is unusable on one floor?
    Only if the cause was forged deauthentication. NIST SP 800-97 states the 802.11 standard offers no defence against jamming or flooding, and an interference source is unaffected by PMF. Diagnose first by comparing session-termination events with retry rates and the noise floor.
  • What does a monitoring alert on session terminations let you conclude?
    That a denial-of-service condition is possible and worth investigating, because NIST describes counting terminations against a threshold. It does not identify the sender, and a reason code cannot be trusted as evidence of origin on a network without PMF.

  • Thinks a deauthentication flood reveals the passphrase or decrypts traffic
  • Says WPA2 AES encryption already protects deauthentication frames
  • Treats PMF as a fix for jamming or radio-level flooding
  • Reads the reason code in a flood as proof of which device sent it
  • Assumes ieee80211w=1 protects every client on the SSID
  • Believes hostapd enables PMF by default

Assumes Wi-Fi 7 (802.11be) certification: the Wi-Fi Alliance states PMF is required for all new certified devices and that WPA3 networks require it; older installed devices may lack PMF.