mirror of
https://github.com/opnsense/src.git
synced 2026-02-04 03:00:53 -06:00
net80211/ifconfig: swap IEEE80211_FVHT_USEVHT160 and 80P80
ieee80211_setupcurchan() compares the flags in a greater than manner. In this case VHT160 should be > VHT80P80 as it is preferable. Swap the two flags and add a comment to note this. Sponsored by: The FreeBSD Foundation Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D48976 (cherry picked from commit 8f2e5b6ef32304ce340b91057b1eb4b191dbeac1)
This commit is contained in:
parent
accbbd1a64
commit
e47898ee0f
@ -133,8 +133,8 @@
|
||||
#define IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */
|
||||
#define IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */
|
||||
#define IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */
|
||||
#define IEEE80211_FVHT_USEVHT160 0x000000008 /* CONF: Use VHT160 */
|
||||
#define IEEE80211_FVHT_USEVHT80P80 0x000000010 /* CONF: Use VHT 80+80 */
|
||||
#define IEEE80211_FVHT_USEVHT80P80 0x000000008 /* CONF: Use VHT 80+80 */
|
||||
#define IEEE80211_FVHT_USEVHT160 0x000000010 /* CONF: Use VHT160 */
|
||||
#define IEEE80211_FVHT_STBC_TX 0x00000020 /* CONF: STBC tx enabled */
|
||||
#define IEEE80211_FVHT_STBC_RX 0x00000040 /* CONF: STBC rx enabled */
|
||||
#endif
|
||||
|
||||
@ -728,11 +728,15 @@ MALLOC_DECLARE(M_80211_VAP);
|
||||
|
||||
#define IEEE80211_FVEN_BITS "\20"
|
||||
|
||||
/*
|
||||
* These flags are compared in ieee80211_setupcurchan().
|
||||
* Thus 160 should be > 80P80.
|
||||
*/
|
||||
#define IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */
|
||||
#define IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */
|
||||
#define IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */
|
||||
#define IEEE80211_FVHT_USEVHT160 0x000000008 /* CONF: Use VHT160 */
|
||||
#define IEEE80211_FVHT_USEVHT80P80 0x000000010 /* CONF: Use VHT 80+80 */
|
||||
#define IEEE80211_FVHT_USEVHT80P80 0x000000008 /* CONF: Use VHT 80+80 */
|
||||
#define IEEE80211_FVHT_USEVHT160 0x000000010 /* CONF: Use VHT160 */
|
||||
#define IEEE80211_FVHT_STBC_TX 0x00000020 /* CONF: STBC tx enabled */
|
||||
#define IEEE80211_FVHT_STBC_RX 0x00000040 /* CONF: STBC rx enabled */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user