On an 802.11 WLAN, one laptop sees the corp-example SSID but never gets an IP address; how do you find which join exchange failed?
answer
- three views of one MAC
- walk the sequence in order
- status code versus reason code
- teardown right after association
- joined but no DHCP offer
basics
~20 sWalk the join in order using AP logs, client logs or a capture: no probe response, a non-zero status in the authentication or association response, a teardown right after association during key setup, or a completed join with no DHCP reply.
solid answer
~50 sI would gather three views for the laptop's MAC address: the AP or controller log, the client's supplicant log and, if needed, an over-the-air capture. Then I walk the sequence. **No probe response or Authentication frame at all**: band, channel, signal or a stale profile that no longer matches the beacon's RSN element. **Authentication refused**: status 13 means the algorithm is not allowed, 17 that the AP has no room, and on hostapd status 1 can come from its MAC address list. **Association refused**: 31 when PMF is required and the laptop lacks it, 41 to 43 when its cipher or AKM is not offered, 1 for an unknown SSID. **Associated, then deauthenticated**: reason 15 (four-way handshake timeout) or 23 (802.1X failed) moves the case to credentials and keys. **All complete, no DHCP offer**: the fault is the VLAN or DHCP, not 802.11.
code
pseudocode · 13 linesfor station 02:00:00:00:00:01 on SSID corp-example:
if no Authentication frame from the station:
check band, channel, signal, saved profile vs beacon RSN element
elif Authentication response status != 0:
13 -> algorithm not enabled; 17 -> AP full; 1 -> allow/deny list
elif Association Response status != 0:
31 -> PMF required, not offered; 41/42/43 -> cipher or AKM not offered
elif Deauthentication soon after association:
reason 15 or 23 -> key exchange or 802.1X; hand to security checks
elif no DHCP offer after keys:
VLAN, DHCP scope or relay above the radio link
else:
joined; look beyond the WLANgo deeper
Recall the order of the join and that each refusal carries a number: a status code in a response, a reason code in a teardown.
Explain how to read the authentication and association responses and which codes point to policy, capacity or security-suite mismatches.
Demonstrate the triage: three views of one MAC, find the last successful frame, name the stage, and hand the case to the right owner without guessing.
Turn repeated tickets into estate data: track refusal codes across APs so that policy changes such as PMF required show their client impact before users report it.
## Start from evidence, not from the radio "Sees the SSID, never gets an address" is one of the most common Wi-Fi tickets, and it can fail at any of four 802.11 stages or above them. The fastest route is to find the **last frame that succeeded**. Gather three views, all keyed by the laptop's MAC address (for example `02:00:00:00:00:01`): - **The AP or controller log** for that station: authentication and association attempts, status codes sent, teardowns and their reason codes. - **The client's log**: its supplicant or operating-system Wi-Fi log, which shows what it tried and what it received. - **An over-the-air capture** on the AP's channel when the two logs disagree or show nothing. How to set up the capture is covered with packet capture; reading it here needs only a few Wireshark fields: `wlan.addr` to isolate the laptop, `wlan.fixed.status_code`, `wlan.fixed.reason_code`, `wlan.fixed.auth.alg` and `wlan.ssid`. Before searching, ask which MAC address the laptop actually uses on this SSID: many client operating systems use a different, locally administered address per network, so logs searched by the hardware address can be empty. ## Walk the sequence | Last thing seen | What it means | Likely causes | Next step | |---|---|---|---| | No Authentication frame from the laptop | the client never chose this AP | band or channel the laptop cannot use, weak signal, saved profile whose security no longer matches the beacon's RSN element, AP not answering probes | compare the laptop's profile with the beacon; check signal and band support | | Authentication response, status not 0 | refused before association | 13, algorithm not supported; 17, AP cannot take another station; 1, generic refusal (hostapd's MAC address list refuses with it) | check which algorithms the SSID allows (hostapd's `auth_algs`), AP load, allow or deny lists | | Association Response, status not 0 | the AP rejected the station's terms | 31, PMF required and not supported; 41, 42 or 43, group cipher, pairwise cipher or AKM not offered; 1, unknown SSID | compare the RSN element in the request with the beacon's | | Deauthentication soon after association | the key stage failed | reason 15, four-way handshake timeout; reason 23, 802.1X authentication failed | hand over to the credential and key checks | | Join complete, no DHCP offer | 802.11 has finished | wrong VLAN, DHCP scope exhausted, relay missing | compare with a working client on the same SSID and AP | The difference between the two numbers matters: a **status code** is the answer in an Authentication or Association Response, while a **reason code** explains a Deauthentication or Disassociation. Mixing them up sends the investigation to the wrong stage. ## Codes worth recognising on sight - **Status 13** (`WLAN_STATUS_NOT_SUPPORTED_AUTH_ALG` in the Linux 802.11 headers): the client asked for an authentication algorithm the AP has not enabled, for instance a client still trying Shared Key authentication, which was retired with WEP and replaced by the key handshake after association. - **Status 17** (`WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA`): the AP is full. hostapd refuses at authentication once its station table reaches `max_num_sta`. - **Status 31** (`WLAN_STATUS_ROBUST_MGMT_FRAME_POLICY_VIOLATION`): PMF is required (hostapd's `ieee80211w=2`) and the laptop's RSN element does not offer it, for example a client whose driver predates PMF support. - **Status 43** (`WLAN_STATUS_INVALID_AKMP`): the laptop chose an authentication method the SSID does not accept, for example a stale profile after a security change. - **Reason 15** (`WLAN_REASON_4WAY_HANDSHAKE_TIMEOUT`) and **reason 23** (`WLAN_REASON_IEEE8021X_FAILED`): radio and association worked; the problem is credentials, certificates or keys, which the WLAN security material covers. ## Things that hide the real failure 1. **Silence on the AP.** If the laptop never sends an Authentication frame, the AP has nothing to log. The answer is on the client or in the air, not in the AP log. 2. **APs that stay quiet on purpose.** hostapd can ignore probes below a signal threshold (`rssi_ignore_probe_request`) or skip broadcast probe responses when full (`no_probe_resp_if_max_sta`). 3. **Client back-off.** After repeated failures many clients avoid an AP for a while, so the failure you reproduce may differ from the first one. 4. **"Connected, no internet."** An operating system that shows the network as connected has finished 802.11; the remaining fault is above the radio link. ## A worked trace 1. The capture shows probe requests and probe responses for `corp-example`: discovery works. 2. Authentication transaction 1 and transaction 2 with status 0: the laptop is authenticated. 3. Association Request, then an Association Response with status 31: the AP requires PMF and the laptop's RSN element does not offer it. 4. Fix: update the laptop's Wi-Fi driver, or, if the device cannot support PMF, decide deliberately where it may connect rather than weakening the SSID's policy for everyone.
- Why might the AP log show nothing at all for the laptop?If the laptop never sends an Authentication frame, the AP has no station entry to log. The client may not have found a usable BSS (a band or channel it cannot use, weak signal), may be applying a saved profile whose security no longer matches the beacon's RSN element, or may be avoiding this AP after earlier failures. The client log and a capture matter more than the AP log then.
- How do you separate an 802.11 failure from a DHCP failure when the laptop shows connected but has no address?If the AP lists the station as associated and the key handshake completed, 802.11 has finished. When DHCP discover messages leave the laptop and no offer returns, the fault is the VLAN the station landed in, the DHCP scope or the relay. Comparing with a working client on the same SSID and AP isolates it quickly.
- What does client MAC address randomisation change in this triage?Many client operating systems use a locally administered MAC address chosen per network. Logs searched by the hardware address show nothing, and an allow list keyed on it will not match; on hostapd, a MAC address list refusal arrives as authentication status 1. Ask which address the laptop uses for this SSID before searching.
- If the laptop sees the SSID, the radio side must be fine.
- Every join failure means the user typed the wrong password.
- Status codes and reason codes are interchangeable numbers.
- A deauthentication right after association always means interference.
- The AP log will always show why a client failed to join.