Fixed to work with kernel versions 5.0.x

This commit is contained in:
James Drabb Jr 2019-03-17 05:22:44 -04:00
parent f7c1f84da6
commit c5f3d21507
5 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -1 +1 @@
#define DRIVERVERSION "v4.2.2_7502.20130517"
#define DRIVERVERSION "v4.2.3"

0
install.sh Normal file → Executable file
View File

View 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;

4
runwpa
View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ "`which iwconfig`" = "" ] ; then
echo "WARNING:Wireless tool not exist!"
echo "WARNING:Wireless tool (iwconfig) not exist!"
echo " Please install it!"
exit
else
@ -16,5 +16,3 @@ else
fi
fi