The branch main has been updated by bz:

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

commit a6994e208cca65684d160e1795a3b9e8c0a2e0a9
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-02-22 23:25:35 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-02-22 23:25:35 +0000

    LinuxKPI: rather than manually defining a value use the net80211 define
    
    Define cfg80211 IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK to
    net80211 IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK.
    
    We should likely at some point make a sweep and replace all the
    values with the defines from the comments for the matching net80211
    version.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/include/net/cfg80211.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h 
b/sys/compat/linuxkpi/common/include/net/cfg80211.h
index 4ae31b257ae0..3454b58f1db7 100644
--- a/sys/compat/linuxkpi/common/include/net/cfg80211.h
+++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h
@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 2020-2024 The FreeBSD Foundation
+ * Copyright (c) 2020-2025 The FreeBSD Foundation
  * Copyright (c) 2021-2022 Bjoern A. Zeeb
  *
  * This software was developed by Björn Zeeb under sponsorship from
@@ -200,7 +200,7 @@ struct ieee80211_sta_ht_cap {
 
 #define        IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ                
(IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160MHZ << 
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK_S)
 #define        IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ       
(IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160_80P80MHZ << 
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK_S)
-#define        IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK  0x0000000c      /* 
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK */
+#define        IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK                  
IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK
 
 #define        IEEE80211_VHT_CAP_RXLDPC                0x00000010      /* 
IEEE80211_VHTCAP_RXLDPC */
 

Reply via email to