Networking
1822355 Members
5631 Online
109642 Solutions
New Article ๎ฅ‚
NetworkExperts

802.11 - Reason codes and status codes

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

 

8.4.1.7 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.

_25656i4002D7E3AC382AC0.png

_25657iD9708A7DACE8FD1D.png

8.4.1.9 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.

_25658i076781AEF5B69F77.png

_25659iDFA00FE1E6A1671E.png

_25660i1C49ED24431003B0.png

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:

"unsolicited notification".

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.

_25661i82AE24F00B3EF99A-1.png

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.

_25662i69B88D90F2442C56-1.png

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.

_25663i1A27412A865F2C79-1.png

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.

_25664iC7AC15FC568AD35D-1.png

Example: Association response frame showing a status code of 0. This is a successful association.

_25665i64765CA9CCDD420B.png

Thank you for stopping by and I hope this blog was helpful!

0 Kudos
About the Author

NetworkExperts