HomeFreeBSD

net80211: clean up / add more macros to check the frame types

Description

net80211: clean up / add more macros to check the frame types

  • Add new macros to check the version+type and version+type+subtype of a frame.
  • Use these for existing frame checks.
  • Convert the flag checks in net80211 to use the macros, rather than direct header poking.

Notably I'm callign out things like QOS any versus QOS data, the
kind of NULL frames, etc. Eg, in the TKIP code it's checking whether
a frame is ANY kind of QOS frame, not just QOS data.

These macros should hopefully make the header checks clearer and less
error prone. They're also useful in drivers that are doing their
own header parsing.

Locally:

  • ath(4), AP, STA, AP+STA modes
  • local ath10k/athp - AP, STA modes
  • rtwn - STA mode

Differential Revision: https://reviews.freebsd.org/D36615

Details

Provenance
adrianAuthored on Sat, Nov 9, 9:10 PM
Differential Revision
D36615: net80211: clean up / add more macros to check the frame types
Parents
rG8f1a2d507e25: iwm.4: move hardware list to .Sh HARDWARE and minor cleanup
Branches
Unknown
Tags
Unknown