802.11 - Reason Codes and Status Codes
The 802.11 standard section 8.4 comments on reason codes and status codes. I’ve used these myself when troubleshooting frame captures. These codes provide insight to Wi-Fi related problems like stations connecting and disconnecting. Lets dive in and see what the standard says about reason and status code fields. Then lets look at real world frame captures and see these codes at work.
802.11 Standard Overview
188.8.131.52 Reason Code field
This Reason Code field is used to indicate the reason that an unsolicited notification management frame of type Disassociation, Deauthentication, DELTS, DELBA, DLS Teardown, or Mesh Peering Close was generated. It is contained in the Mesh Channel Switch Parameters element to indicate the reason for the channel switch. It is contained in the PERR element to indicate the reason for the path error. The length of the Reason Code field is 2 octets. The Reason Code field is illustrated in Figure 8-41.
184.108.40.206 Status Code field
The Status Code field is used in a response management frame to indicate the success or failure of a requested operation. The length of the Status Code field is 2 octets. The Status Code field is illustrated in Figure 8-43.
Reason Code Field
When conducting frame captures you can find the reason code in some management frames like the response and disassociation frames. I like how the 802.11 standard comments:
It’s unsolicited information whereby radios can provide connection information.
Example: Disassociation frame with reason code 1. This radio is informing the other radio it’s disassociating for unspecified reasons.
Example: Deauthentication frame with reason code 7. This radio is informing the other radio to deauth because they isn't an associaation. It’s likely a client is sending an access point frames while not having an association with this access point.
Example: Deauthentication frame with reason code 23. This radio is informing the other radio to deauth because 802.1X authentication failed. This is a client not passing 802.1X.
Status Code Field
When conducting frame captures you can find the status code field in response management frames to indicate the success or failure of a requested operation. An example would be authentication and association frames.
Example: Authentication frame showing a status code of 0. This is a successful authentication.
* NOTE - This is 802.11 OPEN / SHARED authentication not 802.1X/PSK authentication.
Example: Association response frame showing a status code of 0. This is a successful association.
Thank you for stopping by and I hope this blog was helpful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.