From f0ab3d366869693ef6cca76cd1d1f3a819d4abfe Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 4 Jan 2017 08:08:50 +0000 Subject: [PATCH] [net80211] Add VHT flags for printf/debugging. Whilst here, note that the last bit is currently used by ifconfig (_CHAN_HT) so don't use it without fixing that first. --- sys/net80211/_ieee80211.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/net80211/_ieee80211.h b/sys/net80211/_ieee80211.h index 0faeeb4c8f9c..13155ea399a3 100644 --- a/sys/net80211/_ieee80211.h +++ b/sys/net80211/_ieee80211.h @@ -194,6 +194,7 @@ struct ieee80211_channel { #define IEEE80211_CHAN_VHT80 0x08000000 /* VHT80 channel */ #define IEEE80211_CHAN_VHT80_80 0x10000000 /* VHT80+80 channel */ #define IEEE80211_CHAN_VHT160 0x20000000 /* VHT160 channel */ +/* XXX note: 0x80000000 is used in src/sbin/ifconfig/ifieee80211.c :( */ #define IEEE80211_CHAN_HT40 (IEEE80211_CHAN_HT40U | IEEE80211_CHAN_HT40D) #define IEEE80211_CHAN_HT (IEEE80211_CHAN_HT20 | IEEE80211_CHAN_HT40) @@ -206,8 +207,8 @@ struct ieee80211_channel { #define IEEE80211_CHAN_BITS \ "\20\1PRIV0\2PRIV2\3PRIV3\4PRIV4\5TURBO\6CCK\7OFDM\0102GHZ\0115GHZ" \ "\12PASSIVE\13DYN\14GFSK\15GSM\16STURBO\17HALF\20QUARTER\21HT20" \ - "\22HT40U\23HT40D\24DFS\0254MSXMIT\26NOADHOC\27NOHOSTAP\03011D" -/* XXX TODO: add VHT bits */ + "\22HT40U\23HT40D\24DFS\0254MSXMIT\26NOADHOC\27NOHOSTAP\03011D" \ + "\031VHT20\032VHT40U\033VHT40D\034VHT80\035VHT80_80\036VHT160" /* * Useful combinations of channel characteristics.