From 4b8d758f42ce38b75f9a98a083906b0d59d244c3 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Mon, 23 Dec 2024 19:35:12 +0800 Subject: [PATCH] fix build for kernel 6.13 .set_monitor_channel has been updated since v6.13: https://github.com/torvalds/linux/commit/9c4f830927750a2bf9fd9426a5257f0fdce3b662 --- os_dep/linux/ioctl_cfg80211.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 53ccef4..75391e7 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -4520,7 +4520,10 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy } static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)) + , struct net_device *dev + , struct cfg80211_chan_def *chandef +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) , struct cfg80211_chan_def *chandef #else , struct ieee80211_channel *chan