Date: Wed, 21 Sep 2022 14:01:13 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 72ad2445324c - stable/13 - net80211: add VHT5G and VHT2G checks/return to media_status Message-ID: <202209211401.28LE1Dov099755@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=72ad2445324c18a6f87057c5f089f4c5ad591f25 commit 72ad2445324c18a6f87057c5f089f4c5ad591f25 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-07-29 00:10:34 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-09-21 11:40:08 +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 Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D35977 (cherry picked from commit 656d0e8fa92ad72626808479d0935814425ee78d) --- 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 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209211401.28LE1Dov099755>