aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-07-29 00:10:34 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-09-21 11:40:08 +0000
commit72ad2445324c18a6f87057c5f089f4c5ad591f25 (patch)
tree7505402ddd0b260dc655ed3695e3a50527a3e727
parent6145d25fa01b0478cf9fef3adcfad7600064068c (diff)
downloadsrc-72ad2445324c18a6f87057c5f089f4c5ad591f25.tar.gz
src-72ad2445324c18a6f87057c5f089f4c5ad591f25.zip
net80211: add VHT5G and VHT2G checks/return to media_status
Add the fields for VHT (2Ghz and 5Ghz) to report back by media_status so we actually have a chance to get the right information. Sponsored by: The FreeBSD Foundation Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D35977 (cherry picked from commit 656d0e8fa92ad72626808479d0935814425ee78d)
-rw-r--r--sys/net80211/ieee80211.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 86236d7be973..c2e868d811dd 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -2204,7 +2204,11 @@ media_status(enum ieee80211_opmode opmode, const struct ieee80211_channel *chan)
status |= IFM_IEEE80211_MBSS;
break;
}
- if (IEEE80211_IS_CHAN_HTA(chan)) {
+ if (IEEE80211_IS_CHAN_VHT_5GHZ(chan)) {
+ status |= IFM_IEEE80211_VHT5G;
+ } else if (IEEE80211_IS_CHAN_VHT_2GHZ(chan)) {
+ status |= IFM_IEEE80211_VHT2G;
+ } else if (IEEE80211_IS_CHAN_HTA(chan)) {
status |= IFM_IEEE80211_11NA;
} else if (IEEE80211_IS_CHAN_HTG(chan)) {
status |= IFM_IEEE80211_11NG;