File leap151x.patch of Package rtl8821ce

diff -U 3 -H -d -r -N -- a/include/osdep_service_linux.h b/include/osdep_service_linux.h
--- a/include/osdep_service_linux.h	2019-08-10 08:16:52.000000000 +0200
+++ b/include/osdep_service_linux.h	2019-10-20 10:14:32.809412595 +0200
@@ -345,13 +345,13 @@
 	return &(queue->queue);
 }
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
 static inline void timer_hdl(struct timer_list *in_timer)
 #else
 static inline void timer_hdl(unsigned long cntx)
 #endif
 {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
 	_timer *ptimer = from_timer(ptimer, in_timer, timer);
 #else
 	_timer *ptimer = (_timer *)cntx;
@@ -364,7 +364,7 @@
 	ptimer->function = pfunc;
 	ptimer->arg = cntx;
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
 	timer_setup(&ptimer->timer, timer_hdl, 0);
 #else
 	/* setup_timer(ptimer, pfunc,(u32)cntx);	 */
diff -U 3 -H -d -r -N -- a/include/wifi.h b/include/wifi.h
--- a/include/wifi.h	2019-09-18 18:43:05.000000000 +0200
+++ b/include/wifi.h	2019-10-19 15:50:57.000000000 +0200
@@ -1027,7 +1027,7 @@
  * According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
  */
 #define IEEE80211_MIN_AMPDU_BUF 0x8
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0)
 #define IEEE80211_MAX_AMPDU_BUF_HT 0x40
 #define IEEE80211_MAX_AMPDU_BUF 0x100
 #else
diff -U 3 -H -d -r -N -- a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
--- a/os_dep/linux/os_intfs.c	2019-08-10 08:16:52.000000000 +0200
+++ b/os_dep/linux/os_intfs.c	2019-10-19 16:00:44.000000000 +0200
@@ -1322,7 +1322,7 @@
 }
 
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
 static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
     , struct net_device *sb_dev
     #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,2,0))
openSUSE Build Service is sponsored by