Page MenuHomeFreeBSD

mwl: migrate to new net80211 encryption key API
ClosedPublic

Authored by adrian on Jan 4 2026, 3:44 AM.
Tags
None
Referenced Files
F167517349: D54484.id172732.diff
Sat, Aug 22, 10:31 AM
Unknown Object (File)
Thu, Aug 20, 1:32 AM
Unknown Object (File)
Mon, Aug 17, 3:18 AM
Unknown Object (File)
Sat, Aug 15, 4:55 AM
Unknown Object (File)
Thu, Aug 13, 12:58 AM
Unknown Object (File)
Tue, Aug 11, 6:50 PM
Unknown Object (File)
Mon, Aug 10, 5:18 PM
Unknown Object (File)
Mon, Aug 10, 12:22 PM
Subscribers

Details

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.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 26 2026, 3:56 AM
This revision was automatically updated to reflect the committed changes.