Page MenuHomeFreeBSD

net80211: fix WEP transmit
ClosedPublic

Authored by adrian on Sat, Aug 15, 2:41 AM.
Referenced Files
Unknown Object (File)
Sun, Aug 23, 2:42 AM
Unknown Object (File)
Sat, Aug 22, 6:06 PM
Unknown Object (File)
Sat, Aug 22, 2:57 PM
Unknown Object (File)
Sat, Aug 22, 2:50 PM
Unknown Object (File)
Sat, Aug 22, 6:09 AM
Unknown Object (File)
Fri, Aug 21, 9:00 PM
Unknown Object (File)
Fri, Aug 21, 11:51 AM
Unknown Object (File)
Fri, Aug 21, 11:50 AM

Details

Summary

This was broken in 2022 with a security fix (61605e0ae5d8f) which
disallowed defaulting to the default TX key if there's no unicast
key. Unfortunately this path was also used by WEP transmit.

To fix it, add a separate check which ensures that WEP is configured
(authtype OPEN, privacy enabled) - then also check if the default TX
key is set and that said key is a WEP key.

Fixes: 61605e0ae5d8f

Locally tested:

  • rtwn(4) AP and rtwn(4) STA w/ static WEP keys configured

Diff Detail

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

Event Timeline

also it would be nice to count/log the drops here...

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Aug 19, 2:07 AM
This revision was automatically updated to reflect the committed changes.