git: 656d0e8fa92a - main - net80211: add VHT5G and VHT2G checks/return to media_status
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Jul 2022 15:15:13 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=656d0e8fa92ad72626808479d0935814425ee78d
commit 656d0e8fa92ad72626808479d0935814425ee78d
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-07-29 00:10:34 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-07-29 15:10:38 +0000
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
MFC after: 1 week
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D35977
---
sys/net80211/ieee80211.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 4bed673a78b9..4af9450213ce 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;