Comments (5)
The function was deprecated on kernel 6.1.0
Change line 2609 on os_dep/osdep_service.c
to match the code below (adds a if clause and moves current if to and else-if)
#ifdef PLATFORM_LINUX
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
return get_random_u32();
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
return prandom_u32();
from rtl8812bu.
Please provide the error message and OS information 'uname -a'.
from rtl8812bu.
For kernel 5.11 or later, please clone the v5.13.1 branch:
sudo apt update
sudo apt install -y build-essential dkms git bc
git clone -b v5.13.1 https://github.com/fastoe/RTL8812BU.git
cd RTL8812BU
make
sudo make install
sudo reboot
from rtl8812bu.
/home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:2574:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2574 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ~~~~~~~^~~~~~~~~~ /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:922:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 922 | void _rtw_memcpy(void *dst, const void *src, u32 sz) | ~~~~~~^~~ /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c: In function ‘rtw_random32’: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:2698:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 2698 | return prandom_u32(); | ^~~~~~~~~~~ | prandom_u32_max cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.1.0-0-common/scripts/Makefile.build:255: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.1.0-0-common/Makefile:2017: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-0-amd64' make: *** [Makefile:2390: modules] Error 2
i have the same problem plz provide me with the soultion
i am trying it for the tp link wifi adapter
from rtl8812bu.
/home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c: In function ‘rtw_change_ifname’: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:2574:28: warning: passing argument 1 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2574 | _rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN); | ~~~~~~~^~~~~~~~~~ /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:922:24: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 922 | void _rtw_memcpy(void *dst, const void *src, u32 sz) | ~~~~~~^~~ /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c: In function ‘rtw_random32’: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.c:2698:16: error: implicit declaration of function ‘prandom_u32’; did you mean ‘prandom_u32_max’? [-Werror=implicit-function-declaration] 2698 | return prandom_u32(); | ^~~~~~~~~~~ | prandom_u32_max cc1: some warnings being treated as errors make[2]: *** [/usr/src/linux-headers-6.1.0-0-common/scripts/Makefile.build:255: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU/os_dep/osdep_service.o] Error 1 make[1]: *** [/usr/src/linux-headers-6.1.0-0-common/Makefile:2017: /home/lamby/temp/cdt.20221221115757.cmvTwmdtNA/RTL8812BU] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-0-amd64' make: *** [Makefile:2390: modules] Error 2
i have the same problem plz provide me with the soultion i am trying it for the tp link wifi adapter
Linux monster 6.1.0-kali7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.20-1kali1 (2023-03-22) x86_64 GNU/Linux
from rtl8812bu.
Related Issues (20)
- Make fails with kernel 5.17+ HOT 7
- Failed DKMS Installation
- Missing Files
- Add Zoolan Wireless USB WiFi Adapter AC1200
- Error while running the make command on Arch Linux Kernel version 5.18.10 HOT 4
- Add signed module.
- Parrot OS installation HOT 1
- NEED HELP(((
- Make Error HOT 2
- After Driver installation: Monitor Mode Error -95 HOT 1
- WiFi not connecting
- Please add a LICENSE
- install error HOT 1
- Debian 6.3.7-1 (2023-06-12) x86_64 GNU/Linux - make encounter an error HOT 2
- Errors when using make
- Error in kernel 6.3.0-kali1-amd64 HOT 2
- not working HOT 2
- Compatibility & Build Report -- Raspberry Pi 4, kernel 6.1.0-rpi7-rpi-v8 aarch64 HOT 1
- make failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtl8812bu.