WiFi Deauthentication Reason Codes Explained (Complete Guide)

Rakesh Mukundan
Founder
, Spotipo
Logo of X, formerly TwitterLogo of Linkedin
Published on
August 17, 2026

Table Of Contents

  1. Text Link
  2. Text Link

Deauth Reason Codes: Debug WiFi Disconnect Issues Fast

When troubleshooting WiFi networks, one of the most confusing things administrators encounter are deauth reason codes. These codes are generated when a client device disconnects from an access point (AP) and are part of the IEEE 802.11 wireless standard.

Unfortunately, the official documentation can be difficult to track down, and much of the information online is outdated or incomplete. This guide provides a complete list of deauth reason codes with explanations to help you quickly understand what's happening on your network.

TL;DR: A deauthentication reason code is the number an access point reports when it disconnects a client. Code 4 means the client went idle. Code 5 means the AP is full. Codes 15 to 17 mean the WPA handshake failed. Codes 3 and 8 mean the client left on its own and nothing is wrong. The full table of every code is below.

Deauth reason codes are part of the IEEE 802.11 standard, but the official documentation is hard to find and most of what circulates online is incomplete or wrong. This page is the complete list, with what each code means in practice rather than what the specification calls it.

What Are Deauth Reason Codes?

Deauth reason codes (also called WiFi deauthentication reason codes) are numeric values returned by an AP when a client is disconnected. Each code corresponds to a specific cause, such as inactivity, failed authentication, or insufficient resources.

Common codes include 802.11 deauth reason code 7 (class 3 frame received from nonassociated station) and reason code 17 (disassociated due to inactivity).

These codes are critical for network engineers, IT admins, and support teams who need to debug connectivity issues. For example, knowing whether a disconnect happened due to inactivity or because the access point was overloaded can drastically change the troubleshooting approach.

The Five You Will Actually See

Code 4, disassociated due to inactivity. The client went quiet and the AP reclaimed the slot. Normal behaviour, and the most common code on any guest network. Only a problem if guests are being forced to log in again each time.

Code 5, AP cannot handle more clients. The access point is at capacity or load balancing is moving the client. This is a density problem, not a configuration one, and it appears at predictable times of day.

Code 15, 4-Way Handshake timeout. The WPA2 or WPA3 handshake did not complete. Usually a wrong passphrase, or a RADIUS server that did not answer in time.

Code 3 and Code 8, the client is leaving. These are sent by the device, not the AP. Code 3 is a manual disconnect or shutdown. Code 8 is roaming to a stronger signal. Neither indicates a fault, and both are frequently misread as errors.

Code 1, unspecified reason. The AP dropped the client and reported nothing useful. Correlate with timestamps from other clients: if several disconnect together, look at the AP rather than the devices.

Complete List of Deauth Reason Codes

802.11 deauthentication and disassociation reason codes

Complete reference
Authentication or encryption Capacity or QoS Normal behaviour Reserved
CodeReasonWhat it means in practice
0ReservedNot used. Normal operation, no disconnect reported.
1Unspecified reasonA catch-all. The AP dropped the client without reporting a specific cause.
2Previous authentication no longer validThe client is associated but its authentication has expired or been revoked.
3Deauthenticated because sending STA is leavingThe client is leaving the network. Usually a manual disconnect, WiFi toggled off, or device shutdown.
4Disassociated due to inactivityThe client went idle for longer than the AP's timeout. The most common code on guest networks.
5Disassociated because AP is unable to handle all associated STAsThe access point is at capacity, or load balancing is pushing the client elsewhere.
6Class 2 frame received from nonauthenticated STAThe client sent data before completing authentication.
7Class 3 frame received from nonassociated STAThe client sent data before completing association. Often seen after an AP reboot.
8Disassociated because sending STA is leaving BSSThe client left this access point, usually roaming to a stronger signal.
9STA requesting association is not authenticatedThe client tried to associate before authenticating.
10Disassociated because of unacceptable power capabilityThe client's transmit power element does not meet the AP's requirement.
11Disassociated because of unacceptable supported channelsThe client does not support the channels the AP requires, often a regulatory domain mismatch.
12ReservedNot used.
13Invalid information elementA malformed or unexpected element was received in a management frame.
14Message integrity code (MIC) failureAn encrypted frame failed its integrity check. Can indicate interference or a key mismatch.
154-Way Handshake timeoutThe WPA2 or WPA3 handshake did not complete. Usually a wrong passphrase or a RADIUS timeout.
16Group Key Handshake timeoutGroup key negotiation failed after the initial handshake succeeded.
17Information element in 4-Way Handshake differsKey information was inconsistent between frames. A configuration mismatch rather than a client fault.
18Invalid group cipherThe group cipher requested is not valid or not supported by both sides.
19Invalid pairwise cipherThe unicast cipher does not match between client and AP.
20Invalid AKMPThe authentication and key management protocol is not supported.
21Unsupported RSN information element versionThe client and AP are using incompatible security protocol versions.
22Invalid RSN information element capabilitiesThe security capabilities advertised are not compatible.
23IEEE 802.1X authentication failedThe RADIUS or 802.1X exchange was rejected. Check the server, the shared secret, and the certificate.
24Cipher suite rejected because of the security policyThe AP's policy blocked the requested cipher.
25 – 31Reserved or vendor-specificNot defined for general use. Some vendors and later amendments use this range.
32Disassociated for unspecified QoS-related reasonQuality of Service policy rejected the client without a specific cause.
33Disassociated because AP lacks sufficient bandwidthNot enough bandwidth remains for this QoS client.
34Disassociated because of excessive unacknowledged framesFrames were lost repeatedly. Points at interference, distance, or a weak signal.
35Disassociated because STA transmitted outside the TXOP limitThe client transmitted outside its permitted airtime slot.
36Requested from peer STA as the STA is leaving the BSSThe peer station is leaving, typically a reset or clean disconnect.
37Requested from peer STA as it does not want to use the mechanismThe peer declined a requested mechanism such as block ack.
38Requested from peer STA as it received frames using the mechanism for which a setup is requiredFrames arrived before the required setup exchange completed.
39Requested from peer STA due to timeoutThe peer timed out waiting for a response.
45Peer STA does not support the requested cipher suiteThe peer cannot use the cipher that was proposed.
46 – 65Reserved or vendor-specificNot defined for general use.
99No reason code reportedNot part of the standard. Some controllers log this when the disconnect cause is unknown.

Reason codes are a 16-bit field, so values from 0 to 65535 are possible. Anything outside the ranges above is either vendor-specific or a logging artefact rather than a standard code. Values also differ slightly between deauthentication and disassociation frames, and some vendors relabel them in their own dashboards.

Why These Codes Matter

Knowing the specific reason code behind a WiFi disconnect allows you to:

  • Troubleshoot faster - immediately identify whether the issue is authentication, load, or security related.
  • Improve user experience - by diagnosing recurring disconnects and fixing root causes.
  • Optimize networks - especially in enterprise or hospitality environments where guest WiFi stability is critical.

For example:

  • If you see many Code 4 (inactivity) disconnects, you may need to adjust session timeouts.
  • If Code 5 (AP overloaded) occurs often, you may need load balancing or more access points.
  • Handshake failures (Codes 15–17) usually point to WPA2/WPA3 configuration issues.

For a complete setup walkthrough, check out our BIG GUIDE to setting up Spotipo hotspots with UniFi devices (NEW UI).

Boost Your Business Revenue with our Guest WiFi Solution

Join the Partner Program