From 471877314bd3e4b4a02896a8ffa98fb09559c72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rin=20Cat=20=28=E9=88=B4=E7=8C=AB=29?= Date: Thu, 9 Oct 2025 00:50:24 +0900 Subject: [PATCH] Linux 6.17 compat: radio_idx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rin Cat (鈴猫) --- os_dep/linux/ioctl_cfg80211.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 7869237..d5cf6e6 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3592,7 +3592,12 @@ static void cfg80211_rtw_abort_scan(struct wiphy *wiphy, } #endif -static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed) +static int cfg80211_rtw_set_wiphy_params( + struct wiphy *wiphy, +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) + int radio_idx, +#endif + u32 changed) { #if 0 struct iwm_priv *iwm = wiphy_to_iwm(wiphy); @@ -4597,6 +4602,9 @@ static int cfg80211_rtw_set_txpower(struct wiphy *wiphy, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) struct wireless_dev *wdev, #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) + int radio_idx, +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || defined(COMPAT_KERNEL_RELEASE) enum nl80211_tx_power_setting type, int mbm) #else @@ -4659,6 +4667,9 @@ static int cfg80211_rtw_get_txpower(struct wiphy *wiphy, #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) struct wireless_dev *wdev, #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0)) + int radio_idx, +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0)) unsigned int link_id, #endif