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)
Wed, Feb 18, 8:19 AM
Unknown Object (File)
Tue, Feb 17, 1:18 PM
Unknown Object (File)
Tue, Feb 17, 1:17 PM
Unknown Object (File)
Thu, Feb 5, 9:03 PM
Unknown Object (File)
Jan 18 2026, 11:40 AM
Unknown Object (File)
Jan 18 2026, 11:14 AM
Unknown Object (File)
Dec 14 2025, 5:47 PM
Unknown Object (File)
Dec 9 2025, 12:39 AM
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.