Page MenuHomeFreeBSD

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

Authored by bz on Feb 13 2025, 1:45 AM.
Tags
None
Referenced Files
F112547926: D48980.diff
Wed, Mar 19, 4:56 PM
Unknown Object (File)
Tue, Mar 11, 12:57 PM
Unknown Object (File)
Wed, Mar 5, 11:06 PM
Unknown Object (File)
Wed, Mar 5, 1:32 PM
Unknown Object (File)
Tue, Mar 4, 11:40 PM
Unknown Object (File)
Mon, Mar 3, 7:58 PM
Unknown Object (File)
Mon, Mar 3, 2:46 PM
Unknown Object (File)
Mon, Feb 24, 10:43 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 Passed
Unit
No Test Coverage
Build Status
Buildable 62413
Build 59297: arc lint + arc unit

Event Timeline

bz requested review of this revision.Feb 13 2025, 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.Feb 13 2025, 2:14 AM

It seems that the condition is inversed by this change.
Probably the key need to be deleted if it is set?