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
Unknown Object (File)
Mon, Feb 16, 4:42 PM
Unknown Object (File)
Sun, Feb 15, 2:11 AM
Unknown Object (File)
Sat, Feb 14, 2:31 PM
Unknown Object (File)
Sat, Feb 14, 2:31 PM
Unknown Object (File)
Fri, Jan 30, 6:58 AM
Unknown Object (File)
Thu, Jan 29, 11:01 AM
Unknown Object (File)
Jan 26 2026, 11:50 PM
Unknown Object (File)
Jan 23 2026, 11:46 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 Not Applicable
Unit
Tests Not Applicable

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.Thu, Feb 26, 3:56 AM
This revision was automatically updated to reflect the committed changes.