Page MenuHomeFreeBSD

net80211: add initial support for extending the global key array to include IGTK keys
Needs ReviewPublic

Authored by adrian on Fri, Sep 13, 8:21 PM.
Tags
None
Referenced Files
F96261277: D46668.diff
Tue, Sep 24, 6:21 AM
Unknown Object (File)
Sat, Sep 21, 2:53 PM
Unknown Object (File)
Thu, Sep 19, 1:01 PM
Unknown Object (File)
Wed, Sep 18, 7:09 AM
Unknown Object (File)
Wed, Sep 18, 4:14 AM
Unknown Object (File)
Tue, Sep 17, 9:24 PM
Unknown Object (File)
Sun, Sep 15, 9:29 PM
Unknown Object (File)
Sun, Sep 15, 7:25 PM
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This is a placeholder / WIP for extending the global key array
for the two IGTK keys.

802.11-2016 defines global key index 4 and 5 for IGTK keys for
management frame protection.

  • add IEEE80211_MAX_NKID which defines how many keys are in iv_nw_keys
  • Leave IEEE80211_WEP_NKID alone
  • Extend and add the functions that return what kind of key the given ieee80211_key pointer is.

For the two drivers I'm testing w/ hardware encryption (ath, rtwn)
(but don't offload the IGTK / BIP broadcast management frame
stuff)

  • Double check whether the key is a group or unicast key; skip IGTK keys.
  • Don't check the key index as soley whether it IS a group or non-group key; instead use the new / updated check methods.

Ideally all the places in all the drivers that compare the key
indexes here for checking group / non-group / etc key stuff
would be updated to use the new functions; this will need to be
done as part of this diff.

Note: 802.11-2020 defines indexes 6 and 7 for beacon frame protection,
but that's not currently included here. Most of the mechanics
should be covered by this diff though, so it would just include
extending the array by two spots and adding a new key flag.

This is definitely a WIP; please don't review it with an eye
for it landing until I've changed this commit message!

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59479
Build 56366: arc lint + arc unit