mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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
Reviewed by: cy, adrian
Differential Revision: https://reviews.freebsd.org/D35978
(cherry picked from commit a0e45db6f6eb6660e78921bbd5307fa7fc13d0a9)
This commit is contained in:
parent
4f9bec61d8
commit
8552e8de6d
1 changed files with 1 additions and 0 deletions
|
|
@ -615,6 +615,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue