From b78e57bd58b7a43669f1ff3baf8c57e7edd82308 Mon Sep 17 00:00:00 2001 From: onlyreportingissues <103491514+onlyreportingissues@users.noreply.github.com> Date: Tue, 26 Nov 2024 22:43:21 +0100 Subject: [PATCH] Update ioctl_cfg80211.c Add additional argument to cfg80211_rtw_set_monitor_channel In Linux Kernel commit 9c4f83092775 a new argument is introduced to cfg80211_rtw_set_monitor_channel. _______ Source: https://github.com/cilynx/rtl88x2bu/compare/5.8.7.1_35809.20191129_COEX20191120-7777...fix-linux-6.12 --- os_dep/linux/ioctl_cfg80211.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index a1fbd0f..d40cb37 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -6952,10 +6952,13 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def( rtw_warn_on(1); }; } -#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) */ +#endif /*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))*/ 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, 12, 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