Page MenuHomeFreeBSD

net80211: extend the crypto encap/decap API to include the node
Needs RevisionPublic

Authored by adrian on Oct 4 2024, 1:03 AM.
Referenced Files
Unknown Object (File)
Mon, Jan 13, 2:20 AM
Unknown Object (File)
Dec 4 2024, 10:27 AM
Unknown Object (File)
Nov 12 2024, 5:33 PM
Unknown Object (File)
Nov 3 2024, 1:25 PM
Unknown Object (File)
Nov 3 2024, 12:12 PM
Unknown Object (File)
Oct 31 2024, 7:29 AM
Unknown Object (File)
Oct 27 2024, 12:24 AM
Unknown Object (File)
Oct 26 2024, 4:48 PM

Details

Reviewers
bz
Group Reviewers
wireless
Summary

This is needed for at least MFP handling in CCMP. The nonce
field has a bit to set if MFP is enabled and the frame is a
management frame.

Without this, any MFP management frame (with the rest of the MFP stack,
of course) being encapsulated and sent will fail encryption, and
received frames will fail decryption.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 59701
Build 56587: arc lint + arc unit

Event Timeline

adrian requested review of this revision.Oct 4 2024, 1:03 AM
bz requested changes to this revision.Oct 4 2024, 9:35 PM
bz added a subscriber: bz.
bz added inline comments.
sys/dev/usb/wlan/if_rum.c
1515

side note (this is okay for now): I really wonder if this could be expressed differently to not expose this anymore to the drivers. But I'll see.

sys/net80211/ieee80211_crypto.h
235

Unrelated and duplicate line (same is below).

sys/net80211/ieee80211_crypto_ccmp.c
350

The entire change in this function is a separate "implement ..." but nothing to do with "extend ... to include node".
Especially given all the callers just pass in a hard coded false for now. So could be removed from them as well.

I think it would be nice to have the KPI breaking change by itself.

This revision now requires changes to proceed.Oct 4 2024, 9:35 PM