I have followed the instructions given here:
Currently using version 4.13.0-36-generic
kernel
How to install TP-LINK T2UH Wireless adapter Driver (Ralink mt7610u)
However the problem is when i get to make
command i get the error
In function ‘memcpy’,
inlined from ‘rt_ioctl_iwaplist’ at /home/dev/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/sta_ioctl.c:696:2:
./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
__read_overflow2();
I found this GitHub issue comment as a potential solution:
[...] I guess that Arch (and maybe other distros too) use different (more pedantic) options to build the kernel and its modules, helping us to find programming mistakes. I am not sure whether this is correct, but you can try this (and please report back whether it worked):
In
os/linux/sta_ioctl.c:549
, replaceaddr[0]
withstruct sockaddr
so the line looks like thismemcpy(extra, addr, i*sizeof(struct sockaddr));
instead of
memcpy(extra, addr, i*sizeof(addr[0]));
I applied this solution (changed the lines) but the problem still remains.
Anyone know how to fix this?