From cc112234de3ad0ee7d71e67422cf5dc282410ec2 Mon Sep 17 00:00:00 2001 From: Paolo Sabatino Date: Thu, 2 Oct 2025 16:41:34 +0200 Subject: [PATCH] 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 f99b62b..9a48239 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -2518,7 +2518,11 @@ exit: } -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);