File fix-build-on-kernel-6_4.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	2023-01-12 00:45:31.000000000 +0800
+++ b/os_dep/linux/ioctl_cfg80211.c	2024-06-11 16:15:55.827501963 +0800
@@ -394,6 +394,8 @@
 		goto exit;
 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 5, 0))
+	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
 #else
 	cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
 #endif
openSUSE Build Service is sponsored by