Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2025 14:53:05 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: 8552e8de6d7e - stable/14 - contrib/wpa: pass IFM_IEEE80211_VHT5G if vht_enabled on the channel
Message-ID:  <202502101453.51AEr5xG028752@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=8552e8de6d7e980403c2247f9c2b802211b4b894

commit 8552e8de6d7e980403c2247f9c2b802211b4b894
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-11-09 16:41:56 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-02-10 14:52:12 +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
    Reviewed by:    cy, adrian
    Differential Revision:  https://reviews.freebsd.org/D35978
    
    (cherry picked from commit a0e45db6f6eb6660e78921bbd5307fa7fc13d0a9)
---
 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 5f734b737184..75a1a061e0a7 100644
--- a/contrib/wpa/src/drivers/driver_bsd.c
+++ b/contrib/wpa/src/drivers/driver_bsd.c
@@ -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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502101453.51AEr5xG028752>