File leap153.patch of Package rtl8821ce

--- a/os_dep/linux/ioctl_cfg80211.c	2020-06-28 07:36:53.000000000 +0200
+++ b/os_dep/linux/ioctl_cfg80211.c	2021-01-26 18:38:07.228623270 +0100
@@ -7307,7 +7307,7 @@
 #else
 	struct net_device *ndev,
 #endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
 	struct mgmt_frame_regs *upd)
 #else
 	u16 frame_type, bool reg)
@@ -7319,7 +7319,7 @@
 #endif
 
 /* hardcoded always true, to make it pass compilation */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
 	bool reg = true;
 #endif
 
@@ -7341,7 +7341,7 @@
 	/* Wait QC Verify */
 	return;
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
 	switch (upd->interface_stypes) {
 #else
 	switch (frame_type) {
@@ -9647,7 +9647,7 @@
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
 	.mgmt_tx = cfg80211_rtw_mgmt_tx,
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0))
 	.update_mgmt_frame_registrations = cfg80211_rtw_mgmt_frame_register,
 #else
 	.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
openSUSE Build Service is sponsored by