Page MenuHomeFreeBSD

net80211: sta: use IEEE80211_STATUS_SUCCESS instead of magic 0
ClosedPublic

Authored by bz on Mar 4 2026, 8:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 9, 12:57 AM
Unknown Object (File)
Sat, Sep 5, 7:57 PM
Unknown Object (File)
Sat, Sep 5, 6:22 PM
Unknown Object (File)
Sat, Sep 5, 6:21 PM
Unknown Object (File)
Fri, Sep 4, 1:39 AM
Unknown Object (File)
Thu, Sep 3, 2:19 PM
Unknown Object (File)
Tue, Sep 1, 2:28 PM
Unknown Object (File)
Sun, Aug 30, 2:25 PM

Details

Summary

Rather than using the status != 0 check use the way more descriptive
status != IEEE80211_STATUS_SUCCESS definition. This makes it a lot
more clear what is checked here. While here add a comment in case
of the (Re)Assoc Resp failure as we do not update state in that case
but rely on a timeout which will bounce us back to State 1
(cf. 802.11-2024, Figure 11-23) which means SCAN in our case, rather
than possibly moving us back to AUTH. We will likely have to revisit
this when SAE hits the tree.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable