Page MenuHomeFreeBSD

net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()
ClosedPublic

Authored by bz on Mar 14 2025, 11:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 18, 10:19 PM
Unknown Object (File)
Fri, Jul 17, 1:55 AM
Unknown Object (File)
Fri, Jul 17, 1:27 AM
Unknown Object (File)
Jun 11 2026, 9:24 AM
Unknown Object (File)
Apr 19 2026, 1:09 PM
Unknown Object (File)
Apr 19 2026, 9:22 AM
Unknown Object (File)
Apr 19 2026, 12:00 AM
Unknown Object (File)
Apr 17 2026, 1:26 PM

Details

Summary

Instead of passing -1 to the function in ieee80211_crypto_demic(),
use the defined IEEE80211_KEYIX_NONE.
net80211 uses ieee80211_keyix not u_int as type for the key index
internally. Use that. Tihs also helps when printing the -1 unsigned
as it stays within the expected numerical scope and makes the debug
message more readable.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62929
Build 59813: arc lint + arc unit