1 From ac063a4b1a87855e10f6cd1f358aaccbeee9b9c1 Mon Sep 17 00:00:00 2001
2 From: gordboy <35108003+gordboy@users.noreply.github.com>
3 Date: Mon, 18 Mar 2019 22:04:56 +0000
4 Subject: [PATCH] Update to kernel 5.1
8 os_dep/osdep_service.c | 4 ++++
9 2 files changed, 5 insertions(+), 1 deletion(-)
11 diff --git a/README.md b/README.md
12 index 74514dc..074018d 100644
17 Only supports 8812AU chipset.
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.
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.
24 diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c
25 index 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)
32 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0))
33 + #define get_ds() (KERNEL_DS)
37 * Test if the specifi @param path is a file and readable
38 * If readable, @param sz is got