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
This commit is contained in:
parent
5c9f992919
commit
656d0e8fa9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user