From 4a7af2f2716aead7065bbb2f6ac6be6c896f81df Mon Sep 17 00:00:00 2001 From: Paolo Sabatino Date: Wed, 1 Oct 2025 20:29:23 +0200 Subject: [PATCH 1/2] Patch for kernel 6.17 --- os_dep/linux/ioctl_cfg80211.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 436837e..46be068 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3575,7 +3575,7 @@ static void cfg80211_rtw_abort_scan(struct wiphy *wiphy, } #endif /* LINUX_VERSION_CODE >= 4.5.0 */ -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); @@ -4564,6 +4564,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 @@ -4604,6 +4607,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 From 15811ffdf575baabbd1cd46a306e9544a7f02846 Mon Sep 17 00:00:00 2001 From: Paolo Sabatino Date: Thu, 2 Oct 2025 16:38:15 +0200 Subject: [PATCH 2/2] add conditional for kernel 6.17 on function to preserve backwards compatibility --- os_dep/linux/ioctl_cfg80211.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 46be068..128d530 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3575,7 +3575,11 @@ static void cfg80211_rtw_abort_scan(struct wiphy *wiphy, } #endif /* LINUX_VERSION_CODE >= 4.5.0 */ -static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int radio_idx, 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);