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
F157413593: D55643.diff
Thu, May 21, 3:47 AM
Unknown Object (File)
Sun, May 17, 11:27 PM
Unknown Object (File)
Sun, May 17, 11:22 PM
Unknown Object (File)
Sun, May 10, 3:20 PM
Unknown Object (File)
Sun, May 10, 3:14 PM
Unknown Object (File)
Sun, May 10, 5:48 AM
Unknown Object (File)
Sat, May 9, 10:31 PM
Unknown Object (File)
Sat, May 9, 10:22 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