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, Aug 15, 4:56 AM
Unknown Object (File)
Sun, Aug 9, 8:34 AM
Unknown Object (File)
Sat, Aug 8, 4:29 PM
Unknown Object (File)
Sat, Aug 8, 4:08 PM
Unknown Object (File)
Sat, Aug 8, 10:56 AM
Unknown Object (File)
Tue, Aug 4, 9:06 AM
Unknown Object (File)
Sun, Aug 2, 5:02 AM
Unknown Object (File)
Sat, Aug 1, 1:12 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.