Page MenuHomeFreeBSD

mtw: convert to new net80211 crypto key API
ClosedPublic

Authored by adrian on Nov 12 2025, 2:59 AM.
Referenced Files
Unknown Object (File)
Sat, Apr 4, 2:23 PM
Unknown Object (File)
Sun, Mar 29, 12:41 PM
Unknown Object (File)
Mar 6 2026, 7:43 AM
Unknown Object (File)
Mar 6 2026, 7:07 AM
Unknown Object (File)
Feb 18 2026, 8:19 AM
Unknown Object (File)
Feb 17 2026, 1:18 PM
Unknown Object (File)
Feb 17 2026, 1:17 PM
Unknown Object (File)
Feb 5 2026, 9:03 PM
Subscribers

Details

Summary
  • constify mtw_write_region_1()'s data field
  • convert to use ieee80211_crypto_get_*()
  • .. note that rx/tx mic data routines are explicitly being called, as this NIC is doing TKIP + MIC offload

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz added a subscriber: bz.

Seems fine ..

sys/dev/usb/wlan/if_mtw.c
1291

This at first seems rather bogus to const the argument which is then only DECONST. It seems there should be a better usbd wrapper for write which deals with a const buffer...
The little I like this the much I see what it solves for you...

This revision is now accepted and ready to land.Nov 13 2025, 10:40 PM
This revision was automatically updated to reflect the committed changes.