September 5, 2025
All

WiFi Deauthentication Reason Codes Explained (Complete Guide)

Table Of Contents

  1. Text Link
  2. Text Link

Various wifi disconnect codes, useful when debugging wifi disconnect issues

When troubleshooting WiFi networks, one of the most confusing things administrators encounter are WiFi de-authentication 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 reason codes with explanations to help you quickly understand what’s happening on your network.

What Are WiFi De-Authentication Reason Codes?

WiFi de-authentication 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.

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.

Complete List of WiFi De-Authentication Reason Codes

Code Reason Explanation
0ReservedNormal working operation
1Unspecific ReasonThe AP doesn’t know what went wrong
2Previous authentication no longer validClient has associated but is no longer authorized
3STA leaving IBSS/ESSThe access point went offline, disconnecting the client
4Disassociated due to inactivityClient session timeout exceeded
5AP cannot handle more clientsThe access point is overloaded or load balancing
6Class 2 frame from nonauthenticated STAClient tried sending data before authentication
7Class 3 frame from nonassociated STAClient tried sending data before association
8STA leaving BSSOS moved the client to another AP (non-aggressive load balancing)
9STA not authenticatedClient attempted association before authorization
10Power Capability unacceptableClient device power element mismatch
11Supported Channels unacceptableClient channel request not supported
12ReservedNot used
13Invalid information elementInvalid frame data received
14MIC failureMessage integrity check failed
154-Way Handshake timeoutClient/AP failed WPA2 handshake
16Group Key Handshake timeoutGroup key negotiation failed
17Handshake info mismatchKey information inconsistent across frames
18Invalid group cipher / unsupported data ratesAP/client requested incompatible speeds
19Invalid pairwise cipherClient/AP cipher mismatch
20Invalid AKMPInvalid authentication and key management
21Unsupported RSN versionSecurity protocol mismatch
22Invalid RSN capabilitiesAP and client capability mismatch
23IEEE 802.1X authentication failedClient authentication failed via RADIUS/802.1X
24Cipher suite rejectedBlocked by AP’s security policy
25–31ReservedNot used
32QoS-related unspecifiedQuality of Service denied the action
33QoS insufficient bandwidthAP lacks bandwidth for QoS STA
34Excessive unacknowledged framesPoor channel conditions caused drop
35TXOP limits exceededSTA transmitted outside permitted time slots
36Requested by peer STASTA left BSS (reset or disconnect)
37Peer STA does not want mechanismRequested disconnect by peer
38Peer STA received frame without setupIncorrectly configured frame exchange
39Peer STA timeoutTimeout caused disconnect
45Unsupported cipher suitePeer STA does not support the requested cipher
45–65ReservedNot used
99No Reason CodeUnknown state, generic disconnect
535ReservedNot used

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