Date: Mon, 29 Mar 2021 23:02:16 +0800 From: qcwap <1051244836@qq.com> To: freebsd-current@freebsd.org Subject: Correct net80211 channel flag. Message-ID: <tencent_2D16BB0B925A1EA4B4BAD2454A8C4F503F06@qq.com>
next in thread | raw e-mail | index | archive | help
This patch corrects ieee80211_vht_get_vhtcap_ie for 160/80P80 channel = width recognition.=20 diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index 86ab1459cca..76c43629b33 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -811,9 +811,9 @@ struct ieee80211_ie_vht_operation { #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK 0x0000000C #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK_S 2 #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_NONE 0 -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160MHZ 1 -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160_80P80MHZ 2 -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_RESERVED 3 +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160MHZ 4 +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160_80P80MHZ 8 +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_RESERVED 16 =20 #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160MHZ(_vhtcaps) = \ (_IEEE80211_MASKSHIFT(_vhtcaps, = IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK) >=3D \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tencent_2D16BB0B925A1EA4B4BAD2454A8C4F503F06>