Page MenuHomeFreeBSD

net80211: use IEEE80211_KEY_UNDEFINED() insetad of checking they keyix
ClosedPublic

Authored by bz on Thu, Feb 13, 1:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 24, 10:43 AM
Unknown Object (File)
Fri, Feb 21, 4:15 PM
Unknown Object (File)
Fri, Feb 21, 1:18 PM
Unknown Object (File)
Fri, Feb 21, 6:38 AM
Unknown Object (File)
Thu, Feb 20, 10:43 PM
Unknown Object (File)
Mon, Feb 17, 9:48 AM

Details

Summary

For ieee80211_node_delucastkey() rather than checking the keyix to be
IEEE80211_KEYIX_NONE use the IEEE80211_KEY_UNDEFINED() macro (which
chekes the wk_cipher to be 'none').

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Thu, Feb 13, 1:45 AM

The follow-up logic seems to be an ath(4)-only case so it might be worth double-checking that there is no undocumented condition that made the key check here being done as it was. If you accept this review please state that it seems fine in comment as well.

adrian added a subscriber: adrian.

it doesn't surprise me if ti's ath(4) only as well, that and wi is where this all started.

We should go document some actual correct usage of this so we know what / when to expect stuff.

This revision is now accepted and ready to land.Thu, Feb 13, 2:14 AM