Page MenuHomeFreeBSD

net80211: migrate FC0_TYPE_MASK / FC0_SUBTYPE_MASK frame type checks to macros
ClosedPublic

Authored by adrian on Nov 9 2024, 9:48 PM.
Referenced Files
F106160369: D47500.id.diff
Thu, Dec 26, 9:27 AM
F106155357: D47500.id146228.diff
Thu, Dec 26, 7:30 AM
F106149874: D47500.id146218.diff
Thu, Dec 26, 5:29 AM
F106147176: D47500.id146216.diff
Thu, Dec 26, 4:24 AM
Unknown Object (File)
Wed, Dec 25, 8:14 AM
Unknown Object (File)
Wed, Dec 18, 7:02 PM
Unknown Object (File)
Wed, Dec 18, 3:08 PM
Unknown Object (File)
Sat, Dec 7, 8:05 PM

Details

Summary
  • Add macros for the management and control frame type checks that I've come across in the drivers.
  • Delete some now old code (eg ath's ieee80211_is_action()) as there's now a macro for it.

Local testing:

  • not yet, I have a lot of wifi devices to find and test against

Diff Detail

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

Event Timeline

adrian requested review of this revision.Nov 9 2024, 9:48 PM
bz added a subscriber: bz.

If you want please address the comments but given none is a logic problem I'll leave it to you.

sys/dev/ath/if_ath_tx.c
1136

superfluous ()

sys/dev/ipw/if_ipw.c
1122

I think style in this file doesn't need the space after !

sys/dev/otus/if_otus.c
1689

Space after !

sys/dev/usb/wlan/if_urtw.c
1726–1727

Those two could be macros as well.

This revision is now accepted and ready to land.Nov 9 2024, 11:22 PM
This revision now requires review to proceed.Nov 10 2024, 4:08 AM

updates, thanks!

This revision is now accepted and ready to land.Nov 10 2024, 2:53 PM

FYI if Phab doesn't add the commit automatically (either because of a typo or misformatted commit message or because Phab is just broken) you can add it later via Edit Related Objects > Edit Commits and then paste the commit hash.