[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

回复: RTL8821CE wifi can't work on Debian10



Still don't know how to do.Tring later.
But i have commented this issue at https://github.com/tomaspinho/rtl8821ce/issues/60. Hope tomaspinho resolve this bug.




------------------ 原始邮件 ------------------
发件人: "herve"<herve@couvelard.com>;
发送时间: 2019年8月12日(星期一) 晚上6:15
收件人: "debian-laptop"<debian-laptop@lists.debian.org>;
主题: Re: RTL8821CE wifi can't work on Debian10


Le 12/08/2019 à 04:05, 大将军王 a écrit :
> macro "access_ok" requires 3 arguments, but only 2 given





Looking at the kernel sources...

|$ grep -r 'define access_ok' /usr/src/kernels/
/usr/src/kernels/4.20.16-200.fc29.x86_64/arch/x86/include/asm/uaccess.h:#define
access_ok(type, addr, size)\
/usr/src/kernels/4.20.16-200.fc29.x86_64/include/asm-generic/uaccess.h:#define
access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))
/usr/src/kernels/4.20.15-200.fc29.x86_64/arch/x86/include/asm/uaccess.h:#define
access_ok(type, addr, size)\
/usr/src/kernels/4.20.15-200.fc29.x86_64/include/asm-generic/uaccess.h:#define
access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))
/usr/src/kernels/5.0.3-200.fc29.x86_64/arch/x86/include/asm/uaccess.h:#define
access_ok(addr, size) \
/usr/src/kernels/5.0.3-200.fc29.x86_64/include/asm-generic/uaccess.h:#define
access_ok(addr, size) __access_ok((unsigned long)(addr),(size)) |

... it seems that a previously unused |type| has been cleaned-up/removed
in newer kernels.


FYI, I changed||
<https://github.com/aircrack-ng/rtl8812au/blob/1c72e119d775a32dd8d44e5bdb6115c6fa8e7057/os_dep/linux/rtw_android.c#L614>
[...] to the following and compilation completed.

#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/* Linux kernel < 5.0.0 */

https://github.com/aircrack-ng/rtl8812au/issues/301


Reply to: