From e231694d8d9d9622c10d9524b3af9b44675f12cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Pinho?= Date: Mon, 13 Oct 2025 08:10:27 +0100 Subject: [PATCH] Fix build for linux >= 6.17 --- os_dep/linux/ioctl_cfg80211.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index e82ef4e..3eba5c1 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -3205,8 +3205,11 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy return ret; } - -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); @@ -4053,6 +4056,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 @@ -4093,6 +4099,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