Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2025 15:03:09 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: 8a7430903fad - stable/14 - LinuxKPI: 802.11: use net80211 macro instead of manual check
Message-ID:  <202502261503.51QF39Tb014484@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=8a7430903fadc526147aeee70e6b30eb13d01ee6

commit 8a7430903fadc526147aeee70e6b30eb13d01ee6
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-12-30 06:35:03 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-02-26 02:39:18 +0000

    LinuxKPI: 802.11: use net80211 macro instead of manual check
    
    Use IEEE80211_CONF_VHT() instead of manually checking if hardware
    supports VHT.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 1f73e0ed539d2be48fed70b09e87ecccce4ca869)
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
index cc6b72dbea59..455b86284a7a 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -5630,7 +5630,7 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw)
 		lhw->scan_ie_len += sizeof(struct ieee80211_ie_htcap);
 #endif
 #if defined(LKPI_80211_VHT)
-	if ((ic->ic_flags_ext & IEEE80211_FEXT_VHT) != 0)
+	if (IEEE80211_CONF_VHT(ic))
 		lhw->scan_ie_len += 2 + sizeof(struct ieee80211_vht_cap);
 #endif
 



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