HomeFreeBSD

net80211: set_vht_extchan() reverse order to always return best

Description

net80211: set_vht_extchan() reverse order to always return best

In set_vht_extchan() the checks are performed in the order of VHT20/40/80.
That means if a channel has a lower and higheer VHT flag set we would
return the lower first.
We normally do not set more than one VHT flag so this change is supposed
to be a NOP but follows the logical thinking order of returning the best
first. Also we nowhere assert a single VHT flag so make sure we'll not
be stuck with VHT20 when we could do more.

While here add the debugging printfs for VHT160 and VHT80P80 which still
need doing once we deal with a driver at that level.

Reviewed by: adrian, gnn
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Differential Revision: https://reviews.freebsd.org/D26088

Details

Provenance
bzAuthored on
Reviewer
adrian
Differential Revision
D26088: net80211: set_vht_extchan() reverse order to always return best
Parents
rS364550: MFC r358965:
Branches
Unknown
Tags
Unknown