git: a0e45db6f6eb - main - contrib/wpa: pass IFM_IEEE80211_VHT5G if vht_enabled on the channel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Dec 2024 01:56:31 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=a0e45db6f6eb6660e78921bbd5307fa7fc13d0a9
commit a0e45db6f6eb6660e78921bbd5307fa7fc13d0a9
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-11-09 16:41:56 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-12-02 01:54:05 +0000
contrib/wpa: pass IFM_IEEE80211_VHT5G if vht_enabled on the channel
Set media mode correctly to IFM_IEEE80211_VHT5G if vht_enabled is set
on the channel. Otherwise we'll end up setting 11NA.
Not a problem on first sight given net80211 does the upgrade to VHT
for us. But we would not set iv_des_mode ("desired mode") on the vap.
Setting this will put a contraint on/help scanning for our desired
(VHT) channels to my understanding of the code.
Sponsored by: The FreeBSD Foundation
MFC after: 6 weeks
Reviewed by: cy, adrian
Differential Revision: https://reviews.freebsd.org/D35978
---
contrib/wpa/src/drivers/driver_bsd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/wpa/src/drivers/driver_bsd.c b/contrib/wpa/src/drivers/driver_bsd.c
index 712446a62fe4..fc9a44743d7d 100644
--- a/contrib/wpa/src/drivers/driver_bsd.c
+++ b/contrib/wpa/src/drivers/driver_bsd.c
@@ -631,6 +631,7 @@ bsd_set_freq(void *priv, struct hostapd_freq_params *freq)
mode = IFM_IEEE80211_11B;
} else {
mode =
+ freq->vht_enabled ? IFM_IEEE80211_VHT5G :
freq->ht_enabled ? IFM_IEEE80211_11NA :
IFM_IEEE80211_11A;
}