Page MenuHomeFreeBSD

net80211 / ifconfig: cleanup the use of IEEE80211_FVHT_USEVHT*
ClosedPublic

Authored by bz on Aug 7 2020, 5:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 5:21 PM
Unknown Object (File)
Oct 17 2024, 3:08 AM
Unknown Object (File)
Oct 5 2024, 4:10 AM
Unknown Object (File)
Oct 3 2024, 1:14 AM
Unknown Object (File)
Oct 2 2024, 11:16 PM
Unknown Object (File)
Oct 2 2024, 7:20 PM
Unknown Object (File)
Sep 30 2024, 11:22 PM
Unknown Object (File)
Sep 16 2024, 3:03 AM

Details

Summary

Rather then using magic numbers duplicate IEEE80211_FVHT_VHT* in
ifconfig (cleanup of these and other flags used and not exposed by
net80211 should happen later) and use those.
In the kernel this simplifies one ioctl path (the other one currently
relies on individual bit flags being passed in).
We also re-order the 80P80 and 160 flag for 160 to come before 80+80
and more clearly leave the flags as TODO in one of the 160/80+80 cases.

Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Aug 7 2020, 5:43 PM

Anyone? I am planning to commit this next week.

I'm happy with this change although I'd remove the code in #if 0 instead of leaving it there.

sys/net80211/ieee80211_vht.c
164 ↗(On Diff #75584)

Any reason to not just remove this code instead of the ifdef 0 ?

adrian added a subscriber: adrian.
adrian added inline comments.
sys/net80211/ieee80211_vht.c
164 ↗(On Diff #75584)

when i did the bring up i left a bunch of these TODO FIXMEs around where I found things that needed to be taught about VHT flags.

I think it's a good idea to finish this off and implement the vhtcaps check to make sure 40, 80, 80+80 and 160 are used. It shouldn't be /that/ hard.

This revision is now accepted and ready to land.Aug 16 2020, 1:16 AM