Giter Club home page Giter Club logo

Comments (5)

averissimo avatar averissimo commented on July 19, 2024 6

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.

fastoe avatar fastoe commented on July 19, 2024

Please provide the error message and OS information 'uname -a'.

from rtl8812bu.

fastoe avatar fastoe commented on July 19, 2024

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.

hubgit115 avatar hubgit115 commented on July 19, 2024
/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.

hubgit115 avatar hubgit115 commented on July 19, 2024
/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.