diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2016-12-16 04:44:14 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2016-12-16 04:44:14 +0000 |
commit | 7aebd3e55da25970e8b73fbf2317256cdc6d4ab6 (patch) | |
tree | c2c2e820e681dd711b217f47c86c1fd652e05e07 /sys/net80211 | |
parent | fdbc9e6e82c9a4ede2629dd22e6b505cbdadb0ee (diff) | |
download | src-test2-7aebd3e55da25970e8b73fbf2317256cdc6d4ab6.tar.gz src-test2-7aebd3e55da25970e8b73fbf2317256cdc6d4ab6.zip |
Notes
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 229217ee765f..5ea073290e2c 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -2020,6 +2020,10 @@ ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode m case IEEE80211_MODE_11NG: case IEEE80211_MODE_TURBO_G: return findmedia(rates, nitems(rates), rate | IFM_IEEE80211_11G); + case IEEE80211_MODE_VHT_2GHZ: + case IEEE80211_MODE_VHT_5GHZ: + /* XXX TODO: need to figure out mapping for VHT rates */ + return IFM_AUTO; } return IFM_AUTO; } @@ -2053,6 +2057,7 @@ ieee80211_media2rate(int mword) 9, /* IFM_IEEE80211_OFDM4 */ 54, /* IFM_IEEE80211_OFDM27 */ -1, /* IFM_IEEE80211_MCS */ + -1, /* IFM_IEEE80211_VHT */ }; return IFM_SUBTYPE(mword) < nitems(ieeerates) ? ieeerates[IFM_SUBTYPE(mword)] : 0; @@ -2103,6 +2108,8 @@ ieee80211_channel_type_char(const struct ieee80211_channel *c) return 'T'; if (IEEE80211_IS_CHAN_108G(c)) return 'G'; + if (IEEE80211_IS_CHAN_VHT(c)) + return 'v'; if (IEEE80211_IS_CHAN_HT(c)) return 'n'; if (IEEE80211_IS_CHAN_A(c)) |