From 2092b8d80d7fb7fa953d9dd3d666e5679c99a2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rin=20Cat=20=28=E9=88=B4=E7=8C=AB=29?= Date: Sun, 1 Dec 2024 22:57:43 -0500 Subject: [PATCH] Linux 6.13 compat: cfg80211_rtw_set_monitor_channel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. Co-authored-by: Rin Cat (鈴猫) --- os_dep/linux/ioctl_cfg80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index a1fbd0f..1b042f6 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -6955,6 +6955,9 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def( #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) */ static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)) + , struct net_device *dev +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) , struct cfg80211_chan_def *chandef #else