Page MenuHomeFreeBSD

mwl: migrate to new net80211 encryption key API
Needs ReviewPublic

Authored by adrian on Jan 4 2026, 3:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 30, 6:58 AM
Unknown Object (File)
Thu, Jan 29, 11:01 AM
Unknown Object (File)
Mon, Jan 26, 11:50 PM
Unknown Object (File)
Fri, Jan 23, 11:46 PM
Unknown Object (File)
Thu, Jan 22, 10:20 AM
Unknown Object (File)
Mon, Jan 19, 4:04 PM
Unknown Object (File)
Sun, Jan 18, 5:10 AM
Unknown Object (File)
Mon, Jan 12, 2:59 AM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Migrate to the new encryption key API rather than poking at the
key struct directly.

Notably this driver was very clear about its expectation the net80211
key layout w/ key, TX MIC and RX MIC matches the firmware layout
and just memcpy()'ed it. That has been refactored.

Diff Detail

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

Event Timeline

adrian requested review of this revision.Jan 4 2026, 3:44 AM
sys/dev/mwl/if_mwl.c
1657

TODO: technically this should be tx/rx mic len calls, but I bet the firmware doesn't support anything other than 8+8 bytes here. (much like I bet everything else.)

1664

TODO: yup, another instance of IEEE80211_KEYBUF_SIZE being used where it really means "128 bit wep/tkip/ccmp key size".
I'm going to need to clean this up too.