From 187be66f2fcf0ff6c722ec407d96d5399e7dcedb Mon Sep 17 00:00:00 2001 From: Aleksandr Shugurov Date: Fri, 2 Aug 2019 09:54:48 -0400 Subject: [PATCH] linux kernel 5.x. Ubuntu 19.04 --- Makefile | 3 +++ os_dep/linux/rtw_android.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 870ae2e..b27a70f 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused +EXTRA_CFLAGS += -Wno-incompatible-pointer-types +EXTRA_CFLAGS += -Wno-implicit-function-declaration + EXTRA_CFLAGS += -Wno-uninitialized EXTRA_CFLAGS += -Wno-int-to-pointer-cast diff --git a/os_dep/linux/rtw_android.c b/os_dep/linux/rtw_android.c index d56c2ec..8932dc7 100644 --- a/os_dep/linux/rtw_android.c +++ b/os_dep/linux/rtw_android.c @@ -352,7 +352,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) goto exit; } - if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){ + if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){ DBG_871X("%s: failed to access memory\n", __FUNCTION__); ret = -EFAULT; goto exit;