Code Monkey home page Code Monkey logo

rtl8811au's Introduction

rtl8811au driver for recent version of ubuntu

This repo contains a driver originally called rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51 with additional patches to get it to build on Ubuntu xenial 16.04.

I originally got the source code off a cd that came with this usb wifi adapter.

I tested on Ubuntu 16.04.2 LTS with kernel 4.4.0-64-generic using a "Heiyo Network Wi-Fi Dongle 802.11ac"

Building

sudo make clean
make -j 8
sudo make install

License

The driver license appears to be GPLv2

Similar repositories

The repository diederikdehaas/rtl8812AU appears to have newer and older versions of the RealTek driver. It also has a version supporting dkms.

rtl8811au's People

Contributors

sloretz 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8811au's Issues

Issues running make

make -j 8 failed as per the below commands.
I'm using Ubuntu 17.04 x64.

Before you read the full output I'll highlight the errors:
...

/home/james/rtl8811au/os_dep/linux/ioctl_linux.c:15619:5: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
  if(is_compat_task())
     ^~~~~~~~~~~~~~

...

/home/james/rtl8811au/os_dep/linux/rtw_android.c:581:6: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
  if (is_compat_task()) {
      ^~~~~~~~~~~~~~

...

james@james-Streacom:~$ git clone https://github.com/sloretz/rtl8811au.git
Cloning into 'rtl8811au'...
remote: Counting objects: 460, done.
remote: Total 460 (delta 0), reused 0 (delta 0), pack-reused 460
Receiving objects: 100% (460/460), 1.91 MiB | 580.00 KiB/s, done.
Resolving deltas: 100% (180/180), done.
james@james-Streacom:~$ cd rtl8811au
james@james-Streacom:~/rtl8811au$ sudo make clean
[sudo] password for james: 
cd hal/OUTSRC/ ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal/OUTSRC/ ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal/led ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd hal ; rm -fr */*/*.mod.c */*/*.mod */*/*.o */*/.*.cmd */*/*.ko
cd hal ; rm -fr */*.mod.c */*.mod */*.o */.*.cmd */*.ko
cd hal ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core/efuse ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd core ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep/linux ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
cd platform ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~
rm -fr .tmp_versions
james@james-Streacom:~/rtl8811au$ make -j 8
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-35-generic/build M=/home/james/rtl8811au  modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-35-generic'
  CC [M]  /home/james/rtl8811au/core/rtw_cmd.o
  CC [M]  /home/james/rtl8811au/core/rtw_security.o
  CC [M]  /home/james/rtl8811au/core/rtw_debug.o
  CC [M]  /home/james/rtl8811au/core/rtw_ioctl_query.o
  CC [M]  /home/james/rtl8811au/core/rtw_io.o
  CC [M]  /home/james/rtl8811au/core/rtw_ieee80211.o
  CC [M]  /home/james/rtl8811au/core/rtw_ioctl_set.o
  CC [M]  /home/james/rtl8811au/core/rtw_mlme.o
/home/james/rtl8811au/core/rtw_security.c: In function ‘aes_cipher’:
/home/james/rtl8811au/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/james/rtl8811au/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/home/james/rtl8811au/core/rtw_mlme.c: In function ‘rtw_restructure_ht_ie’:
/home/james/rtl8811au/core/rtw_mlme.c:3971:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if (stbc_rx_enable)
   ^~
/home/james/rtl8811au/core/rtw_mlme.c:3974:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
                  set_mcs_rate_by_mask(ht_capie.supp_mcs_set, MCS_RATE_1R);
                  ^~~~~~~~~~~~~~~~~~~~
/home/james/rtl8811au/core/rtw_security.c: In function ‘aes_decipher’:
/home/james/rtl8811au/core/rtw_security.c:1984:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/james/rtl8811au/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
  CC [M]  /home/james/rtl8811au/core/rtw_mlme_ext.o
  CC [M]  /home/james/rtl8811au/core/rtw_wlan_util.o
  CC [M]  /home/james/rtl8811au/core/rtw_vht.o
  CC [M]  /home/james/rtl8811au/core/rtw_pwrctrl.o
  CC [M]  /home/james/rtl8811au/core/rtw_rf.o
  CC [M]  /home/james/rtl8811au/core/rtw_recv.o
  CC [M]  /home/james/rtl8811au/core/rtw_sta_mgt.o
  CC [M]  /home/james/rtl8811au/core/rtw_ap.o
  CC [M]  /home/james/rtl8811au/core/rtw_xmit.o
  CC [M]  /home/james/rtl8811au/core/rtw_p2p.o
  CC [M]  /home/james/rtl8811au/core/rtw_tdls.o
  CC [M]  /home/james/rtl8811au/core/rtw_br_ext.o
  CC [M]  /home/james/rtl8811au/core/rtw_iol.o
  CC [M]  /home/james/rtl8811au/core/rtw_sreset.o
  CC [M]  /home/james/rtl8811au/core/rtw_btcoex.o
  CC [M]  /home/james/rtl8811au/core/rtw_beamforming.o
  CC [M]  /home/james/rtl8811au/core/rtw_odm.o
  CC [M]  /home/james/rtl8811au/core/efuse/rtw_efuse.o
  CC [M]  /home/james/rtl8811au/os_dep/osdep_service.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/os_intfs.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/usb_intf.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/ioctl_linux.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/xmit_linux.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/mlme_linux.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/recv_linux.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/wifi_regd.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/james/rtl8811au/os_dep/linux/rtw_android.o
/home/james/rtl8811au/os_dep/linux/ioctl_linux.c: In function ‘rtw_mp_read_reg’:
/home/james/rtl8811au/os_dep/linux/ioctl_linux.c:11255:8: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
        if ( data[i] != '\0' )
        ^~
/home/james/rtl8811au/os_dep/linux/ioctl_linux.c:11258:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
          j++;
          ^
/home/james/rtl8811au/os_dep/linux/ioctl_linux.c: In function ‘rtw_ioctl_wext_private’:
/home/james/rtl8811au/os_dep/linux/ioctl_linux.c:15619:5: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
  if(is_compat_task())
     ^~~~~~~~~~~~~~
  CC [M]  /home/james/rtl8811au/os_dep/linux/rtw_proc.o
  CC [M]  /home/james/rtl8811au/hal/hal_intf.o
  CC [M]  /home/james/rtl8811au/hal/hal_com.o
  CC [M]  /home/james/rtl8811au/hal/hal_com_phycfg.o
/home/james/rtl8811au/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/james/rtl8811au/os_dep/linux/rtw_android.c:581:6: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
  if (is_compat_task()) {
      ^~~~~~~~~~~~~~
  CC [M]  /home/james/rtl8811au/hal/hal_phy.o
  CC [M]  /home/james/rtl8811au/hal/hal_dm.o
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/james/rtl8811au/os_dep/linux/rtw_android.o' failed
make[2]: *** [/home/james/rtl8811au/os_dep/linux/rtw_android.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
scripts/Makefile.build:294: recipe for target '/home/james/rtl8811au/os_dep/linux/ioctl_linux.o' failed
make[2]: *** [/home/james/rtl8811au/os_dep/linux/ioctl_linux.o] Error 1
Makefile:1524: recipe for target '_module_/home/james/rtl8811au' failed
make[1]: *** [_module_/home/james/rtl8811au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-35-generic'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2

build fails on Ubuntu 16.10 x86_64

FYI...

$ make -j 8
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.8.0-39-generic/build M=/home/linuxDrivers0/rtl8811au modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-39-generic'
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_cmd.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_security.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_debug.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_io.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_mlme.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_ioctl_query.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_ieee80211.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_ioctl_set.o
/home/linuxDrivers0/rtl8811au/core/rtw_security.c: In function ‘aes_cipher’:
/home/linuxDrivers0/rtl8811au/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (j = 0; j < 8; j++)
^~~
/home/linuxDrivers0/rtl8811au/core/rtw_security.c:1601:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
payload_index = hdrlen + 8;
^~~~~~~~~~~~~
/home/linuxDrivers0/rtl8811au/core/rtw_security.c: In function ‘aes_decipher’:
/home/linuxDrivers0/rtl8811au/core/rtw_security.c:1984:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (j = 0; j < 8; j++)
^~~
/home/linuxDrivers0/rtl8811au/core/rtw_security.c:1987:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
payload_index = hdrlen + 8;
^~~~~~~~~~~~~
/home/linuxDrivers0/rtl8811au/core/rtw_mlme.c: In function ‘rtw_restructure_ht_ie’:
/home/linuxDrivers0/rtl8811au/core/rtw_mlme.c:3971:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (stbc_rx_enable)
^~
/home/linuxDrivers0/rtl8811au/core/rtw_mlme.c:3974:18: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
set_mcs_rate_by_mask(ht_capie.supp_mcs_set, MCS_RATE_1R);
^~~~~~~~~~~~~~~~~~~~
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_mlme_ext.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_wlan_util.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_vht.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_pwrctrl.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_rf.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_recv.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_sta_mgt.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_ap.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_xmit.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_p2p.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_tdls.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_br_ext.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_iol.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_sreset.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_btcoex.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_beamforming.o
CC [M] /home/linuxDrivers0/rtl8811au/core/rtw_odm.o
CC [M] /home/linuxDrivers0/rtl8811au/core/efuse/rtw_efuse.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/os_intfs.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/osdep_service.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/usb_intf.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/usb_ops_linux.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/xmit_linux.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/mlme_linux.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/recv_linux.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_cfg80211.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_cfgvendor.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/wifi_regd.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_android.o
CC [M] /home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_proc.o
/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.c: In function ‘rtw_mp_read_reg’:
/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.c:11255:8: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if ( data[i] != '\0' )
^~
/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.c:11258:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
j++;
^
CC [M] /home/linuxDrivers0/rtl8811au/hal/hal_intf.o
/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.c: In function ‘rtw_ioctl_wext_private’:
/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.c:15619:5: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
if(is_compat_task())
^~~~~~~~~~~~~~
CC [M] /home/linuxDrivers0/rtl8811au/hal/hal_com.o
CC [M] /home/linuxDrivers0/rtl8811au/hal/hal_com_phycfg.o
CC [M] /home/linuxDrivers0/rtl8811au/hal/hal_phy.o
CC [M] /home/linuxDrivers0/rtl8811au/hal/hal_dm.o
/home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_android.c: In function ‘rtw_android_priv_cmd’:
/home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_android.c:581:6: error: implicit declaration of function ‘is_compat_task’ [-Werror=implicit-function-declaration]
if (is_compat_task()) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_android.o' failed
make[2]: *** [/home/linuxDrivers0/rtl8811au/os_dep/linux/rtw_android.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.o' failed
make[2]: *** [/home/linuxDrivers0/rtl8811au/os_dep/linux/ioctl_linux.o] Error 1
Makefile:1491: recipe for target 'module/home/linuxDrivers0/rtl8811au' failed
make[1]: *** [module/home/linuxDrivers0/rtl8811au] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-39-generic'
Makefile:1551: recipe for target 'modules' failed
make: *** [modules] Error 2

make errors

I get two errors early on in compiling with Fedora 29.

~/build/rtl8811au/rtl8811au-master> make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.11-100.fc29.x86_64/build M=/home/how2/build/rtl8811au/rtl8811au-master modules make[1]: Entering directory '/usr/src/kernels/5.3.11-100.fc29.x86_64' CC [M] /home/how2/build/rtl8811au/rtl8811au-master/core/rtw_cmd.o In file included from /home/how2/build/rtl8811au/rtl8811au-master/include/osdep_service.h:41, from /home/how2/build/rtl8811au/rtl8811au-master/include/drv_types.h:32, from /home/how2/build/rtl8811au/rtl8811au-master/core/rtw_cmd.c:22: /home/how2/build/rtl8811au/rtl8811au-master/include/osdep_service_linux.h: In function ‘_init_timer’: /home/how2/build/rtl8811au/rtl8811au-master/include/osdep_service_linux.h:267:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^~ /home/how2/build/rtl8811au/rtl8811au-master/include/osdep_service_linux.h:268:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration] init_timer(ptimer); ^~~~~~~~~~ _init_timer /home/how2/build/rtl8811au/rtl8811au-master/core/rtw_cmd.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-address-of-packed-member’ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:281: /home/how2/build/rtl8811au/rtl8811au-master/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1630: _module_/home/how2/build/rtl8811au/rtl8811au-master] Error 2 make[1]: Leaving directory '/usr/src/kernels/5.3.11-100.fc29.x86_64' make: *** [Makefile:1551: modules] Error 2

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.