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