HomeFreeBSD

net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()

Description

net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()

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. This 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
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D49368

(cherry picked from commit db8ceb8e59487d1d6b2e019efab3eef40688731c)

Details

Provenance
bzAuthored on Mar 14 2025, 11:33 PM
Reviewer
adrian
Differential Revision
D49368: net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()
Parents
rG20f3d58fb8a6: net80211: correct IEEE80211_KEY_BITS
Branches
Unknown
Tags
Unknown