mirror of
https://github.com/gnab/rtl8812au
synced 2024-11-22 13:24:47 +00:00
Fixed to work with kernel versions 5.0.x
This commit is contained in:
parent
f7c1f84da6
commit
c5f3d21507
@ -1,5 +1,5 @@
|
||||
PACKAGE_NAME=8812au
|
||||
PACKAGE_VERSION=4.2.2
|
||||
PACKAGE_VERSION=4.2.3
|
||||
|
||||
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless
|
||||
BUILT_MODULE_NAME=8812au
|
||||
|
@ -1 +1 @@
|
||||
#define DRIVERVERSION "v4.2.2_7502.20130517"
|
||||
#define DRIVERVERSION "v4.2.3"
|
||||
|
0
install.sh
Normal file → Executable file
0
install.sh
Normal file → Executable file
@ -352,7 +352,11 @@ 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 (LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0))
|
||||
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)){
|
||||
#else
|
||||
if (!access_ok(priv_cmd.buf, priv_cmd.total_len)){
|
||||
#endif
|
||||
DBG_871X("%s: failed to access memory\n", __FUNCTION__);
|
||||
ret = -EFAULT;
|
||||
goto exit;
|
||||
|
Loading…
Reference in New Issue
Block a user