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)
Sun, May 17, 11:42 AM
Unknown Object (File)
Fri, May 15, 7:44 AM
Unknown Object (File)
Wed, May 13, 12:58 AM
Unknown Object (File)
Mon, May 11, 11:02 AM
Unknown Object (File)
Mon, May 11, 11:02 AM
Unknown Object (File)
Mon, May 11, 5:32 AM
Unknown Object (File)
Mon, May 11, 1:04 AM
Unknown Object (File)
Sun, May 10, 4:10 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.