Page MenuHomeFreeBSD

net80211: cleanup keyidx argument of ieee80211_notify_michael_failure()
ClosedPublic

Authored by bz on Fri, Mar 14, 11:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 18, 9:56 AM
Unknown Object (File)
Mon, Mar 17, 11:56 PM
Unknown Object (File)
Sun, Mar 16, 10:53 PM
Unknown Object (File)
Sun, Mar 16, 10:25 PM
Unknown Object (File)
Sun, Mar 16, 9:32 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 Not Applicable
Unit
Tests Not Applicable