]> git.pld-linux.org Git - packages/rtl8812au.git/blame - kernel-5.1.patch
- fix building with kernel 5.2
[packages/rtl8812au.git] / kernel-5.1.patch
CommitLineData
c54a2f38
JR
1From ac063a4b1a87855e10f6cd1f358aaccbeee9b9c1 Mon Sep 17 00:00:00 2001
2From: gordboy <35108003+gordboy@users.noreply.github.com>
3Date: Mon, 18 Mar 2019 22:04:56 +0000
4Subject: [PATCH] Update to kernel 5.1
5
6---
7 README.md | 2 +-
8 os_dep/osdep_service.c | 4 ++++
9 2 files changed, 5 insertions(+), 1 deletion(-)
10
11diff --git a/README.md b/README.md
12index 74514dc..074018d 100644
13--- a/README.md
14+++ b/README.md
15@@ -4,7 +4,7 @@
16
17 Only supports 8812AU chipset.
18
19-Works fine with 5.0-rc2 kernel. Source now builds with no warnings or errors.
20+Works fine with 5.1-rc1 kernel. Source now builds with no warnings or errors.
21
22 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.
23
24diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c
25index 5823d59..407fdfc 100644
26--- a/os_dep/osdep_service.c
27+++ b/os_dep/osdep_service.c
28@@ -2072,6 +2072,10 @@ static int writeFile(struct file *fp, char *buf, int len)
29
30 }
31
32+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0))
33+ #define get_ds() (KERNEL_DS)
34+#endif
35+
36 /*
37 * Test if the specifi @param path is a file and readable
38 * If readable, @param sz is got
This page took 0.068742 seconds and 4 git commands to generate.