]> git.pld-linux.org Git - packages/rtl8812au.git/blame - kernel-5.2.patch
- fix building with kernel 5.2
[packages/rtl8812au.git] / kernel-5.2.patch
CommitLineData
4b50b2c9
JR
1From 6faa3eaf8916667cb7f4ab59923b3608e6ab7b18 Mon Sep 17 00:00:00 2001
2From: gordboy <35108003+gordboy@users.noreply.github.com>
3Date: Mon, 20 May 2019 21:29:44 +0100
4Subject: [PATCH] Update README.md for 5.2 kernel fix
5
6---
7 README.md | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/README.md b/README.md
11index 074018d..98238ab 100644
12--- a/README.md
13+++ b/README.md
14@@ -4,7 +4,7 @@
15
16 Only supports 8812AU chipset.
17
18-Works fine with 5.1-rc1 kernel. Source now builds with no warnings or errors.
19+Works fine with 5.2-rc1 kernel. Source now builds with no warnings or errors.
20
21 Greatly improved stability due to huge rewrite of phydm - "4 second glitch" seems to have been fixed, or at least vastly reduced, in driver version 5.2.20.2.
22
23From b353639a70631dc6c88af3cbea1ff7b28b888630 Mon Sep 17 00:00:00 2001
24From: Hansruedi Patzen <hp@revy.ch>
25Date: Tue, 14 May 2019 15:10:12 +0200
26Subject: [PATCH] linux-5.2: disable fallback from rtw_select_queue
27
28The fallback parameter has been removed in the latest kernel (>= 5.2)
29
30See: https://github.com/torvalds/linux/commit/a350eccee5830d9a1f29e393a88dc05a15326d44
31---
32 os_dep/linux/os_intfs.c | 2 +-
33 1 file changed, 1 insertion(+), 1 deletion(-)
34
35diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
36index 5da6a49..49ce4d8 100644
37--- a/os_dep/linux/os_intfs.c
38+++ b/os_dep/linux/os_intfs.c
39@@ -1286,7 +1286,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
40 #else
41 , struct net_device *sb_dev
42 #endif
43- #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)
44+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0))
45 , select_queue_fallback_t fallback
46 #endif
47 #endif
This page took 0.081901 seconds and 4 git commands to generate.