File fix-build-on-kernel-6_13.patch of Package failed_rtl8188gu
diff -Nur a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
--- a/os_dep/linux/ioctl_cfg80211.c 2025-01-26 19:22:31.223132590 +0800
+++ b/os_dep/linux/ioctl_cfg80211.c 2025-01-26 19:35:28.529719632 +0800
@@ -4792,7 +4792,11 @@
}
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(3, 8, 0) && \
+ LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0))
+ , struct cfg80211_chan_def *chandef
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
+ , struct net_device *dev
, struct cfg80211_chan_def *chandef
#else
, struct ieee80211_channel *chan