[openwrt/openwrt] rtl8812au-ct: rework patch to support kernel 6.18

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 7 15:37:33 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/cc20942931543387d39221266829e2eabfe67d38

commit cc20942931543387d39221266829e2eabfe67d38
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Tue Dec 2 20:31:26 2025 +0100

    rtl8812au-ct: rework patch to support kernel 6.18
    
    Rework patch to support backports package based on kernel 6.18.
    
    Link: https://github.com/openwrt/openwrt/pull/20964
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 .../rtl8812au-ct/patches/100-api_update.patch      | 28 +++++++++++++++++++++-
 .../kernel/rtl8812au-ct/patches/110-link_id.patch  |  6 ++---
 2 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/package/kernel/rtl8812au-ct/patches/100-api_update.patch b/package/kernel/rtl8812au-ct/patches/100-api_update.patch
index ca888d6963..d5cc72bedc 100644
--- a/package/kernel/rtl8812au-ct/patches/100-api_update.patch
+++ b/package/kernel/rtl8812au-ct/patches/100-api_update.patch
@@ -44,7 +44,33 @@
  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)) || defined(COMPAT_KERNEL_RELEASE)
                                          , bool unicast, bool multicast
  #endif
-@@ -4031,7 +4034,8 @@ static int cfg80211_rtw_change_beacon(st
+@@ -2349,7 +2352,7 @@ exit:
+ 
+ }
+ 
+-static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
++static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int radio_idx, u32 changed)
+ {
+ #if 0
+ 	struct iwm_priv *iwm = wiphy_to_iwm(wiphy);
+@@ -3142,6 +3145,7 @@ static int cfg80211_rtw_set_txpower(stru
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+                                     struct wireless_dev *wdev,
+ #endif
++				     int radio_idx,
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)) || defined(COMPAT_KERNEL_RELEASE)
+                                     enum nl80211_tx_power_setting type, int mbm)
+ #else
+@@ -3180,7 +3184,7 @@ static int cfg80211_rtw_set_txpower(stru
+ 
+ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
+-                                    struct wireless_dev *wdev,
++                                    struct wireless_dev *wdev, int radio_idx,
+ #endif
+                                     int *dbm)
+ {
+@@ -4031,7 +4035,8 @@ static int cfg80211_rtw_change_beacon(st
  	return ret;
  }
  
diff --git a/package/kernel/rtl8812au-ct/patches/110-link_id.patch b/package/kernel/rtl8812au-ct/patches/110-link_id.patch
index 70121c27be..ae2e224aab 100644
--- a/package/kernel/rtl8812au-ct/patches/110-link_id.patch
+++ b/package/kernel/rtl8812au-ct/patches/110-link_id.patch
@@ -1,11 +1,11 @@
 --- a/os_dep/linux/ioctl_cfg80211.c
 +++ b/os_dep/linux/ioctl_cfg80211.c
-@@ -3183,7 +3183,7 @@ static int cfg80211_rtw_set_txpower(stru
+@@ -3184,7 +3184,7 @@ static int cfg80211_rtw_set_txpower(stru
  
  static int cfg80211_rtw_get_txpower(struct wiphy *wiphy,
  #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0))
--                                    struct wireless_dev *wdev,
-+                                    struct wireless_dev *wdev, unsigned int link_id,
+-                                    struct wireless_dev *wdev, int radio_idx,
++                                    struct wireless_dev *wdev, int radio_idx, unsigned int link_id,
  #endif
                                      int *dbm)
  {




More information about the lede-commits mailing list