File Leap151.patch of Package rtl8822bu

diff -U 3 -H -d -r -N -- a/include/wifi.h b/include/wifi.h
--- a/include/wifi.h	2020-04-09 18:05:52.000000000 +0200
+++ b/include/wifi.h	2020-04-09 18:06:54.425756781 +0200
@@ -1034,7 +1034,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 0x40
 #endif
 
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	2020-04-09 18:05:52.000000000 +0200
+++ b/os_dep/linux/os_intfs.c	2020-04-09 18:07:36.092825955 +0200
@@ -1352,7 +1352,7 @@
 static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 2, 0)
 	, struct net_device *sb_dev
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0)
 	, struct net_device *sb_dev
 	, select_queue_fallback_t fallback
 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
openSUSE Build Service is sponsored by