]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
80211: consistently order 160 and 80+80
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 17 Aug 2020 13:04:18 +0000 (13:04 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 17 Aug 2020 13:04:18 +0000 (13:04 +0000)
commit4b1c248795c2143d555b0933e09e65deb8f69309
treeb5bcaf9bf120670946c89811789bd85de5b088b8
parent7dd979dfef808a62a0f1092ac6772f489ca6b0ac
80211: consistently order 160 and 80+80

For flags and checks the order goes VHT160 and then VHT80P80 unless
checks are in reverse order ("more comes first") in which case we
deal with VHT80P80 first.
The one reverse order to pick out is where we check channel
prefernences.  While it may seem that VHT160 is better, finding
two "free" channels (VHT 80+80) is more likely so we do prefer that.

While dealing with VHT160 and VHT80P80 add extra clauses previously
missing or marked TODO in a few places.

Reviewed by: adrian, gnn
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Differential Revision: https://reviews.freebsd.org/D26002
sbin/ifconfig/ifieee80211.c
sys/net80211/_ieee80211.h
sys/net80211/ieee80211.c
sys/net80211/ieee80211_vht.c