Giter Site home page Giter Site logo

its-izhar / rtl88x2bu-driver Goto Github PK

View Code? Open in Web Editor NEW
38.0 7.0 17.0 7.2 MB

Linux Kernel 4.15 and above compatible realtek driver for RTL8812BU/RTL8822BU chipset (Inamax/Edimax USB Wifi Adapters)

Makefile 0.31% Shell 0.01% C 96.90% C++ 2.42% Objective-C 0.36%
linux-device-drivers linux-drivers wifi wifi-adaptors edimax inamax inamax-linux-driver edimax-linux-driver wifi-adapter-linux-driver

rtl88x2bu-driver's People

Contributors

its-izhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl88x2bu-driver's Issues

Trying to compile driver in Ubuntu 20 running into issues

I am following along with the build/installation steps in this github however once I get to the sudo insmod 88x2bu.ko portion I get this error: "insmod: ERROR: could not load module 88x2bu.ko: No such file or directory". Should I be in a certain directory before running this command.

cannot build the driver

Linux kernel:
Linux user-comp 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

I cloned it first:
git clone https://github.com/its-izhar/rtl88x2bu-driver.git

Here are the messages:

/home/user/rtl88x2bu-driver/os_dep/linux/os_intfs.c:1433:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/user/rtl88x2bu-driver/os_dep/linux/os_intfs.c:1433:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
CC [M] /home/user/rtl88x2bu-driver/os_dep/linux/ioctl_cfg80211.o
cc1: some warnings being treated as errors
scripts/Makefile.build:330: recipe for target '/home/user/rtl88x2bu-driver/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/user/rtl88x2bu-driver/os_dep/linux/os_intfs.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1577: recipe for target 'module/home/user/rtl88x2bu-driver' failed
make[1]: *** [module/home/user/rtl88x2bu-driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-66-generic'
Makefile:1986: recipe for target 'modules' failed
make: *** [modules] Error 2

fails to compile with kernel 4.19+

Here's the complete error output followed by a web link to another bug report, with an included fix, that might be relevant.

~/rtl88x2bu-driver/os_dep/linux/os_intfs.c:1429:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,

"The interface of ndo_select_queue callback has changed.":
smlinux/rtl8723de#27

Kernel 5.1

replace get_ds() in rtl88x2bu-driver/os_dep/osdep_service.c with KERNEL_DS

Raspberry Pi Support

I used your driver to install on my Raspberry Pi 4 (Kernel 4.19). I had to change some flags to allow this, however. Here's my Makefile with a couple changes (defining CONFIG_PLATFORM_ARM_RPI)

feel free to update with this if you'd like.

Regards,
Dave

Makefile.txt

Hostpot very slow

Hello, i successful installed two TPLINK T4U AC 1300, in two different computers. I created a hostpot in one computer and the other is connected to it. My problem is that when i test the speed using iperf3, the maximum value that i obtain is 13MB/S. I switch to different channels, different bands (2.4 GHz and 5GHz), but changes were worst, i have never got more than 13MB/S. Please, i need some help to solving this. Thank you very much.

Kernel 5.0 support

Hi,
I'm using lubuntu 18.04 64 bit with kernel 5.0.x. With the previous kernel 4.15.x, the devices worked perfectly. Now I have many compilation errors. I solved some of them, but it still does not compile.
Can you help me?
Thank you

Can't compile with Ubuntu 20.10

Compiling with Ubuntu 20.10 gives these errors:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.0-26-generic/build M=/usr/src/rtl88x2bu-driver modules
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-26-generic'
CC [M] /usr/src/rtl88x2bu-driver/core/rtw_cmd.o
In file included from /usr/src/rtl88x2bu-driver/include/drv_types.h:78,
from /usr/src/rtl88x2bu-driver/core/rtw_cmd.c:17:
/usr/src/rtl88x2bu-driver/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
252 | struct sha256_state {
| ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
from ./include/net/sock.h:59,
from ./include/linux/tcp.h:19,
from ./include/linux/ipv6.h:88,
from ./include/net/addrconf.h:50,
from /usr/src/rtl88x2bu-driver/include/osdep_service_linux.h:48,
from /usr/src/rtl88x2bu-driver/include/osdep_service.h:50,
from /usr/src/rtl88x2bu-driver/include/drv_types.h:27,
from /usr/src/rtl88x2bu-driver/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
84 | struct sha256_state {
| ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:290: /usr/src/rtl88x2bu-driver/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1780: /usr/src/rtl88x2bu-driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-26-generic'
make: *** [Makefile:1986: modules] Error 2

compile err

rtw_android.c:660:62
: error: macro "access_ok" passed 3 arguments, but takes just 2
if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) {
^

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.