Code Monkey home page Code Monkey logo

rtl8821cu's People

Contributors

m-gardet avatar whitebatman2 avatar ximi1970 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

rtl8821cu's Issues

DKMS error on Kali Linux

kali@kali:~$ DRV_NAME=rtl8821CU
kali@kali:~$ DRV_VERSION=5.2.5.3
kali@kali:~$ sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
mkdir: cannot create directory ‘/usr/src/rtl8821CU-5.2.5.3’: File exists
kali@kali:~$ git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
kali@kali:~$ sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}

Creating symlink /var/lib/dkms/rtl8821CU/5.2.5.3/source ->
                 /usr/src/rtl8821CU-5.2.5.3

DKMS: add completed.
kali@kali:~$ sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' KVER=5.5.0-kali1-amd64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.5.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/rtl8821CU/5.2.5.3/build/make.log for more information.
kali@kali:~$ sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' KVER=5.5.0-kali1-amd64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.5.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/rtl8821CU/5.2.5.3/build/make.log for more information.

can't work on TI's AM335x platform

i tried on the beagleboneBlack/blue and the pocketbeagle which based on TI's AM335x ...
doesn't work there...maybe cause in its makefile there is no supporting infor for TI's AM335x/ARM??

Debian 4.9.144-3 (2019-02-02) build fail

Linux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02) x86_64 GNU/Linux

/bin/sh: 1: bc: not found make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-8-amd64/build M=/root/rtl8821CU modules make[1]: Entering directory '/usr/src/linux-headers-4.9.0-8-amd64' /bin/sh: 1: bc: not found CC [M] /root/rtl8821CU/core/rtw_cmd.o CC [M] /root/rtl8821CU/core/rtw_security.o CC [M] /root/rtl8821CU/core/rtw_debug.o /root/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’: /root/rtl8821CU/core/rtw_debug.c:50:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__); ^ /root/rtl8821CU/core/rtw_debug.c:50:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] cc1: some warnings being treated as errors /usr/src/linux-headers-4.9.0-8-common/scripts/Makefile.build:309: recipe for target '/root/rtl8821CU/core/rtw_debug.o' failed make[4]: *** [/root/rtl8821CU/core/rtw_debug.o] Error 1 /usr/src/linux-headers-4.9.0-8-common/Makefile:1546: recipe for target '_module_/root/rtl8821CU' failed make[3]: *** [_module_/root/rtl8821CU] Error 2 Makefile:152: recipe for target 'sub-make' failed make[2]: *** [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-8-amd64' Makefile:1923: recipe for target 'modules' failed make: *** [modules] Error 2

Change the build instructions

Maybe it would be ok to change the build-instructions like this:

  1. DRV_NAME=rtl8821CU
  2. DRV_VERSION=5.2.5.3
  3. sudo mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
  4. cd /tmp/
  5. git clone https://github.com/whitebatman2/rtl8821CU.git
  6. cd rtl8821CU/
  7. git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}
  8. sudo dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
  9. sudo dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
  10. sudo dkms install -m ${DRV_NAME} -v ${DRV_VERSION}

Because some users are not so familiar with git.

Make dkms error for linux 4.20

DKMS make.log for rtl8821cu-5.2.5.3_24795.20171031.r18.g0278eaa for kernel 4.20.0-arch1-1-ARCH (x86_64)
Mon Dec 31 17:08:57 CST 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.20.0-arch1-1-ARCH/build M=/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build  modules
make[1]: Entering directory '/usr/lib/modules/4.20.0-arch1-1-ARCH/build'
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_io.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_debug.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_io.c:52:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_security.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_debug.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_io.c:52:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_security.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ieee80211.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_query.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_query.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme_ext.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_set.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ioctl_set.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ieee80211.c:25:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ieee80211.c:25:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mi.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/../hal/phydm/phydm_types.h:191,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/../hal/phydm/phydm_precomp.h:24,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/hal_data.h:25,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/../hal/phydm/phydm_types.h:191,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/../hal/phydm/phydm_precomp.h:24,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/hal_data.h:25,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme_ext.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mlme_ext.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_wlan_util.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mi.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_mi.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_wlan_util.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_wlan_util.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_pwrctrl.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_vht.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_vht.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_pwrctrl.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_pwrctrl.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ap.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_rf.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_rf.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_recv.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_recv.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sta_mgt.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sta_mgt.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_p2p.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ap.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_ap.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_p2p.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_p2p.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_xmit.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_xmit.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_br_ext.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_tdls.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_tdls.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex_wifionly.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_br_ext.c:32:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_br_ext.c:32:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_iol.c:21:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_iol.c:21:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_beamforming.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sreset.c:21:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_sreset.c:21:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex_wifionly.c:20:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex_wifionly.c:20:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/efuse/rtw_efuse.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_beamforming.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_beamforming.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_btcoex.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/os_intfs.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/rtw_odm.h:23,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_odm.c:21:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/rtw_odm.h:23,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/rtw_odm.c:21:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/efuse/rtw_efuse.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/core/efuse/rtw_efuse.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_intf.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/osdep_service.c:24:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/osdep_service.c:24:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/os_intfs.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/os_intfs.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_linux.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_intf.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_intf.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_ops_linux.c:21:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/usb_ops_linux.c:21:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/mlme_linux.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_linux.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_linux.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/recv_linux.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/xmit_linux.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/xmit_linux.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/mlme_linux.c:24:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/mlme_linux.c:24:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/recv_linux.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/recv_linux.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/wifi_regd.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_cfgvendor.c:21:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_cfgvendor.c:21:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/wifi_regd.c:7:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/wifi_regd.c:7:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_systime_us’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.c:339:2: error: implicit declaration of function ‘get_monotonic_boottime’; did you mean ‘getboottime’? [-Werror=implicit-function-declaration]
  get_monotonic_boottime(&ts);
  ^~~~~~~~~~~~~~~~~~~~~~
  getboottime
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.o
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_android.c:25:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_android.c:25:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:291: /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_proc.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/rtw_proc.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:35,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:22:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service_linux.h:86,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/osdep_service.h:47,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/include/drv_types.h:32,
                 from /var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:22:
./include/linux/ieee80211.h:1442: note: this is the location of the previous definition
 #define IEEE80211_MAX_AMPDU_BUF  0x100
 
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_write_reg’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:51:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_read_reg’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:133:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_write_rf’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:265:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_read_rf’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:307:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_rate’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:415:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_channel’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:463:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_bandwidth’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:491:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_txpower_index’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:524:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_txpower’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:549:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_ant_tx’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:587:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_ant_rx’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:633:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_disable_bt_coexist’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:809:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8 input[wrqu->data.length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_arx’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:843:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_pwrtrk’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1022:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_psd’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1060:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_dump’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1173:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_phypara’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1199:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_SetRFPath’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1225:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_QueryDrv’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1264:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  char input[wrqu->data.length];
  ^~~~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_PwrCtlDM’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1293:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->length];
  ^~
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c: In function ‘rtw_mp_hwtx’:
/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build/os_dep/linux/ioctl_mp.c:1935:2: warning: ISO C90 forbids variable length array ‘input’ [-Wvla]
  u8  input[wrqu->data.length];
  ^~
make[1]: *** [Makefile:1563: _module_/var/lib/dkms/rtl8821cu/5.2.5.3_24795.20171031.r18.g0278eaa/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.20.0-arch1-1-ARCH/build'
make: *** [Makefile:1923: modules] Error 2

Monitor Mode

Have you tried using this driver in monitor mode? I have enabled the switch in the Makefile and get some packets on a Wireshark capture, but there are definitely packets missing: RTS/CTS, beacons, etc. any ideas?

Error compiling on Raspberry Pi 3 Model B

Hello, I'm manually trying to compile this driver on raspberry pi 3 but I get this error:
/include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory
Makefile is configured as per guide.

How should I fix it?

Thanks.

EDIT:
Setting RPI to y instead of RPI3 let me compile. However even after modprobe no new interfaces are shown in ifconfig and weird things in dmesg when i plug in the dongle:

[  435.783610] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[  435.914773] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00
[  435.914790] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  435.914804] usb 1-1.2: Product: 802.11ac NIC
[  435.914818] usb 1-1.2: Manufacturer: Realtek
[  435.914831] usb 1-1.2: SerialNumber: 123456
[  436.101808] Bluetooth: Core ver 2.22
[  436.101878] NET: Registered protocol family 31
[  436.101884] Bluetooth: HCI device and connection manager initialized
[  436.101904] Bluetooth: HCI socket layer initialized
[  436.101914] Bluetooth: L2CAP socket layer initialized
[  436.101931] Bluetooth: SCO socket layer initialized
[  436.206991] 8821cu: loading out-of-tree module taints kernel.
[  436.236212] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[  436.238183] Bluetooth: hci0: RTL: rom_version status=0 version=1
[  436.238196] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[  436.238594] usbcore: registered new interface driver btusb
[  436.244577] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[  436.247611] Bluetooth: hci0: RTL: cfg_sz 10, total sz 21678
[  436.513388] ------------[ cut here ]------------
[  436.513581] WARNING: CPU: 1 PID: 1434 at net/wireless/core.c:867 wiphy_register+0xa08/0xd3c [cfg80211]
[  436.513653] Modules linked in: 8821cu(O+) btusb btrtl btintel btbcm bluetooth ecdh_generic ecc brcmfmac brcmutil sha256_generic libsha256 joydev cfg80211 rfkill bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon videodev mc vc_sm_cma(C) uio_pdrv_genirq uio fixed squashfs ip_tables x_tables ipv6
[  436.513742] CPU: 1 PID: 1434 Comm: systemd-udevd Tainted: G         C O      5.4.79-v7+ #1373
[  436.513745] Hardware name: BCM2835
[  436.513748] Backtrace: 
[  436.513765] [<8010dfa4>] (dump_backtrace) from [<8010e324>] (show_stack+0x20/0x24)
[  436.513774]  r7:ffffffff r6:00000000 r5:60000013 r4:80e97f70
[  436.513785] [<8010e304>] (show_stack) from [<80901174>] (dump_stack+0xd8/0x11c)
[  436.513794] [<8090109c>] (dump_stack) from [<80120548>] (__warn+0xe0/0x108)
[  436.513801]  r10:00000001 r9:00000009 r8:7f13ba08 r7:00000363 r6:00000009 r5:7f13ba08
[  436.513804]  r4:7f19dcac r3:00000000
[  436.513812] [<80120468>] (__warn) from [<80120910>] (warn_slowpath_fmt+0x70/0xc0)
[  436.513817]  r7:00000363 r6:7f19dcac r5:80e04f88 r4:00000000
[  436.513968] [<801208a4>] (warn_slowpath_fmt) from [<7f13ba08>] (wiphy_register+0xa08/0xd3c [cfg80211])
[  436.513975]  r9:00000000 r8:0000003a r7:7f1b2540 r6:ffffffea r5:80e04f88 r4:a2fed9c0
[  436.514400] [<7f13b000>] (wiphy_register [cfg80211]) from [<7f37014c>] (rtw_wiphy_register+0x24/0x28 [8821cu])
[  436.514407]  r10:00000001 r9:7f420d90 r8:be934e66 r7:00000000 r6:be935000 r5:a2fed000
[  436.514410]  r4:a2fed9c0
[  436.514905] [<7f370128>] (rtw_wiphy_register [8821cu]) from [<7f3704e0>] (rtw_cfg80211_ndev_res_register+0x20/0x2c [8821cu])
[  436.514919]  r5:a2fed000 r4:be932000
[  436.515389] [<7f3704c0>] (rtw_cfg80211_ndev_res_register [8821cu]) from [<7f359678>] (rtw_os_ndev_register+0x108/0x160 [8821cu])
[  436.515849] [<7f359570>] (rtw_os_ndev_register [8821cu]) from [<7f35a298>] (rtw_os_ndevs_register+0x90/0x138 [8821cu])
[  436.515864]  r9:7f420d90 r8:be932000 r7:7f420d50 r6:be932000 r5:b558e000 r4:00000000
[  436.516333] [<7f35a208>] (rtw_os_ndevs_register [8821cu]) from [<7f35a3b4>] (rtw_os_ndevs_init+0x34/0x4c [8821cu])
[  436.516340]  r10:b558e008 r9:b558e854 r8:b652b478 r7:b652b400 r6:be932000 r5:b7ea4a00
[  436.516344]  r4:b558e000 r3:00000001
[  436.516803] [<7f35a380>] (rtw_os_ndevs_init [8821cu]) from [<7f35b8e4>] (rtw_drv_init+0x2c0/0x38c [8821cu])
[  436.516811]  r5:b7ea4a00 r4:b558e000
[  436.517051] [<7f35b624>] (rtw_drv_init [8821cu]) from [<806da250>] (usb_probe_interface+0xe0/0x258)
[  436.517058]  r10:ffffffed r9:7f43e168 r8:b7ea4a00 r7:00000000 r6:7f43e0c8 r5:b652b400
[  436.517061]  r4:b7ea4a20
[  436.517069] [<806da170>] (usb_probe_interface) from [<8065b3a8>] (really_probe+0x1f0/0x354)
[  436.517079]  r10:00000000 r9:0000001c r8:7f43e0c8 r7:00000000 r6:80f51eb8 r5:b7ea4a20
[  436.517083]  r4:80f51eb4 r3:806da170
[  436.517090] [<8065b1b8>] (really_probe) from [<8065b704>] (driver_probe_device+0x70/0x194)
[  436.517097]  r10:80e04f88 r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:7f43e0c8
[  436.517100]  r4:b7ea4a20 r3:00000000
[  436.517107] [<8065b694>] (driver_probe_device) from [<8065ba18>] (device_driver_attach+0x68/0x70)
[  436.517113]  r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:00000000 r4:b7ea4a20
[  436.517120] [<8065b9b0>] (device_driver_attach) from [<8065ba88>] (__driver_attach+0x68/0xdc)
[  436.517125]  r7:8065ba20 r6:b7ea4a20 r5:7f43e0c8 r4:00000000
[  436.517133] [<8065ba20>] (__driver_attach) from [<806593a0>] (bus_for_each_dev+0x84/0xc4)
[  436.517139]  r7:8065ba20 r6:7f43e0c8 r5:80e04f88 r4:b95816b4
[  436.517147] [<8065931c>] (bus_for_each_dev) from [<8065abf0>] (driver_attach+0x2c/0x30)
[  436.517152]  r7:00000000 r6:b5ce3680 r5:80e765dc r4:7f43e0c8
[  436.517160] [<8065abc4>] (driver_attach) from [<8065a608>] (bus_add_driver+0x1c8/0x1e8)
[  436.517167] [<8065a440>] (bus_add_driver) from [<8065c144>] (driver_register+0x84/0x118)
[  436.517172]  r7:7f420dc8 r6:7f43e0c8 r5:80e765dc r4:7f43e0c8
[  436.517179] [<8065c0c0>] (driver_register) from [<806d8da0>] (usb_register_driver+0x88/0x144)
[  436.517183]  r5:80e765dc r4:7f43e090
[  436.517421] [<806d8d18>] (usb_register_driver) from [<7f4dc060>] (rtw_drv_entry+0x60/0x1000 [8821cu])
[  436.517429]  r9:b3e8ff30 r8:7f47ef00 r7:00000000 r6:a2fdf7c0 r5:7f4dc000 r4:7f43e090
[  436.517665] [<7f4dc000>] (rtw_drv_entry [8821cu]) from [<801030c4>] (do_one_initcall+0x50/0x25c)
[  436.517672]  r5:7f4dc000 r4:80e04f88
[  436.517681] [<80103074>] (do_one_initcall) from [<801bdf5c>] (do_init_module+0x70/0x264)
[  436.517687]  r8:7f47ef00 r7:a2fdf800 r6:a2fdf7c0 r5:a2fdf8c0 r4:7f47ef00
[  436.517694] [<801bdeec>] (do_init_module) from [<801c05b4>] (load_module+0x2368/0x266c)
[  436.517698]  r6:a2fdf7c0 r5:00000002 r4:00000002
[  436.517705] [<801be24c>] (load_module) from [<801c0b1c>] (sys_finit_module+0xd4/0xec)
[  436.517712]  r10:0000017b r9:b3e8e000 r8:801011c4 r7:00000006 r6:76da08e0 r5:00000000
[  436.517715]  r4:80e04f88
[  436.517722] [<801c0a48>] (sys_finit_module) from [<801011a4>] (__sys_trace_return+0x0/0x1c)
[  436.517726] Exception stack(0xb3e8ffa8 to 0xb3e8fff0)
[  436.517731] ffa0:                   6beeb700 00000000 00000006 76da08e0 00000000 76da13f4
[  436.517738] ffc0: 6beeb700 00000000 00000000 0000017b 014e8878 004b21dc 015219a8 00000000
[  436.517742] ffe0: 7e941218 7e941208 76d979d8 76e87af0
[  436.517748]  r7:0000017b r6:00000000 r5:00000000 r4:6beeb700
[  436.517752] ---[ end trace 2d17caad49334e08 ]---
[  436.517759] ------------[ cut here ]------------
[  436.517998] WARNING: CPU: 1 PID: 1434 at /home/dietpi/rtl8821CU/os_dep/linux/os_intfs.c:1505 rtw_os_ndev_register+0x88/0x160 [8821cu]
[  436.518003] Modules linked in: 8821cu(O+) btusb btrtl btintel btbcm bluetooth ecdh_generic ecc brcmfmac brcmutil sha256_generic libsha256 joydev cfg80211 rfkill bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon videodev mc vc_sm_cma(C) uio_pdrv_genirq uio fixed squashfs ip_tables x_tables ipv6
[  436.518087] CPU: 1 PID: 1434 Comm: systemd-udevd Tainted: G        WC O      5.4.79-v7+ #1373
[  436.518089] Hardware name: BCM2835
[  436.518091] Backtrace: 
[  436.518102] [<8010dfa4>] (dump_backtrace) from [<8010e324>] (show_stack+0x20/0x24)
[  436.518107]  r7:ffffffff r6:00000000 r5:60000013 r4:80e97f70
[  436.518117] [<8010e304>] (show_stack) from [<80901174>] (dump_stack+0xd8/0x11c)
[  436.518126] [<8090109c>] (dump_stack) from [<80120548>] (__warn+0xe0/0x108)
[  436.518132]  r10:00000001 r9:00000009 r8:7f3595f8 r7:000005e1 r6:00000009 r5:7f3595f8
[  436.518136]  r4:7f420d50 r3:00000000
[  436.518143] [<80120468>] (__warn) from [<80120910>] (warn_slowpath_fmt+0x70/0xc0)
[  436.518149]  r7:000005e1 r6:7f420d50 r5:80e04f88 r4:00000000
[  436.518388] [<801208a4>] (warn_slowpath_fmt) from [<7f3595f8>] (rtw_os_ndev_register+0x88/0x160 [8821cu])
[  436.518397]  r9:7f420d90 r8:be934e66 r7:00000000 r6:be935000 r5:a2fed000 r4:be932000
[  436.518859] [<7f359570>] (rtw_os_ndev_register [8821cu]) from [<7f35a298>] (rtw_os_ndevs_register+0x90/0x138 [8821cu])
[  436.518869]  r9:7f420d90 r8:be932000 r7:7f420d50 r6:be932000 r5:b558e000 r4:00000000
[  436.519331] [<7f35a208>] (rtw_os_ndevs_register [8821cu]) from [<7f35a3b4>] (rtw_os_ndevs_init+0x34/0x4c [8821cu])
[  436.519338]  r10:b558e008 r9:b558e854 r8:b652b478 r7:b652b400 r6:be932000 r5:b7ea4a00
[  436.519341]  r4:b558e000 r3:00000001
[  436.519801] [<7f35a380>] (rtw_os_ndevs_init [8821cu]) from [<7f35b8e4>] (rtw_drv_init+0x2c0/0x38c [8821cu])
[  436.519809]  r5:b7ea4a00 r4:b558e000
[  436.520048] [<7f35b624>] (rtw_drv_init [8821cu]) from [<806da250>] (usb_probe_interface+0xe0/0x258)
[  436.520055]  r10:ffffffed r9:7f43e168 r8:b7ea4a00 r7:00000000 r6:7f43e0c8 r5:b652b400
[  436.520058]  r4:b7ea4a20
[  436.520066] [<806da170>] (usb_probe_interface) from [<8065b3a8>] (really_probe+0x1f0/0x354)
[  436.520076]  r10:00000000 r9:0000001c r8:7f43e0c8 r7:00000000 r6:80f51eb8 r5:b7ea4a20
[  436.520081]  r4:80f51eb4 r3:806da170
[  436.520087] [<8065b1b8>] (really_probe) from [<8065b704>] (driver_probe_device+0x70/0x194)
[  436.520094]  r10:80e04f88 r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:7f43e0c8
[  436.520097]  r4:b7ea4a20 r3:00000000
[  436.520103] [<8065b694>] (driver_probe_device) from [<8065ba18>] (device_driver_attach+0x68/0x70)
[  436.520110]  r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:00000000 r4:b7ea4a20
[  436.520117] [<8065b9b0>] (device_driver_attach) from [<8065ba88>] (__driver_attach+0x68/0xdc)
[  436.520122]  r7:8065ba20 r6:b7ea4a20 r5:7f43e0c8 r4:00000000
[  436.520129] [<8065ba20>] (__driver_attach) from [<806593a0>] (bus_for_each_dev+0x84/0xc4)
[  436.520135]  r7:8065ba20 r6:7f43e0c8 r5:80e04f88 r4:b95816b4
[  436.520143] [<8065931c>] (bus_for_each_dev) from [<8065abf0>] (driver_attach+0x2c/0x30)
[  436.520148]  r7:00000000 r6:b5ce3680 r5:80e765dc r4:7f43e0c8
[  436.520156] [<8065abc4>] (driver_attach) from [<8065a608>] (bus_add_driver+0x1c8/0x1e8)
[  436.520163] [<8065a440>] (bus_add_driver) from [<8065c144>] (driver_register+0x84/0x118)
[  436.520168]  r7:7f420dc8 r6:7f43e0c8 r5:80e765dc r4:7f43e0c8
[  436.520175] [<8065c0c0>] (driver_register) from [<806d8da0>] (usb_register_driver+0x88/0x144)
[  436.520179]  r5:80e765dc r4:7f43e090
[  436.520417] [<806d8d18>] (usb_register_driver) from [<7f4dc060>] (rtw_drv_entry+0x60/0x1000 [8821cu])
[  436.520424]  r9:b3e8ff30 r8:7f47ef00 r7:00000000 r6:a2fdf7c0 r5:7f4dc000 r4:7f43e090
[  436.520660] [<7f4dc000>] (rtw_drv_entry [8821cu]) from [<801030c4>] (do_one_initcall+0x50/0x25c)
[  436.520668]  r5:7f4dc000 r4:80e04f88
[  436.520677] [<80103074>] (do_one_initcall) from [<801bdf5c>] (do_init_module+0x70/0x264)
[  436.520683]  r8:7f47ef00 r7:a2fdf800 r6:a2fdf7c0 r5:a2fdf8c0 r4:7f47ef00
[  436.520690] [<801bdeec>] (do_init_module) from [<801c05b4>] (load_module+0x2368/0x266c)
[  436.520694]  r6:a2fdf7c0 r5:00000002 r4:00000002
[  436.520701] [<801be24c>] (load_module) from [<801c0b1c>] (sys_finit_module+0xd4/0xec)
[  436.520707]  r10:0000017b r9:b3e8e000 r8:801011c4 r7:00000006 r6:76da08e0 r5:00000000
[  436.520710]  r4:80e04f88
[  436.520718] [<801c0a48>] (sys_finit_module) from [<801011a4>] (__sys_trace_return+0x0/0x1c)
[  436.520721] Exception stack(0xb3e8ffa8 to 0xb3e8fff0)
[  436.520727] ffa0:                   6beeb700 00000000 00000006 76da08e0 00000000 76da13f4
[  436.520734] ffc0: 6beeb700 00000000 00000000 0000017b 014e8878 004b21dc 015219a8 00000000
[  436.520738] ffe0: 7e941218 7e941208 76d979d8 76e87af0
[  436.520743]  r7:0000017b r6:00000000 r5:00000000 r4:6beeb700
[  436.520748] ---[ end trace 2d17caad49334e09 ]---
[  436.563545] ------------[ cut here ]------------
[  436.563877] WARNING: CPU: 1 PID: 1434 at /home/dietpi/rtl8821CU/os_dep/linux/os_intfs.c:2739 rtw_os_ndevs_register+0x108/0x138 [8821cu]
[  436.563883] Modules linked in: 8821cu(O+) btusb btrtl btintel btbcm bluetooth ecdh_generic ecc brcmfmac brcmutil sha256_generic libsha256 joydev cfg80211 rfkill bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common raspberrypi_hwmon videodev mc vc_sm_cma(C) uio_pdrv_genirq uio fixed squashfs ip_tables x_tables ipv6
[  436.563967] CPU: 1 PID: 1434 Comm: systemd-udevd Tainted: G        WC O      5.4.79-v7+ #1373
[  436.563970] Hardware name: BCM2835
[  436.563973] Backtrace: 
[  436.563986] [<8010dfa4>] (dump_backtrace) from [<8010e324>] (show_stack+0x20/0x24)
[  436.563992]  r7:ffffffff r6:00000000 r5:60000013 r4:80e97f70
[  436.564002] [<8010e304>] (show_stack) from [<80901174>] (dump_stack+0xd8/0x11c)
[  436.564011] [<8090109c>] (dump_stack) from [<80120548>] (__warn+0xe0/0x108)
[  436.564019]  r10:00000001 r9:00000009 r8:7f35a310 r7:00000ab3 r6:00000009 r5:7f35a310
[  436.564023]  r4:7f420d50 r3:00000000
[  436.564030] [<80120468>] (__warn) from [<80120910>] (warn_slowpath_fmt+0x70/0xc0)
[  436.564036]  r7:00000ab3 r6:7f420d50 r5:80e04f88 r4:00000000
[  436.564304] [<801208a4>] (warn_slowpath_fmt) from [<7f35a310>] (rtw_os_ndevs_register+0x108/0x138 [8821cu])
[  436.564311]  r9:7f420d90 r8:be932000 r7:7f420d50 r6:00000000 r5:b558e000 r4:00000000
[  436.564775] [<7f35a208>] (rtw_os_ndevs_register [8821cu]) from [<7f35a3b4>] (rtw_os_ndevs_init+0x34/0x4c [8821cu])
[  436.564782]  r10:b558e008 r9:b558e854 r8:b652b478 r7:b652b400 r6:be932000 r5:b7ea4a00
[  436.564786]  r4:b558e000 r3:00000001
[  436.565245] [<7f35a380>] (rtw_os_ndevs_init [8821cu]) from [<7f35b8e4>] (rtw_drv_init+0x2c0/0x38c [8821cu])
[  436.565249]  r5:b7ea4a00 r4:b558e000
[  436.565484] [<7f35b624>] (rtw_drv_init [8821cu]) from [<806da250>] (usb_probe_interface+0xe0/0x258)
[  436.565491]  r10:ffffffed r9:7f43e168 r8:b7ea4a00 r7:00000000 r6:7f43e0c8 r5:b652b400
[  436.565494]  r4:b7ea4a20
[  436.565503] [<806da170>] (usb_probe_interface) from [<8065b3a8>] (really_probe+0x1f0/0x354)
[  436.565510]  r10:00000000 r9:0000001c r8:7f43e0c8 r7:00000000 r6:80f51eb8 r5:b7ea4a20
[  436.565513]  r4:80f51eb4 r3:806da170
[  436.565521] [<8065b1b8>] (really_probe) from [<8065b704>] (driver_probe_device+0x70/0x194)
[  436.565527]  r10:80e04f88 r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:7f43e0c8
[  436.565531]  r4:b7ea4a20 r3:00000000
[  436.565538] [<8065b694>] (driver_probe_device) from [<8065ba18>] (device_driver_attach+0x68/0x70)
[  436.565544]  r9:b3e8ff30 r8:7f47ef00 r7:8065ba20 r6:7f43e0c8 r5:00000000 r4:b7ea4a20
[  436.565551] [<8065b9b0>] (device_driver_attach) from [<8065ba88>] (__driver_attach+0x68/0xdc)
[  436.565556]  r7:8065ba20 r6:b7ea4a20 r5:7f43e0c8 r4:00000000
[  436.565565] [<8065ba20>] (__driver_attach) from [<806593a0>] (bus_for_each_dev+0x84/0xc4)
[  436.565570]  r7:8065ba20 r6:7f43e0c8 r5:80e04f88 r4:b95816b4
[  436.565579] [<8065931c>] (bus_for_each_dev) from [<8065abf0>] (driver_attach+0x2c/0x30)
[  436.565584]  r7:00000000 r6:b5ce3680 r5:80e765dc r4:7f43e0c8
[  436.565592] [<8065abc4>] (driver_attach) from [<8065a608>] (bus_add_driver+0x1c8/0x1e8)
[  436.565599] [<8065a440>] (bus_add_driver) from [<8065c144>] (driver_register+0x84/0x118)
[  436.565605]  r7:7f420dc8 r6:7f43e0c8 r5:80e765dc r4:7f43e0c8
[  436.565612] [<8065c0c0>] (driver_register) from [<806d8da0>] (usb_register_driver+0x88/0x144)
[  436.565616]  r5:80e765dc r4:7f43e090
[  436.565849] [<806d8d18>] (usb_register_driver) from [<7f4dc060>] (rtw_drv_entry+0x60/0x1000 [8821cu])
[  436.565856]  r9:b3e8ff30 r8:7f47ef00 r7:00000000 r6:a2fdf7c0 r5:7f4dc000 r4:7f43e090
[  436.566091] [<7f4dc000>] (rtw_drv_entry [8821cu]) from [<801030c4>] (do_one_initcall+0x50/0x25c)
[  436.566095]  r5:7f4dc000 r4:80e04f88
[  436.566103] [<80103074>] (do_one_initcall) from [<801bdf5c>] (do_init_module+0x70/0x264)
[  436.566109]  r8:7f47ef00 r7:a2fdf800 r6:a2fdf7c0 r5:a2fdf8c0 r4:7f47ef00
[  436.566116] [<801bdeec>] (do_init_module) from [<801c05b4>] (load_module+0x2368/0x266c)
[  436.566120]  r6:a2fdf7c0 r5:00000002 r4:00000002
[  436.566127] [<801be24c>] (load_module) from [<801c0b1c>] (sys_finit_module+0xd4/0xec)
[  436.566134]  r10:0000017b r9:b3e8e000 r8:801011c4 r7:00000006 r6:76da08e0 r5:00000000
[  436.566136]  r4:80e04f88
[  436.566144] [<801c0a48>] (sys_finit_module) from [<801011a4>] (__sys_trace_return+0x0/0x1c)
[  436.566147] Exception stack(0xb3e8ffa8 to 0xb3e8fff0)
[  436.566153] ffa0:                   6beeb700 00000000 00000006 76da08e0 00000000 76da13f4
[  436.566160] ffc0: 6beeb700 00000000 00000000 0000017b 014e8878 004b21dc 015219a8 00000000
[  436.566164] ffe0: 7e941218 7e941208 76d979d8 76e87af0
[  436.566170]  r7:0000017b r6:00000000 r5:00000000 r4:6beeb700
[  436.566174] ---[ end trace 2d17caad49334e0a ]---
[  436.567005] usbcore: registered new interface driver rtl8821cu
[  436.745082] Bluetooth: hci0: RTL: fw version 0x826ca99e
[  438.883620] WARN::dwc_otg_hcd_urb_dequeue:639: Timed out waiting for FSM NP transfer to complete on 4

Driver crash after a few hours of uptime

[293120.364476] ------------[ cut here ]------------ [293120.364774] WARNING: CPU: 2 PID: 387 at /var/lib/dkms/rtl8821CU/5.2.5.3/build/hal/rtl8821c/rtl8821c_phy.c:864 rtl8821c_switch_chnl_and_set_bw+0x150/0x204 [8821cu] [293120.364783] Modules linked in: nft_counter nft_chain_nat_ipv4 ipt_MASQUERADE nf_nat_ipv4 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables nfnetlink tun rfcomm bnep hci_uart btbcm serdev bluetooth ecdh_generic appletalk psnap ax25 sg evdev r820t rtl2832 i2c_mux dvb_usb_rtl28xxu dvb_usb_v2 dvb_core uas 8821cu(O) raspberrypi_hwmon hwmon brcmfmac snd_bcm2835(C) brcmutil bcm2835_codec(C) bcm2835_v4l2(C) snd_pcm v4l2_mem2mem bcm2835_mmal_vchiq(C) snd_timer videobuf2_dma_contig v4l2_common videobuf2_vmalloc snd videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma(C) uio_pdrv_genirq uio fixed 8021q garp stp llc 8192cu sha256_generic cfg80211 rfkill ip_tables x_tables ipv6 [293120.364957] CPU: 2 PID: 387 Comm: RTW_CMD_THREAD Tainted: G WC O 4.19.66-v7+ #1253 [293120.364961] Hardware name: BCM2835 [293120.364979] [<80111f38>] (unwind_backtrace) from [<8010d4b0>] (show_stack+0x20/0x24) [293120.364988] [<8010d4b0>] (show_stack) from [<808191e0>] (dump_stack+0xd4/0x118) [293120.364997] [<808191e0>] (dump_stack) from [<801209c8>] (__warn+0x104/0x11c) [293120.365007] [<801209c8>] (__warn) from [<80120b18>] (warn_slowpath_null+0x50/0x58) [293120.365267] [<80120b18>] (warn_slowpath_null) from [<7f66a6c0>] (rtl8821c_switch_chnl_and_set_bw+0x150/0x204 [8821cu]) [293120.365707] [<7f66a6c0>] (rtl8821c_switch_chnl_and_set_bw [8821cu]) from [<7f66a930>] (rtl8821c_handle_sw_chnl_and_set_bw+0x1bc/0x1c0 [8821cu]) [293120.366136] [<7f66a930>] (rtl8821c_handle_sw_chnl_and_set_bw [8821cu]) from [<7f66a970>] (rtl8821c_set_channel_bw+0x3c/0x44 [8821cu]) [293120.366563] [<7f66a970>] (rtl8821c_set_channel_bw [8821cu]) from [<7f6416e8>] (rtw_hal_set_chnl_bw+0x130/0x150 [8821cu]) [293120.366981] [<7f6416e8>] (rtw_hal_set_chnl_bw [8821cu]) from [<7f5fbdd0>] (set_channel_bwmode+0x90/0xcc [8821cu]) [293120.367394] [<7f5fbdd0>] (set_channel_bwmode [8821cu]) from [<7f5f6ddc>] (site_survey+0x34/0x1d8 [8821cu]) [293120.367806] [<7f5f6ddc>] (site_survey [8821cu]) from [<7f5f798c>] (sitesurvey_cmd_hdl+0x774/0x7b4 [8821cu]) [293120.368207] [<7f5f798c>] (sitesurvey_cmd_hdl [8821cu]) from [<7f5ce074>] (rtw_cmd_thread+0x218/0x3b4 [8821cu]) [293120.368415] [<7f5ce074>] (rtw_cmd_thread [8821cu]) from [<8014253c>] (kthread+0x138/0x168) [293120.368427] [<8014253c>] (kthread) from [<801010ac>] (ret_from_fork+0x14/0x28) [293120.368430] Exception stack(0xb4549fb0 to 0xb4549ff8) [293120.368435] 9fa0: 00000000 00000000 00000000 00000000 [293120.368440] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [293120.368444] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [293120.368451] ---[ end trace bbeb82e268bc4182 ]---

Driver Removal

Could you tell me please how I can uninstall the driver.
Apparently I did something wrong and I'd like to try to install the driver from scratch now.
Thank you.

manjaro build fail

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.2-1-MANJARO/build M=/home/shenfeng/Tools/rtl8821CU modules
make[1]: Entering directory '/usr/lib/modules/4.19.2-1-MANJARO/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/usr/lib/modules/4.19.2-1-MANJARO/build'
make: *** [Makefile:1923: modules] Error 2

rtl8822 support mips ?

Hi,
Whether this driver can be adapted on mips ?
Does this driver have a requirement for the kernel version?

Raspberry pi AP not working

Hi Dear,
In Raspberry pi 4.14.71-v7+ , wifi ap is not working ,it is not switching in master mode , so not able to create wifi AP , but in 4.14.70-v7+ it works fine , can you give the fix for 4.14.71-v7+

Thanks
M Khadmi

Raspbian Stretch with kernel 4.14 Bluetooth is not working RBPI3+

Hi, I haven't been able to get the Bluetooth working, on a RBPI 3B+, with BlueZ 4.49 and a comfast cf-wu910a usb dongle with the chipset 8821CU.

I'm using kernel 4.14 because newer kernels are not generating the /lib/modules/4.xx/build or source folder. On 4.14 I can get the folder installing the headers but no in newer kernels.

I changed the Makefiles for RBPI3 and I'm compiling with:

sudo make ARCH=arm

during the compilation I get the warnings:

/usr/src/rtl8821CU-5.2.5.3/hal/phydm/phydm_hwconfig.c:1310:45: warning: ‘EVM’ may be used uninitialized in this function [-Wmaybe-uninitialized] p_phy_info->rx_mimo_signal_quality[i] = EVM;

/usr/src/rtl8821CU-5.2.5.3/hal/phydm/phydm_adc_sampling.c: In function ‘phydm_la_buffer_allocate’: /usr/src/rtl8821CU-5.2.5.3/hal/phydm/phydm_adc_sampling.c:46:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] } else ^~~~ /usr/src/rtl8821CU-5.2.5.3/hal/phydm/phydm_adc_sampling.c:48:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’ ret = true;

/usr/src/rtl8821CU-5.2.5.3/hal/btc/halbtc8821c2ant.c: In function ‘halbtc8821c2ant_monitor_wifi_ctr’:
/usr/src/rtl8821CU-5.2.5.3/hal/btc/halbtc8821c2ant.c:454:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if ((coex_dm->bt_status ==
  ^~
/usr/src/rtl8821CU-5.2.5.3/hal/btc/halbtc8821c2ant.c:461:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
   if (cck_cnt > 250) {
   ^~

After build finishes I run:

$ lsusb | grep Realtek
Bus 001 Device 005: ID 0bda:1a2b Realtek Semiconductor Corp. 
$ sudo modprobe 8821cu
$ lsmod | grep 8821cu
8821cu               1953792  0
cfg80211              573440  2 brcmfmac,8821cu
$ sudo usb_modeswitch -KW -v 0bda -p 1a2b
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.0 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x0bda
DefaultProduct= 0x1a2b

StandardEject=1

Look for default devices ...
  found USB ID 0bda:1a2b
   vendor ID matched
   product ID matched
  found USB ID 0bda:1a2b
   vendor ID matched
   product ID matched
  found USB ID 4555:1031
  found USB ID 0424:7800
  found USB ID 0424:2514
  found USB ID 0424:2514
  found USB ID 1d6b:0002
 Found devices in default mode (2)
Access device 004 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8
Use endpoints 0x0b (out) and 0x8a (in)

USB description data (for identification)
-------------------------
Manufacturer: Realtek
     Product: DISK
  Serial No.: not provided
-------------------------
Sending standard EJECT sequence
Looking for active driver ...
 OK, driver detached
Set up interface 0
Use endpoint 0x0b for message sending ...
Trying to send message 1 to endpoint 0x0b ...
 OK, message successfully sent
Read the response to message 1 (CSW) ...
 Response successfully read (13 bytes), status 1
Trying to send message 2 to endpoint 0x0b ...
 OK, message successfully sent
Read the response to message 2 (CSW) ...
 Response successfully read (13 bytes), status 0
Trying to send message 3 to endpoint 0x0b ...
 Sending the message returned error -1. Try to continue
Read the response to message 3 (CSW) ...
 Response reading failed (error -1)
 Device is gone, skip any further commands
-> Run lsusb to note any changes. Bye!

The swith mode is working.

I'm not interested in using the dongle as wifi, but with iw I can see the internal interface with a valid MAC:

$ sudo iw dev phy#1 Interface wlan1 ifindex 4 wdev 0x100000001 addr 40:a5:ef:f4:67:11 ssid punto33 type managed txpower 12.00 dBm phy#0 Unnamed/non-netdev interface wdev 0x2 addr fa:d3:44:2a:fe:ce type P2P-device txpower 31.00 dBm Interface wlan0 ifindex 3 wdev 0x1 addr b8:27:eb:ae:ff:e9 ssid punto33 type managed channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz txpower 31.00 dBm

But for bluetooth wich is what I need, the module is visible but it is DOWN, and it cannot start it:

$ sudo hciconfig
hci1:	Type: Primary  Bus: USB
	BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
	DOWN 
	RX bytes:504 acl:0 sco:0 events:71 errors:0
	TX bytes:17714 acl:0 sco:0 commands:72 errors:0

hci0:	Type: Primary  Bus: UART
	BD Address: B8:27:EB:51:00:16  ACL MTU: 1021:8  SCO MTU: 64:1
	UP RUNNING 
	RX bytes:799 acl:0 sco:0 events:52 errors:0
	TX bytes:2520 acl:0 sco:0 commands:52 errors:0
$ sudo hciconfig hci1 up
**Can't init device hci1: Cannot assign requested address (99)**
$ sudo hciconfig hci1 down
$ sudo hciconfig hci1 up
**Can't init device hci1: Cannot assign requested address (99)**
$ sudo hciconfig hci1 reset
**Can't init device hci1: Cannot assign requested address (99)**
$ sudo hcitool -i hci0 lescan
LE Scan ...
74:1A:6D:A2:6D:88 (unknown)
55:00:14:AC:88:2B (unknown)
55:00:14:AC:88:2B (unknown)
74:1A:6D:A2:6D:88 (unknown)
49:95:9A:1E:1C:37 (unknown)
$ sudo hcitool -i hci1 lescan
**Invalid device: Network is down**

I did different approaches like upgrading the kernel, using btmgt, but not succes :/

Compilation Error ~ stdarg.h No such file or directory

I'm currently trying to compile an Open Source driver for my Realtek WiFi Adapter on a Linux Distribution that is not Linux Mint (Since, I've already tested it with Linux Mint and it works). The Distribution that I want to use is Ubuntu MATE 18.04.1, at first I realized when I was attempting to compile the driver from source. I found out that 'make' wasn't even preinstalled to begin with. I installed 'make', attempted again, but failed due to it having a dependency is missing. I installed the dependency, added a modification to the make file which was 'EXTRA_CFLAGS += $(EXTRA_CFLAGS) -fno-pie' to line 3 in the 'makefile' without making any modifications to any existing code, I gave it another try, but I was prompted this error in the title of this thread. Is there any solutions on how to resolve this? - Any help would be appreciated! Thanks!!

WDN5200

I bought WDN5200 of tp-link newly, the ubuntu version is 20.04, but tp-link does not have a Linux driver, the current method is currently not available, does anyone have another way to deal with it?

Error compiling driver for kernel version 5.0.0.25

I can't install the driver. The log shows the following error:

cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/var/lib/dkms/rtl8821CU/5.2.5.3/build/os_dep/linux/ioctl_cfg80211.o' failed
make[2]: *** [/var/lib/dkms/rtl8821CU/5.2.5.3/build/os_dep/linux/ioctl_cfg80211.o] Error 1
Makefile:1606: recipe for target 'module/var/lib/dkms/rtl8821CU/5.2.5.3/build' failed
make[1]: *** [module/var/lib/dkms/rtl8821CU/5.2.5.3/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-25-generic'
Makefile:1923: recipe for target 'modules' failed
make: *** [modules] Error 2

what should I do?

4.15.17 kernel backtrace with device 0bda:c811

I recently buy toy from ebay, which is identified by USB ID:

ID 0bda:c811 Realtek Semiconductor Corp.

I compiled your driver on 4.15.17 kernel with some warnings, then i install it manually:

depmod $(uname -r)

When i plug device, i got backtrace:

Aug 22 08:46:23 bonifac kernel: [ 5616.959173] usbcore: registered new interface driver rtl8821cu
Aug 22 08:46:23 bonifac kernel: [ 5616.976864] rtl8821cu 2-1.4:1.0 wlan121: renamed from wlan0
Aug 22 08:46:23 bonifac kernel: [ 5617.002509] rtl8821cu 2-1.4:1.0 wlan1: renamed from wlan121
Aug 22 08:46:23 bonifac kernel: [ 5617.026380] ------------[ cut here ]------------
Aug 22 08:46:23 bonifac kernel: [ 5617.026382] name 'wlan0'
Aug 22 08:46:23 bonifac kernel: [ 5617.026412] WARNING: CPU: 2 PID: 1800 at /var/tmp/portage/sys-kernel/debian-sources-4.15.17-r1/work/linux-4.15.17/fs/proc/
generic.c:561 remove_proc_entry+0xff/0x140
Aug 22 08:46:23 bonifac kernel: [ 5617.026413] Modules linked in: 8821cu(O) cfg80211 rfkill nls_utf8 isofs cbc cts rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_reso
lver nfs lockd grace fscache sunrpc iptable_nat nf_nat_ipv4 nf_nat nf_log_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables nf_log_ipv6 nf_log_c
ommon xt_LOG xt_limit xt_comment xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 xt_multiport xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables binfmt
_misc reiserfs dm_mod br_netfilter bridge stp llc fuse tty0tty(O) tun loop pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) it87 hwmon_vid usblp jo
ydev hid_generic usbhid hid snd_hda_codec_hdmi cp210x ch341 usbserial btrfs zstd_compress zstd_decompress xxhash xor pktcdvd raid6_pq nvidia_drm(PO) nvidia_m
odeset(PO) edac_mce_amd kvm_amd evdev nvidia(PO) kvm irqbypass
Aug 22 08:46:23 bonifac kernel: [ 5617.026494]  crct10dif_pclmul snd_hda_codec_realtek crc32_pclmul crc32c_intel ohci_pci snd_hda_codec_generic ghash_clmulni
_intel pcbc aesni_intel snd_hda_intel aes_x86_64 snd_hda_codec crypto_simd efi_pstore glue_helper drm_kms_helper cryptd snd_hda_core snd_hwdep pcspkr drm snd
_pcm xhci_pci r8169 snd_timer efivars ipmi_devintf ohci_hcd ehci_pci k10temp fam15h_power ipmi_msghandler mii xhci_hcd ehci_hcd snd soundcore sp5100_tco usbc
ore shpchp usb_common i2c_piix4 button acpi_cpufreq efivarfs initio BusLogic arcmsr aic7xxx aic79xx scsi_transport_spi sr_mod cdrom sg sd_mod pdc_adma sata_m
v ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis pata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise libata scsi_mod ex
t4 fscrypto jbd2 mbcache crc16 [last unloaded: 8821cu]
Aug 22 08:46:23 bonifac kernel: [ 5617.026574] CPU: 2 PID: 1800 Comm: udevd Tainted: P        W  O     4.15.17-1 #1
Aug 22 08:46:23 bonifac kernel: [ 5617.026575] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./970A-DS3P, BIOS FB 10/31/2014
Aug 22 08:46:23 bonifac kernel: [ 5617.026580] RIP: 0010:remove_proc_entry+0xff/0x140
Aug 22 08:46:23 bonifac kernel: [ 5617.026582] RSP: 0018:ffffbae7442afc40 EFLAGS: 00010286
Aug 22 08:46:23 bonifac kernel: [ 5617.026585] RAX: 0000000000000000 RBX: ffffbae740d0b8f8 RCX: 0000000000000006
Aug 22 08:46:23 bonifac kernel: [ 5617.026587] RDX: 0000000000000007 RSI: 0000000000000086 RDI: ffff99ce2ec966f0
Aug 22 08:46:23 bonifac kernel: [ 5617.026589] RBP: 0000000000000000 R08: 000000000000054e R09: 0000000000000001
Aug 22 08:46:23 bonifac kernel: [ 5617.026591] R10: ffffbae7442afb60 R11: 0000000000000001 R12: ffff99cd449523c0
Aug 22 08:46:23 bonifac kernel: [ 5617.026593] R13: ffffbae740d07000 R14: ffff99cd5e0ee000 R15: ffff99cd449523c0
Aug 22 08:46:23 bonifac kernel: [ 5617.026596] FS:  00007f4e88cdb2c0(0000) GS:ffff99ce2ec80000(0000) knlGS:0000000000000000
Aug 22 08:46:23 bonifac kernel: [ 5617.026598] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug 22 08:46:23 bonifac kernel: [ 5617.026600] CR2: 00007f834c06a7bc CR3: 00000001c1722000 CR4: 00000000000406e0
Aug 22 08:46:23 bonifac kernel: [ 5617.026602] Call Trace:
Aug 22 08:46:23 bonifac kernel: [ 5617.026700]  rtw_adapter_proc_replace+0x65/0x87 [8821cu]
Aug 22 08:46:23 bonifac kernel: [ 5617.026776]  rtw_ndev_notifier_call+0x3b/0x3d [8821cu]
Aug 22 08:46:23 bonifac kernel: [ 5617.026783]  notifier_call_chain+0x47/0x70
Aug 22 08:46:23 bonifac kernel: [ 5617.026788]  dev_change_name+0x1c5/0x2e0
Aug 22 08:46:23 bonifac kernel: [ 5617.026794]  dev_ifsioc+0x211/0x420
Aug 22 08:46:23 bonifac kernel: [ 5617.026800]  ? security_capable+0x47/0x60
Aug 22 08:46:23 bonifac kernel: [ 5617.026804]  dev_ioctl+0x30a/0x580
Aug 22 08:46:23 bonifac kernel: [ 5617.026808]  ? sk_prot_alloc+0x2f/0x120
Aug 22 08:46:23 bonifac kernel: [ 5617.026813]  ? sock_do_ioctl+0x41/0x50
Aug 22 08:46:23 bonifac kernel: [ 5617.026817]  sock_do_ioctl+0x41/0x50
Aug 22 08:46:23 bonifac kernel: [ 5617.026821]  sock_ioctl+0x19a/0x2b0
Aug 22 08:46:23 bonifac kernel: [ 5617.026825]  do_vfs_ioctl+0xa4/0x630
Aug 22 08:46:23 bonifac kernel: [ 5617.026830]  ? sock_alloc_file+0xa4/0x150
Aug 22 08:46:23 bonifac kernel: [ 5617.026833]  SyS_ioctl+0x74/0x80
Aug 22 08:46:23 bonifac kernel: [ 5617.026838]  do_syscall_64+0x6e/0x130
Aug 22 08:46:23 bonifac kernel: [ 5617.026843]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
Aug 22 08:46:23 bonifac kernel: [ 5617.026847] RIP: 0033:0x7f4e8837dd87
Aug 22 08:46:23 bonifac kernel: [ 5617.026849] RSP: 002b:00007ffd5c7d5988 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Aug 22 08:46:23 bonifac kernel: [ 5617.026852] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007f4e8837dd87
Aug 22 08:46:23 bonifac kernel: [ 5617.026854] RDX: 00007ffd5c7d59b0 RSI: 0000000000008923 RDI: 0000000000000007
Aug 22 08:46:23 bonifac kernel: [ 5617.026855] RBP: 00007ffd5c7d59b0 R08: 0000000000000003 R09: 00007f4e883cabd0
Aug 22 08:46:23 bonifac kernel: [ 5617.026857] R10: 0000000000000559 R11: 0000000000000246 R12: 00007ffd5c7d59c0
Aug 22 08:46:23 bonifac kernel: [ 5617.026859] R13: 00007ffd5c7d5a40 R14: 0000000001c7eac0 R15: 0000000001c7eac0
Aug 22 08:46:23 bonifac kernel: [ 5617.026861] Code: 83 f8 48 75 2d 48 89 ef e8 cf fc ff ff e9 6a ff ff ff 48 8b 04 24 83 68 08 01 eb d3 48 89 de 48 c7 c7 65 7b e6 90 e8 91 ce dc ff <0f> 0b e9 4a ff ff ff 48 8b 75 30 48 8d 8d 8d 00 00 00 4c 8d 40 
Aug 22 08:46:23 bonifac kernel: [ 5617.026922] ---[ end trace f9bdf744d182e48d ]---

make issue

i followed the steps on : https://thepihut.com/blogs/raspberry-pi-tutorials/how-to-setup-a-rtl881cu-usb-wifi-adapter-with-the-raspberry-pi-4 and in the file folder tried make and this was the result:

pi@raspberrypi:/usbwifi $ cd rtl8821CU
pi@raspberrypi:
/usbwifi/rtl8821CU $ make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/5.10.11-v7l+/build M=/home/pi/usbwifi/rtl8821CU modules
make[1]: *** /lib/modules/5.10.11-v7l+/build: No such file or directory. Stop.
make: *** [Makefile:1923: modules] Error 2
pi@raspberrypi:~/usbwifi/rtl8821CU $

Can't compile

/home/gigacentos/coins/src/rtl8821CU-master/os_dep/linux/ioctl_cfg80211.c:6885:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
^~~~~~~~~~~~~~~~~~~

Failed to compile on Raspberry Pi 3

The error I got during compilation is:
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’

The whole log is:
pi@raspberrypi:~/rtl8821CU $ make make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.9.35-v7+/build M=/home/pi/rtl8821CU modules make[1]: Entering directory '/home/pi/linux-be2540e540f5442d7b372208787fb64100af0c54' CC [M] /home/pi/rtl8821CU/core/rtw_cmd.o gcc: error: unrecognized command line option ‘-mgeneral-regs-only’ scripts/Makefile.build:293: recipe for target '/home/pi/rtl8821CU/core/rtw_cmd.o' failed make[2]: *** [/home/pi/rtl8821CU/core/rtw_cmd.o] Error 1 Makefile:1490: recipe for target '_module_/home/pi/rtl8821CU' failed make[1]: *** [_module_/home/pi/rtl8821CU] Error 2 make[1]: Leaving directory '/home/pi/linux-be2540e540f5442d7b372208787fb64100af0c54' Makefile:1918: recipe for target 'modules' failed make: *** [modules] Error 2 pi@raspberrypi:~/rtl8821CU $

Raspberry Pi 4b+ || Connecting more than 6 RTL8811CU devices causes repeating chain of errors

I can operate 6 of these devices without issue, but the moment I connect a 7th, I immediately have runaway errors, causing the system to lockup due to the constant error stream.

Removing any of the devices, bringing the total in use back down to 6 recovers the loop error.

After this error and recovery, iw dev shows phy#'s much higher than actual devices connected, like phy#54, etc.

Still learning C, so not totally sure how to debug this directly, but going to take up the challenge and start googling each error with my fingers crossed..

Dmesg export, cleared, then plugged in 7th device to cause error:

[  379.745472] usb 1-1.1.1: new high-speed USB device number 97 using xhci_hcd
[  379.876530] usb 1-1.1.1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  379.878151] usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  379.879672] usb 1-1.1.1: Product: 802.11ac NIC
[  379.881152] usb 1-1.1.1: Manufacturer: Realtek
[  379.882656] usb 1-1.1.1: SerialNumber: 123456
[  379.899179] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  379.908379] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.129287] RTW: HW EFUSE
[  380.130737] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  380.132258] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  380.133766] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  380.135253] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  380.136784] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  380.138294] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.139810] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.141319] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.142774] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.144187] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.145623] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.147027] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  380.148376] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  380.149698] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.151011] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.152287] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.153564] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE DF 85  E4 09 03 52
[  380.154815] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  380.156058] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  380.157270] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.158442] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  380.159600] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.160751] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.161865] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.162962] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.164047] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.165119] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.166213] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.167240] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.168375] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.169311] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.170183] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  380.171297] RTW: hal_com_config_channel_plan chplan:0x7F
[  380.183430] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  380.187463] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  380.293235] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.294480] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.295633] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.296822] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.297985] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.299080] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.300176] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  380.302643] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  380.308822] RTW: rtw_ndev_init(wlan4) if1 mac_addr=1c:bf:ce:df:85:e4
[  380.561601] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  380.565832] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  381.571047] RTW: wlan4- hw port(0) mac_addr =1c:bf:ce:df:85:e4
[  381.584518] IPv6: ADDRCONF(NETDEV_UP): wlan4: link is not ready
[  381.817590] usb 1-1.3: USB disconnect, device number 95
[  382.315824] usb 2-1: Disable of device-initiated U1 failed.
[  382.317353] usb 2-1: Disable of device-initiated U2 failed.
[  382.466617] usb 2-1: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[  382.595554] usb 1-1.3: new low-speed USB device number 98 using xhci_hcd
[  382.734819] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0752, bcdDevice= 1.10
[  382.736499] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  382.738027] usb 1-1.3: Product: Wired Keyboard 400
[  382.739575] usb 1-1.3: Manufacturer: Microsoft
[  382.751365] input: Microsoft Wired Keyboard 400 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:0                                                                                                                               0.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:0752.0018/input/input23
[  382.816292] hid-generic 0003:045E:0752.0018: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboar                                                                                                                               d 400] on usb-0000:01:00.0-1.3/input0
[  382.823991] usb 1-1.1: USB disconnect, device number 85
[  382.826009] usb 1-1.1.1: USB disconnect, device number 97
[  382.876144] RTW: rtw_ndev_uninit(wlan4) if1
[  383.055803] RTW: rtw_dev_unload: driver not in IPS
[  383.058113] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.060362] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.063380] RTW: WARN free_recv_skb_queue not empty, 1
[  383.080316] usb 1-1.1.2: USB disconnect, device number 88
[  383.156475] RTW: rtw_ndev_uninit(wlan5) if1
[  383.305976] RTW: rtw_dev_unload: driver not in IPS
[  383.308243] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.310375] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.313419] RTW: WARN free_recv_skb_queue not empty, 18
[  383.318019] usb 1-1.1.3: USB disconnect, device number 90
[  383.366860] RTW: rtw_ndev_uninit(wlan6) if1
[  383.476653] RTW: rtw_dev_unload: driver not in IPS
[  383.478693] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.480883] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.483783] RTW: WARN free_recv_skb_queue not empty, 19
[  383.488517] usb 1-1.1.4: USB disconnect, device number 91
[  383.537316] RTW: rtw_ndev_uninit(wlan7) if1
[  383.725994] RTW: rtw_dev_unload: driver not in IPS
[  383.727899] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.729761] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  383.732489] RTW: WARN free_recv_skb_queue not empty, 17
[  384.035658] usb 1-1.1: new high-speed USB device number 99 using xhci_hcd
[  384.178181] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.21
[  384.180053] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  384.181742] usb 1-1.1: Product: 4-Port USB 2.0 Hub
[  384.183439] usb 1-1.1: Manufacturer: Generic
[  384.189251] hub 1-1.1:1.0: USB hub found
[  384.191803] hub 1-1.1:1.0: 4 ports detected
[  384.515607] usb 1-1.1.1: new high-speed USB device number 100 using xhci_hcd
[  384.656534] usb 1-1.1.1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  384.658205] usb 1-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  384.659886] usb 1-1.1.1: Product: 802.11ac NIC
[  384.661544] usb 1-1.1.1: Manufacturer: Realtek
[  384.663247] usb 1-1.1.1: SerialNumber: 123456
[  384.669827] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  384.678914] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  384.884384] RTW: HW EFUSE
[  384.885938] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  384.887728] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  384.889394] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  384.891061] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  384.892715] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  384.894494] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.896161] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.897780] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.899373] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.900917] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.902534] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.904044] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  384.905395] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  384.906735] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.908065] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.909506] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.910775] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE DF 85  E4 09 03 52
[  384.912018] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  384.913233] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  384.914426] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.915629] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  384.916811] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.917954] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.919067] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.920156] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.921241] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.922313] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.923377] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.924390] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.925362] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.926432] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.927312] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  384.928539] RTW: hal_com_config_channel_plan chplan:0x7F
[  384.932893] RTW: WARN [HALMAC][WARN]power state unchange!!
[  384.947965] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  384.948801] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  384.952615] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  385.051930] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.053179] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.054402] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.055665] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.056891] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.058066] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.059224] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.061465] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  385.065634] RTW: rtw_ndev_init(wlan4) if1 mac_addr=1c:bf:ce:df:85:e4
[  385.165645] usb 1-1.1.2: new high-speed USB device number 101 using xhci_hcd
[  385.292950] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  385.296721] usb 1-1.1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  385.298097] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  385.299471] usb 1-1.1.2: Product: 802.11ac NIC
[  385.300860] usb 1-1.1.2: Manufacturer: Realtek
[  385.302281] usb 1-1.1.2: SerialNumber: 123456
[  385.304344] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  385.313851] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  385.323720] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.659661] RTW: HW EFUSE
[  385.661287] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  385.663001] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  385.664709] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  385.666432] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  385.668089] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  385.669719] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.671366] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.673017] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.674667] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.676354] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.678017] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.679672] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  385.681247] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  385.682749] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.684204] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.685608] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.687000] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE DF 86  68 09 03 52
[  385.688292] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  385.689541] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  385.690768] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.692003] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  385.693230] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.694409] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.695537] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.696725] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.697980] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.699106] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.700190] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.701227] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.702218] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.703149] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.704040] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  385.705807] RTW: hal_com_config_channel_plan chplan:0x7F
[  385.711389] RTW: WARN [HALMAC][WARN]power state unchange!!
[  385.732739] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  385.733657] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  385.738654] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  385.881560] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.882890] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.884190] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.885490] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.886899] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.888140] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.889446] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  385.892047] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  386.505080] RTW: wlan4- hw port(0) mac_addr =1c:bf:ce:df:85:e4
[  386.517922] IPv6: ADDRCONF(NETDEV_UP): wlan4: link is not ready
[  386.519742] RTW: rtw_ndev_init(wlan5) if1 mac_addr=1c:bf:ce:df:86:68
[  386.635699] usb 1-1.1.3: new high-speed USB device number 102 using xhci_hcd
[  386.683065] usb 1-1.3: USB disconnect, device number 98
[  386.767116] usb 1-1.1.3: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  386.768551] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  386.770146] usb 1-1.1.3: Product: 802.11ac NIC
[  386.771793] usb 1-1.1.3: Manufacturer: Realtek
[  386.773306] usb 1-1.1.3: SerialNumber: 123456
[  386.781554] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  386.791825] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  386.800575] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  386.806126] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  387.144820] RTW: HW EFUSE
[  387.146441] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  387.148219] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  387.149873] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  387.151613] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  387.153431] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  387.155274] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.157121] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.158937] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.160811] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.162703] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.164484] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.166130] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  387.167635] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  387.169089] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.170492] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.171831] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.173089] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE D9 72  B9 09 03 52
[  387.174334] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  387.175557] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  387.176840] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.178102] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  387.179478] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.180876] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.182099] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.183298] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.184502] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.185690] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.186811] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.187861] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.188853] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.189795] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.190688] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  387.191947] RTW: hal_com_config_channel_plan chplan:0x7F
[  387.197875] RTW: WARN [HALMAC][WARN]power state unchange!!
[  387.219999] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  387.220865] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  387.225910] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  387.385955] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.387634] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.389029] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.390426] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.391800] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.393156] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.394381] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  387.397062] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  388.029230] RTW: wlan5- hw port(0) mac_addr =1c:bf:ce:df:86:68
[  388.042745] IPv6: ADDRCONF(NETDEV_UP): wlan5: link is not ready
[  388.047753] RTW: rtw_ndev_init(wlan6) if1 mac_addr=1c:bf:ce:d9:72:b9
[  388.095765] usb 1-1.3: new low-speed USB device number 103 using xhci_hcd
[  388.228523] usb 1-1.3: device descriptor read/all, error -32
[  388.325727] usb 1-1.1.4: new high-speed USB device number 104 using xhci_hcd
[  388.351006] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  388.355244] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  388.457304] usb 1-1.1.4: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  388.458948] usb 1-1.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  388.460753] usb 1-1.1.4: Product: 802.11ac NIC
[  388.462435] usb 1-1.1.4: Manufacturer: Realtek
[  388.464192] usb 1-1.1.4: SerialNumber: 123456
[  388.473174] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  388.484986] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  388.553777] RTW: ERROR _halmac_reg_write_32: I/O FAIL!
[  389.116220] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  389.117797] RTW: ERROR _halmac_reg_write_16: I/O FAIL!
[  389.119438] RTW: ERROR _halmac_reg_write_32: I/O FAIL!
[  389.121008] RTW: ERROR _halmac_reg_write_16: I/O FAIL!
[  389.122586] RTW: wlan6- hw port(0) mac_addr =00:00:00:00:00:00
[  389.124234] RTW: ERROR _halmac_reg_write_32: I/O FAIL!
[  389.125946] RTW: ERROR _halmac_reg_write_16: I/O FAIL!
[  389.127631] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  389.129699] IPv6: ADDRCONF(NETDEV_UP): wlan6: link is not ready
[  389.890402] RTW: ERROR [HALMAC][ERR]read
[  389.891965] RTW: ERROR [HALMAC][ERR]dump efsue drv/fw
[  389.893469] RTW: ERROR [HALMAC][ERR]dump efuse
[  389.894917] RTW: ERROR EFUSE_ShadowMapUpdate: <ERROR> fail to get efuse map!
[  389.896517] RTW: HW EFUSE
[  389.897953] RTW: 0x000: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.899497] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.900943] RTW: 0x020: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.902327] RTW: 0x030: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.903617] RTW: 0x040: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.904845] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.906069] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.907232] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.908361] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.909447] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.910515] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.911574] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.912695] RTW: 0x0C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.913743] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.914734] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.915716] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.916661] RTW: 0x100: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.917579] RTW: 0x110: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.918501] RTW: 0x120: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.919501] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.920431] RTW: 0x140: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.921247] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.922053] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.922848] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.923586] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.924263] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.924923] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.925577] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.926195] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.926749] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.927306] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.927789] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  389.928399] RTW: rtw_read_efuse_from_file /system/etc/wifi/wifi_efuse_8821cu.map is not readable
[  389.928960] RTW: rtw_read_macaddr_from_file /data/wifimac.txt is not readable
[  389.929678] RTW: hal_com_config_channel_plan use def_chplan:0x7F
[  389.930333] RTW: ERROR

               Empty EFUSE with unknown REF type!!

[  389.932995] RTW: ERROR please program efuse or specify correct RFE type.
[  389.933838] RTW: ERROR cmd: insmod rtl8821cx.ko rtw_RFE_type=<rfe_type>

[  390.086363] usb 2-1: Disable of device-initiated U1 failed.
[  390.087679] usb 2-1: Disable of device-initiated U2 failed.
[  390.245752] usb 1-1.3: new low-speed USB device number 105 using xhci_hcd
[  390.377486] usb 1-1.1-port4: cannot reset (err = -71)
[  390.378854] usb 1-1.1-port4: cannot reset (err = -71)
[  390.380239] usb 1-1.1-port4: cannot reset (err = -71)
[  390.381584] usb 1-1.1-port4: cannot reset (err = -71)
[  390.382995] usb 1-1.1-port4: cannot reset (err = -71)
[  390.384134] usb 1-1.1-port4: Cannot enable. Maybe the USB cable is bad?
[  390.385598] usb 1-1.1-port4: cannot disable (err = -71)
[  390.390603] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0752, bcdDevice= 1.10
[  390.391949] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  390.393325] usb 1-1.3: Product: Wired Keyboard 400
[  390.394726] usb 1-1.3: Manufacturer: Microsoft
[  390.407611] input: Microsoft Wired Keyboard 400 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:0                                                                                                                               0.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:0752.0019/input/input24
[  390.478761] hid-generic 0003:045E:0752.0019: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboar                                                                                                                               d 400] on usb-0000:01:00.0-1.3/input0
[  390.487053] usb 1-1.1: USB disconnect, device number 99
[  390.536854] usb 2-1: reset SuperSpeed Gen 1 USB device number 9 using xhci_hcd
[  390.573303] usb 1-1.1.1: USB disconnect, device number 100
[  390.636238] RTW: rtw_ndev_uninit(wlan4) if1
[  390.796024] RTW: rtw_dev_unload: driver not in IPS
[  390.797937] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  390.799865] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  390.802854] RTW: WARN free_recv_skb_queue not empty, 1
[  390.808355] usb 1-1.1.2: USB disconnect, device number 101
[  390.846165] RTW: rtw_ndev_uninit(wlan5) if1
[  391.005930] RTW: rtw_dev_unload: driver not in IPS
[  391.007806] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  391.009616] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  391.012261] RTW: WARN free_recv_skb_queue not empty, 1
[  391.017993] usb 1-1.1.3: USB disconnect, device number 102
[  391.076331] RTW: rtw_ndev_uninit(wlan6) if1
[  391.255950] RTW: rtw_dev_unload: driver not in IPS
[  391.257870] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  391.260063] RTW: ERROR _halmac_reg_write_8: I/O FAIL!
[  391.273248] usb 1-1.1.4: USB disconnect, device number 104
[  391.575782] usb 1-1.1: new high-speed USB device number 106 using xhci_hcd
[  391.718108] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.21
[  391.720109] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  391.722076] usb 1-1.1: Product: 4-Port USB 2.0 Hub
[  391.724002] usb 1-1.1: Manufacturer: Generic
[  391.728153] hub 1-1.1:1.0: USB hub found
[  391.731103] hub 1-1.1:1.0: 4 ports detected
[  392.055786] usb 1-1.1.2: new high-speed USB device number 107 using xhci_hcd
[  392.186512] usb 1-1.1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  392.188285] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  392.190020] usb 1-1.1.2: Product: 802.11ac NIC
[  392.191703] usb 1-1.1.2: Manufacturer: Realtek
[  392.193341] usb 1-1.1.2: SerialNumber: 123456
[  392.199933] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  392.208926] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.411304] RTW: HW EFUSE
[  392.412835] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  392.414465] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  392.416171] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  392.417856] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  392.419512] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  392.421150] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.422773] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.424357] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.425980] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.427536] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.429007] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.430410] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  392.431760] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  392.433075] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.434390] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.435674] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.436978] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE DF 86  68 09 03 52
[  392.438251] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  392.439466] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  392.440664] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.441832] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  392.442989] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.444135] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.445245] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.446370] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.447485] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.448554] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.449624] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.450636] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.451602] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.452516] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.453390] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  392.454463] RTW: hal_com_config_channel_plan chplan:0x7F
[  392.458931] RTW: WARN [HALMAC][WARN]power state unchange!!
[  392.473932] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  392.474764] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  392.478591] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  392.576863] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.578109] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.579336] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.580561] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.581835] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.583010] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.584212] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  392.586501] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  392.590812] RTW: rtw_ndev_init(wlan4) if1 mac_addr=1c:bf:ce:df:86:68
[  392.685917] usb 1-1.1.3: new high-speed USB device number 108 using xhci_hcd
[  392.815131] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  392.817784] usb 1-1.1.3: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  392.819107] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  392.820456] usb 1-1.1.3: Product: 802.11ac NIC
[  392.821823] usb 1-1.1.3: Manufacturer: Realtek
[  392.823214] usb 1-1.1.3: SerialNumber: 123456
[  392.827908] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  392.844935] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  392.858256] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.183947] RTW: HW EFUSE
[  393.185575] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  393.187336] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  393.189136] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  393.190837] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  393.192480] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  393.194106] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.195870] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.197603] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.199262] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.200915] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.202572] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.204298] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  393.205933] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  393.207525] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.209041] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.210443] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.211758] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE D9 72  B9 09 03 52
[  393.213022] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  393.214270] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  393.215498] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.216768] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  393.218017] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.219204] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.220390] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.221537] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.222718] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.223841] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.224932] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.226004] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.227012] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.227955] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.228843] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  393.230055] RTW: hal_com_config_channel_plan chplan:0x7F
[  393.235881] RTW: WARN [HALMAC][WARN]power state unchange!!
[  393.258169] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  393.259023] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  393.263901] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  393.417253] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.418517] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.419749] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.420977] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.422205] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.423392] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.424543] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  393.426943] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  394.015108] RTW: wlan4- hw port(0) mac_addr =1c:bf:ce:df:86:68
[  394.027804] IPv6: ADDRCONF(NETDEV_UP): wlan4: link is not ready
[  394.029960] RTW: rtw_ndev_init(wlan5) if1 mac_addr=1c:bf:ce:d9:72:b9
[  394.145894] usb 1-1.1.4: new high-speed USB device number 109 using xhci_hcd
[  394.286686] usb 1-1.1.4: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  394.288116] usb 1-1.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  394.289652] usb 1-1.1.4: Product: 802.11ac NIC
[  394.291066] usb 1-1.1.4: Manufacturer: Realtek
[  394.292578] usb 1-1.1.4: SerialNumber: 123456
[  394.300242] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 4
               HALMAC_MINOR_VER = 19
               HALMAC_PATCH_VER = 3
[  394.310082] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.368321] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  394.373579] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  394.618856] usb 1-1.3: USB disconnect, device number 105
[  394.628173] RTW: HW EFUSE
[  394.629838] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
[  394.631550] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF
[  394.633206] RTW: 0x020: FF FF 23 23  23 23 28 28  28 28 28 28  28 28 28 28
[  394.634874] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B
[  394.636642] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF
[  394.638472] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.640335] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.642124] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.643890] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.645568] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.647171] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.648703] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 20 20 00  FF FF FF FF
[  394.650176] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
[  394.651610] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.652993] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.654299] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.655550] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE D9 75  0C 09 03 52
[  394.656809] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[  394.658084] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
[  394.659363] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.660651] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[  394.661922] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.663193] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.664447] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.665702] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.666920] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.668098] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.669197] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.670243] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.671238] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.672175] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.673070] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[  394.674276] RTW: hal_com_config_channel_plan chplan:0x7F
[  394.680338] RTW: WARN [HALMAC][WARN]power state unchange!!
[  394.703903] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  394.704770] RTW: WARN rtw_halmac_poweron: Power state abnormal, try to recover...OK
[  394.709753] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  394.867185] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.868524] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.869910] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.871316] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.872671] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.874034] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.875254] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  394.877877] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  395.205873] usb 1-1.3: new low-speed USB device number 110 using xhci_hcd
[  395.345115] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0752, bcdDevice= 1.10
[  395.346447] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  395.347686] usb 1-1.3: Product: Wired Keyboard 400
[  395.348989] usb 1-1.3: Manufacturer: Microsoft
[  395.362323] input: Microsoft Wired Keyboard 400 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:0                                                                                                                               0.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:0752.001A/input/input25
[  395.429105] hid-generic 0003:045E:0752.001A: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboar                                                                                                                               d 400] on usb-0000:01:00.0-1.3/input0
[  395.556586] RTW: wlan5- hw port(0) mac_addr =1c:bf:ce:d9:72:b9
[  395.570265] IPv6: ADDRCONF(NETDEV_UP): wlan5: link is not ready
[  395.572837] RTW: rtw_ndev_init(wlan6) if1 mac_addr=1c:bf:ce:d9:75:0c
[  395.871530] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  395.876513] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  396.154801] usb 1-1.3: USB disconnect, device number 110
[  396.880065] RTW: wlan6- hw port(0) mac_addr =1c:bf:ce:d9:75:0c
[  396.893901] IPv6: ADDRCONF(NETDEV_UP): wlan6: link is not ready
[  397.023435] usb 1-1.3: new low-speed USB device number 111 using xhci_hcd
[  398.398595] RTW: rtw_set_802_11_connect(wlan4)  fw_state=0x00000008
[  398.560527] RTW: start auth
[  398.563319] RTW: auth success, start assoc
[  398.566585] RTW: assoc success
[  398.571658] RTW: ============ STA [2c:fd:a1:e5:79:b8]  ===================
[  398.573347] RTW: recv eapol packet
[  398.573835] RTW: mac_id : 0
[  398.577379] RTW: send eapol packet
[  398.578284] RTW: wireless_mode : 0x44
[  398.582703] RTW: mimo_type : 0
[  398.584511] RTW: recv eapol packet
[  398.584849] RTW: bw_mode : 80MHz, ra_bw_mode : 80MHz
[  398.584857] RTW: rate_id : 10
[  398.584866] RTW: rssi : 28 (%), rssi_level : 0
[  398.584874] RTW: is_support_sgi : Y, is_vht_enable : Y
[  398.584881] RTW: disable_ra : N, disable_pt : N
[  398.584889] RTW: is_noisy : N
[  398.587461] RTW: send eapol packet
[  398.589060] RTW: txrx_state : 0
[  398.591834] IPv6: ADDRCONF(NETDEV_CHANGE): wlan4: link becomes ready
[  398.593011] RTW: curr_tx_rate : CCK_1M (L)
[  398.605839] RTW: curr_tx_bw : 20MHz
[  398.607489] RTW: curr_retry_ratio : 0
[  398.609067] RTW: ra_mask : 0x00000000003ffff0

[  398.615311] RTW: set pairwise key camid:4, addr:2c:fd:a1:e5:79:b8, kid:0, type:AES
[  398.620196] RTW: set group key camid:5, addr:2c:fd:a1:e5:79:b8, kid:2, type:AES
[  398.765976] usb 1-1.3: new low-speed USB device number 112 using xhci_hcd
[  398.907031] usb 1-1.3: New USB device found, idVendor=045e, idProduct=0752, bcdDevice= 1.10
[  398.908785] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  398.910393] usb 1-1.3: Product: Wired Keyboard 400
[  398.911967] usb 1-1.3: Manufacturer: Microsoft
[  398.924251] input: Microsoft Wired Keyboard 400 as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:0                                                                                                                               0.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:045E:0752.001B/input/input26
[  398.999148] hid-generic 0003:045E:0752.001B: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Wired Keyboar                                                                                                                               d 400] on usb-0000:01:00.0-1.3/input0
[  399.835993] RTW: linked_status_chk(wlan2) disconnect or roaming
[  399.864175] RTW: rtw_set_802_11_connect(wlan5)  fw_state=0x00000008
[  399.996889] RTW: start auth
[  400.000192] RTW: auth success, start assoc
[  400.003280] RTW: assoc success
[  400.008887] RTW: ============ STA [2c:fd:a1:e5:79:b8]  ===================
[  400.010928] RTW: mac_id : 0
[  400.012912] RTW: wireless_mode : 0x44
[  400.014892] RTW: mimo_type : 0
[  400.016892] RTW: bw_mode : 80MHz, ra_bw_mode : 80MHz
[  400.018887] RTW: rate_id : 10
[  400.019930] RTW: recv eapol packet
[  400.020865] RTW: rssi : 36 (%), rssi_level : 0
[  400.024272] RTW: send eapol packet
[  400.024843] RTW: is_support_sgi : Y, is_vht_enable : Y
[  400.028751] RTW: disable_ra : N, disable_pt : N
[  400.030726] RTW: is_noisy : N
[  400.032248] RTW: recv eapol packet
[  400.032682] RTW: txrx_state : 0
[  400.035571] RTW: send eapol packet
[  400.036549] RTW: curr_tx_rate : CCK_1M (L)
[  400.036563] RTW: curr_tx_bw : 20MHz
[  400.039675] IPv6: ADDRCONF(NETDEV_CHANGE): wlan5: link becomes ready
[  400.040183] RTW: curr_retry_ratio : 0
[  400.040192] RTW: ra_mask : 0x00000000003ffff0

[  400.055407] RTW: set pairwise key camid:4, addr:2c:fd:a1:e5:79:b8, kid:0, type:AES
[  400.060226] RTW: set group key camid:5, addr:2c:fd:a1:e5:79:b8, kid:2, type:AES
[  401.165937] RTW: rtw_set_802_11_connect(wlan6)  fw_state=0x00000008
[  401.325556] RTW: start auth
[  401.328444] RTW: auth success, start assoc
[  401.331099] RTW: assoc success
[  401.336110] RTW: recv eapol packet
[  401.337870] RTW: ============ STA [2c:fd:a1:e5:79:b8]  ===================
[  401.339141] RTW: send eapol packet
[  401.339506] RTW: mac_id : 0
[  401.342466] RTW: wireless_mode : 0x44
[  401.343938] RTW: mimo_type : 0
[  401.344996] RTW: recv eapol packet
[  401.345400] RTW: bw_mode : 80MHz, ra_bw_mode : 80MHz
[  401.347823] RTW: send eapol packet
[  401.348388] RTW: rate_id : 10
[  401.350621] IPv6: ADDRCONF(NETDEV_CHANGE): wlan6: link becomes ready
[  401.351327] RTW: rssi : 39 (%), rssi_level : 0
[  401.354410] RTW: is_support_sgi : Y, is_vht_enable : Y
[  401.355953] RTW: disable_ra : N, disable_pt : N
[  401.357540] RTW: is_noisy : N
[  401.359086] RTW: txrx_state : 0
[  401.360672] RTW: curr_tx_rate : CCK_1M (L)
[  401.362351] RTW: curr_tx_bw : 20MHz
[  401.363916] RTW: curr_retry_ratio : 0
[  401.365476] RTW: ra_mask : 0x00000000003ffff0

[  401.371513] RTW: set pairwise key camid:4, addr:2c:fd:a1:e5:79:b8, kid:0, type:AES
[  401.376422] RTW: set group key camid:5, addr:2c:fd:a1:e5:79:b8, kid:2, type:AES

Compile failed on kali 5.2.0-kali3-amd64

make
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.2.0-kali3-amd64/build M=/opt/rtl8821CU modules
make[1]: 进入目录“/usr/src/linux-headers-5.2.0-kali3-amd64”
/bin/sh: 1: bc: not found
CC [M] /opt/rtl8821CU/core/rtw_debug.o
In file included from /opt/rtl8821CU/include/drv_types.h:35,
from /opt/rtl8821CU/core/rtw_debug.c:22:
/opt/rtl8821CU/include/wifi.h:1019: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /opt/rtl8821CU/include/osdep_service_linux.h:86,
from /opt/rtl8821CU/include/osdep_service.h:47,
from /opt/rtl8821CU/include/drv_types.h:32,
from /opt/rtl8821CU/core/rtw_debug.c:22:
/usr/src/linux-headers-5.2.0-kali3-common/include/linux/ieee80211.h:1441: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/opt/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’:
/opt/rtl8821CU/core/rtw_debug.c:50:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
^
/opt/rtl8821CU/core/rtw_debug.c:50:62: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.2.0-kali3-common/scripts/Makefile.build:284:/opt/rtl8821CU/core/rtw_debug.o] 错误 1
make[3]: *** [/usr/src/linux-headers-5.2.0-kali3-common/Makefile:1610:module/opt/rtl8821CU] 错误 2
make[2]: *** [Makefile:179:sub-make] 错误 2
make[1]: *** [Makefile:8:all] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.2.0-kali3-amd64”
make: *** [Makefile:1923:modules] 错误 2

PI4 Buster unrecognized command line option ‘-mgeneral-regs-only’

This dont compile out of the box with Raspbian Buster.
unrecognized command line option ‘-mgeneral-regs-only’
Aircrack 8812au driver(pretty same stuff but dont work with CU device) manual say do this on PI4:
$ sed -i 's/^dkms build/ARCH=arm dkms build/' dkms-install.sh
$ sed -i 's/^MAKE="/MAKE="ARCH=arm\ /' dkms.conf
But still need "make ARCH=arm" to build the driver.

Monitor Mode is broken in this driver (iw says unsupported, iwconfig wlan0 mode monitor freeze the whole PI).

Dont testet if it work in managed mode.

Difficulties when compiling on Ubuntu 18.04

The same issue like in dtaht/sch_cake#110

  1. Kernel does not support PIC mode: Added EXTRA_CFLAGS += $(CFLAGS_EXTRA) -fno-pie
  2. There is no stdarg.h: Added EXTRA_CFLAGS += $(CFLAGS_EXTRA) -fno-pie -I/usr/lib/gcc/x86_64-linux-gnu/7/include/
  3. There is no asm/linkage.h: ln -s /usr/src/linux-headers-4.15.0-29-generic/include/asm-generic /usr/src/linux-headers-4.15.0-29-generic/include/asm
  4. There is no asm/thread_info.h: have not found any workaround yet

Linux 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0

dpkg -l "*headers*"
headers.txt

EZCAST 5200 driver installation procedure

Hi,

Thanks very much for your work @whitebatman2 .

As I spent a bit of time to install my wifi dongle EZCAST 5200 on Linux mint 19.2 64bits, I share the procedure I followed to have it working.

  • clone the git repo or download the archive and extract.
  • In the folder rtl8821CU, edit Makefile
  • At line 860 you should have this: ifeq ($(CONFIG_POWER_SAVING), y)
  • Change it to ifeq ($(CONFIG_POWER_SAVING), n)
  • Save Makefile
  • Open a terminal in the folder rtl8821CU
  • Type the following commands:

make
sudo make install
sudo modprobe 8821cu

  • To launch automatically 8821cu module at start, go to /etc/modules-load.d
    and edit modules.conf file

Add this at the end of the file:

8821cu

Note: While I was writting this, the wifi was disconnected 1 time. I unplugged, then plugged again the dongle to have the wifi again.

Any plans for upstreaming?

I'm curious if there are any plans to upstream this driver? It seems like it would be a lot less manual work constantly chasing the kernel changes if this was just part of the mainline kernel. From a quick glance there doesn't seem to be any reason why it can't be upstreamed, unless I'm missing something.

modprobe: ERROR: could not insert '8821cu': Exec format error

您好,进行到 sudo modprobe 8821cu 时,
出现 modprobe: ERROR: could not insert '8821cu': Exec format error

make
sudo make install
sudo modprobe 8821cu
modprobe: ERROR: could not insert '8821cu': Exec format error

执行 dmesg 可以看到以下信息:

[13137.570709] 8821cu: Unknown symbol rtl8821c_rcr_clear (err 0)
[13137.570810] 8821cu: Unknown symbol rtl8821c_rcr_config (err 0)
[13137.570968] 8821cu: Unknown symbol rtl8821c_rcr_add (err 0)
[13137.571120] 8821cu: Unknown symbol rtl8821c_rcr_get (err 0)
[13137.571299] 8821cu: Unknown symbol rtl8821c_set_mgnt_xmit_ack (err 0)

希望能够得到帮助,非常感谢

unable to modprobe 8821cu

modprobe: ERROR: could not insert '8821cu': Unknown symbol in module, or unknown parameter (see dmesg)

wiphy_register fail on A20 w/ 5.3.9-sunxi and 2001:331d

Hi,

I added 2001:331d to usb_intf.h as per official driver http://files.dlink.com.au/products/DWA-171/REV_C/Drivers/DWA-171_Linux_driver_v5.8.1_Driver/, and it builds and installs fine, but always seems to crash or warn, with;

[ 6091.419452] WARNING: CPU: 0 PID: 12035 at net/wireless/core.c:868 wiphy_register+0x6b5/0x90c [cfg80211]
[ 6091.419459] Modules linked in: 8821cu(O+) cfg80211 uas bnep btusb btbcm btintel btrtl bluetooth ecdh_generic rfkill ecc sun4i_gpadc_iio lima gpu_sched axp20x_usb_power axp20x_battery axp20x_adc evdev industrialio sun4i_codec snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer sun4i_ts snd sunxi_cir zram sun4i_gpadc soundcore sun4i_ss uio_pdrv_genirq uio cpufreq_dt sch_fq_codel ip_tables x_tables pinctrl_axp209 realtek [last unloaded: cfg80211]
[ 6091.419551] CPU: 0 PID: 12035 Comm: modprobe Tainted: G W O 5.3.9-sunxi #19.11.3
[ 6091.419554] Hardware name: Allwinner sun7i (A20) Family
[ 6091.419586] [] (unwind_backtrace) from [] (show_stack+0x11/0x14)
[ 6091.419604] [] (show_stack) from [] (dump_stack+0x69/0x78)
[ 6091.419623] [] (dump_stack) from [] (__warn.part.3+0x83/0x9a)
[ 6091.419636] [] (__warn.part.3) from [] (warn_slowpath_null+0x33/0x36)
[ 6091.419726] [] (warn_slowpath_null) from [] (wiphy_register+0x6b5/0x90c [cfg80211])
[ 6091.420862] [] (wiphy_register [cfg80211]) from [] (rtw_wiphy_register+0x15/0x16 [8821cu])
[ 6091.422323] [] (rtw_wiphy_register [8821cu]) from [] (rtw_cfg80211_ndev_res_register+0x13/0x18 [8821cu])
[ 6091.423570] [] (rtw_cfg80211_ndev_res_register [8821cu]) from [] (rtw_os_ndev_register+0x47/0xee [8821cu])
[ 6091.424796] [] (rtw_os_ndev_register [8821cu]) from [] (rtw_os_ndevs_register+0x5d/0xc6 [8821cu])
[ 6091.426006] [] (rtw_os_ndevs_register [8821cu]) from [] (rtw_os_ndevs_init+0x1f/0x2c [8821cu])
[ 6091.427194] [] (rtw_os_ndevs_init [8821cu]) from [] (rtw_drv_init+0x1f9/0x288 [8821cu])
[ 6091.427798] [] (rtw_drv_init [8821cu]) from [] (usb_probe_interface+0xa1/0x1b8)
[ 6091.427817] [] (usb_probe_interface) from [] (really_probe+0xa9/0x1e8)
[ 6091.427830] [] (really_probe) from [] (driver_probe_device+0x43/0x120)
[ 6091.427841] [] (driver_probe_device) from [] (device_driver_attach+0x3d/0x40)
[ 6091.427852] [] (device_driver_attach) from [] (__driver_attach+0x37/0x78)
[ 6091.427862] [] (__driver_attach) from [] (bus_for_each_dev+0x41/0x68)
[ 6091.427872] [] (bus_for_each_dev) from [] (bus_add_driver+0x129/0x140)
[ 6091.427883] [] (bus_add_driver) from [] (driver_register+0x39/0xa0)
[ 6091.427895] [] (driver_register) from [] (usb_register_driver+0x55/0xdc)
[ 6091.428549] [] (usb_register_driver) from [] (rtw_drv_entry+0x45/0x1000 [8821cu])
[ 6091.429275] [] (rtw_drv_entry [8821cu]) from [] (do_one_initcall+0x37/0x1a8)
[ 6091.429294] [] (do_one_initcall) from [] (do_init_module+0x4d/0x1ac)
[ 6091.429306] [] (do_init_module) from [] (load_module+0x175f/0x1a1c)
[ 6091.429317] [] (load_module) from [] (sys_finit_module+0x79/0x8c)
[ 6091.429327] [] (sys_finit_module) from [] (ret_fast_syscall+0x1/0x62)
[ 6091.429333] Exception stack(0xedbddfa8 to 0xedbddff0)
[ 6091.429343] dfa0: 00498b70 00000000 00000004 004983ac 00000000 00498d98
[ 6091.429352] dfc0: 00498b70 00000000 1665d400 0000017b 00fcc498 00000000 00000000 00fcc3f8
[ 6091.429359] dfe0: be983308 be9832f8 004904a1 b6e8ef42

Note with this DWA-171 I have to do a usb_modeswitch -KW -v 0bda -p 1a2b first. lsusb does show the device there, but iwconfig shows no interfaces available.

I also got that official driver to compile, and have the exact same issue, so I am not 100% on the cause.

Compile Error on Raspbian

Hardware: RPi3 B+
OS: Raspbian release on Octo, 9, 2018
Kernel: 4.14.71-v7+
Header Package: apt install raspberrypi-kernel-headers
detail:
i decide to use dkms to build the module and followed the instructions in README. But i got a Compilation Error which inform that a flag called '-mgeneral-regs-only' can not be recognized. I found a document seems to related to this error.
Fortunately, when i change the platform option to rpi (not rpi3), the compilation works. Right now i'm looking for the deep reason and fix for this situation, any idea?

can't be compiled in linux 5.0

linux kernel 5.0 without vla, so, can't compile, source files have many vla, so driver needs to be rewrite to remove vla. and try to find a fix.

"get_monotonic_boottime(&ts)" deprecated in kernel 4.20 -> use "ktime_get_boottime_ts64(&ts)"

Hi whitebatman2,

"get_monotonic_boottime(&ts)" is deprecated in kernel 4.20.
See https://www.kernel.org/doc/html/latest/core-api/timekeeping.html "Deprecated time interfaces".

In "ioctl_cfg80211.c" I've replaced:

struct timespec ts;
get_monotonic_boottime(&ts);

with:

struct timespec64 ts;
ktime_get_boottime_ts64(&ts);

Then the DKMS module compiles properly!

Please could you adapt the code accordingly.

Best
Klaus

dkms builld fails on an old Raspi B Model 1

trying to build the driver on a "Raspberry Pi Model B Rev 1" running under Raspbian 10 (buster) fails with the following contents in /var/lib/dkms/rtl8821CU/5.2.5.3/build/make.log

DKMS make.log for rtl8821CU-5.2.5.3 for kernel 5.10.17+ (armv6l)
Tue May  4 16:55:59 CEST 2021
make ARCH=armv6l CROSS_COMPILE= -C /lib/modules/5.10.17+/build M=/var/lib/dkms/rtl8821CU/5.2.5.3/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.17+'
Makefile:681: arch/armv6l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv6l/Makefile'.  Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.10.17+'
make: *** [Makefile:1923: modules] Error 2

thanks in advance for any help ...

Compile error on Raspbian

I have changed the Makefile to build for RPI. Still I get error that "armv71" dir does not exist.
Adding "ARCH=arm" in front of the build command fixed this error, but introduces another compile error.

DKMS make.log for rtl8821CU-5.2.5.3 for kernel 4.14.98-v7+ (armv7l)
Sun 21 Apr 19:57:20 BST 2019
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.14.98-v7+/build M=/var/lib/dkms/rtl8821CU/5.2.5.3/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.98-v7+'
Makefile:646: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.98-v7+'
Makefile:1923: recipe for target 'modules' failed
make: *** [modules] Error 2

DKMS make.log for rtl8821CU-5.2.5.3 for kernel 4.14.98-v7+ (armv7l)
Sun 21 Apr 19:59:56 BST 2019
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.98-v7+/build M=/var/lib/dkms/rtl8821CU/5.2.5.3/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.98-v7+'
CC [M] /var/lib/dkms/rtl8821CU/5.2.5.3/build/core/rtw_cmd.o
gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
scripts/Makefile.build:326: recipe for target '/var/lib/dkms/rtl8821CU/5.2.5.3/build/core/rtw_cmd.o' failed
make[2]: *** [/var/lib/dkms/rtl8821CU/5.2.5.3/build/core/rtw_cmd.o] Error 1
Makefile:1535: recipe for target 'module/var/lib/dkms/rtl8821CU/5.2.5.3/build' failed
make[1]: *** [module/var/lib/dkms/rtl8821CU/5.2.5.3/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.98-v7+'
Makefile:1923: recipe for target 'modules' failed
make: *** [modules] Error 2

Call Trace RIP: 0010:wiphy_register+0x68a/0x940 [cfg80211] on Kernel 4.18.0-240.1.1

My setup:

  • Red Hat Enterprise Linux release 8.3 (Ootpa)
  • Kernel 4.18.0-240.1.1.el8_3.x86_64
  • Device: EDUP EP-AC1661 2-in-1 WiFi+BT
[ 7128.250795] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 7128.251010] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 7128.251119] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 7128.251122] cfg80211: failed to load regulatory.db
[ 7128.364438] WARNING: CPU: 3 PID: 49644 at net/wireless/core.c:867 wiphy_register+0x68a/0x940 [cfg80211]
[ 7128.364439] Modules linked in: 8821cu(OE+) cfg80211 hidp uinput rfcomm xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nf_nat_tftp nft_objref nf_conntrack_tftp nft_counter tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink cmac bnep sunrpc vfat fat intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi irqbypass snd_hda_intel snd_intel_dspcfg btusb snd_hda_codec btrtl btbcm crct10dif_pclmul btintel crc32_pclmul snd_hda_core bluetooth snd_hwdep iTCO_wdt snd_seq mei_wdt iTCO_vendor_support wmi_bmof snd_seq_device ghash_clmulni_intel intel_cstate snd_pcm intel_uncore intel_rapl_perf ecdh_generic snd_timer rfkill i2c_i801 pcspkr lpc_ich snd mei_me mei soundcore wmi ip_tables
[ 7128.364464]  xfs libcrc32c sd_mod sg i915 cec ahci intel_gtt i2c_algo_bit libahci drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops libata drm e1000e crc32c_intel video dm_mirror dm_region_hash dm_log dm_mod fuse [last unloaded: cfg80211]
[ 7128.364474] CPU: 3 PID: 49644 Comm: modprobe Tainted: G        W  OE    --------- -  - 4.18.0-240.1.1.el8_3.x86_64 #1
[ 7128.364474] Hardware name: LENOVO 10AACTO1WW/SHARKBAY, BIOS FBKTDEAUS 06/16/2020
[ 7128.364483] RIP: 0010:wiphy_register+0x68a/0x940 [cfg80211]
[ 7128.364484] Code: 78 20 00 74 25 83 ea 01 48 8d 14 52 48 c1 e2 04 48 01 c2 48 83 78 10 00 74 1c 48 39 c2 74 5a 48 83 c0 30 48 83 78 20 00 75 e9 <0f> 0b b8 ea ff ff ff e9 8a fa ff ff 48 83 78 18 00 75 dd 0f 0b b8
[ 7128.364485] RSP: 0018:ffff9b4f0396b9f0 EFLAGS: 00010246
[ 7128.364486] RAX: ffffffffc1273de0 RBX: ffff8949974194a0 RCX: 0000000000000000
[ 7128.364486] RDX: 0000000000000003 RSI: ffff89498f628058 RDI: 0000000000000001
[ 7128.364487] RBP: ffff9b4f0396ba78 R08: 0000000000000004 R09: 0000000000000003
[ 7128.364487] R10: ffff894747c06800 R11: ffff894a4741a7e4 R12: ffff9b4f01b269d8
[ 7128.364488] R13: 0000000000000000 R14: ffff9b4f01b266d2 R15: ffffffffc1290a71
[ 7128.364489] FS:  00007f5cee4ec740(0000) GS:ffff894a4e8c0000(0000) knlGS:0000000000000000
[ 7128.364489] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7128.364490] CR2: 000055c3b8525a70 CR3: 00000003773f6005 CR4: 00000000001606e0
[ 7128.364491] Call Trace:
[ 7128.364496]  ? _cond_resched+0x15/0x30
[ 7128.364499]  ? __kmalloc+0x164/0x200
[ 7128.364542]  ? _rtw_malloc+0x29/0x2a [8821cu]
[ 7128.364573]  rtw_wiphy_register+0x16/0x18 [8821cu]
[ 7128.364603]  rtw_cfg80211_ndev_res_register+0x11/0x17 [8821cu]
[ 7128.364633]  rtw_os_ndev_register+0xe7/0x141 [8821cu]
[ 7128.364663]  rtw_os_ndevs_register+0x9e/0xce [8821cu]
[ 7128.364693]  rtw_os_ndevs_init+0x24/0x3a [8821cu]
[ 7128.364723]  rtw_drv_init+0x5c/0xa2 [8821cu]
[ 7128.364726]  usb_probe_interface+0xe4/0x2f0
[ 7128.364729]  really_probe+0x212/0x440
[ 7128.364730]  driver_probe_device+0x49/0xc0
[ 7128.364732]  device_driver_attach+0x50/0x60
[ 7128.364734]  __driver_attach+0x61/0x130
[ 7128.364735]  ? device_driver_attach+0x60/0x60
[ 7128.364736]  bus_for_each_dev+0x77/0xc0
[ 7128.364740]  ? klist_add_tail+0x3b/0x70
[ 7128.364741]  bus_add_driver+0x14d/0x1e0
[ 7128.364743]  driver_register+0x6b/0xb0
[ 7128.364744]  usb_register_driver+0x7a/0x130
[ 7128.364745]  ? 0xffffffffc135e000
[ 7128.364768]  rtw_drv_entry+0x51/0x1000 [8821cu]
[ 7128.364770]  do_one_initcall+0x46/0x1c3
[ 7128.364772]  ? _cond_resched+0x15/0x30
[ 7128.364774]  ? kmem_cache_alloc_trace+0x140/0x1c0
[ 7128.364776]  do_init_module+0x5a/0x220
[ 7128.364778]  load_module+0x14b4/0x17e0
[ 7128.364780]  ? __do_sys_finit_module+0xa8/0x110
[ 7128.364782]  __do_sys_finit_module+0xa8/0x110
[ 7128.364784]  do_syscall_64+0x5b/0x1a0
[ 7128.364785]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[ 7128.364787] RIP: 0033:0x7f5ced4d578d
[ 7128.364788] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48
[ 7128.364789] RSP: 002b:00007fffd7503008 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 7128.364790] RAX: ffffffffffffffda RBX: 000055cc3b74ac30 RCX: 00007f5ced4d578d
[ 7128.364790] RDX: 0000000000000000 RSI: 000055cc3a236796 RDI: 0000000000000004
[ 7128.364791] RBP: 000055cc3a236796 R08: 0000000000000000 R09: 0000000000000000
[ 7128.364791] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
[ 7128.364792] R13: 000055cc3b74ab10 R14: 0000000000040000 R15: 0000000000000000
[ 7128.364793] ---[ end trace ab0e10acefdcbe04 ]---
[ 7128.364829] WARNING: CPU: 3 PID: 49644 at /home/lmaly/Downloads/WiFi/rtl8821CU-whitebatman2/os_dep/linux/os_intfs.c:1505 rtw_os_ndev_register+0x64/0x141 [8821cu]
[ 7128.364829] Modules linked in: 8821cu(OE+) cfg80211 hidp uinput rfcomm xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nf_nat_tftp nft_objref nf_conntrack_tftp nft_counter tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink cmac bnep sunrpc vfat fat intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi irqbypass snd_hda_intel snd_intel_dspcfg btusb snd_hda_codec btrtl btbcm crct10dif_pclmul btintel crc32_pclmul snd_hda_core bluetooth snd_hwdep iTCO_wdt snd_seq mei_wdt iTCO_vendor_support wmi_bmof snd_seq_device ghash_clmulni_intel intel_cstate snd_pcm intel_uncore intel_rapl_perf ecdh_generic snd_timer rfkill i2c_i801 pcspkr lpc_ich snd mei_me mei soundcore wmi ip_tables
[ 7128.364842]  xfs libcrc32c sd_mod sg i915 cec ahci intel_gtt i2c_algo_bit libahci drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops libata drm e1000e crc32c_intel video dm_mirror dm_region_hash dm_log dm_mod fuse [last unloaded: cfg80211]
[ 7128.364847] CPU: 3 PID: 49644 Comm: modprobe Tainted: G        W  OE    --------- -  - 4.18.0-240.1.1.el8_3.x86_64 #1
[ 7128.364848] Hardware name: LENOVO 10AACTO1WW/SHARKBAY, BIOS FBKTDEAUS 06/16/2020
[ 7128.364878] RIP: 0010:rtw_os_ndev_register+0x64/0x141 [8821cu]
[ 7128.364879] Code: 8d a7 d8 39 00 00 b9 20 00 00 00 48 c7 c2 c2 a7 1c c1 4c 89 e6 48 89 ef e8 40 c1 f7 d4 48 89 df e8 cb 45 01 00 83 f8 01 74 1a <0f> 0b 4c 89 e7 e8 09 b1 f7 d4 b8 00 00 00 00 5b 5d 41 5c 41 5d 41
[ 7128.364879] RSP: 0018:ffff9b4f0396baa0 EFLAGS: 00010297
[ 7128.364880] RAX: 0000000000000000 RBX: ffff9b4f01b23000 RCX: 0000000000000000
[ 7128.364881] RDX: 0000000000000003 RSI: ffff89498f628058 RDI: 0000000000000001
[ 7128.364881] RBP: ffff89499741e000 R08: 0000000000000004 R09: 0000000000000003
[ 7128.364882] R10: ffff894747c06800 R11: ffff894a4741a7e4 R12: ffff9b4f01b269d8
[ 7128.364882] R13: 0000000000000000 R14: ffff9b4f01b266d2 R15: ffffffffc1290a71
[ 7128.364883] FS:  00007f5cee4ec740(0000) GS:ffff894a4e8c0000(0000) knlGS:0000000000000000
[ 7128.364884] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7128.364884] CR2: 000055c3b8525a70 CR3: 00000003773f6005 CR4: 00000000001606e0
[ 7128.364885] Call Trace:
[ 7128.364915]  rtw_os_ndevs_register+0x9e/0xce [8821cu]
[ 7128.364944]  rtw_os_ndevs_init+0x24/0x3a [8821cu]
[ 7128.364974]  rtw_drv_init+0x5c/0xa2 [8821cu]
[ 7128.364976]  usb_probe_interface+0xe4/0x2f0
[ 7128.364977]  really_probe+0x212/0x440
[ 7128.364979]  driver_probe_device+0x49/0xc0
[ 7128.364980]  device_driver_attach+0x50/0x60
[ 7128.364982]  __driver_attach+0x61/0x130
[ 7128.364983]  ? device_driver_attach+0x60/0x60
[ 7128.364984]  bus_for_each_dev+0x77/0xc0
[ 7128.364986]  ? klist_add_tail+0x3b/0x70
[ 7128.364987]  bus_add_driver+0x14d/0x1e0
[ 7128.364988]  driver_register+0x6b/0xb0
[ 7128.364990]  usb_register_driver+0x7a/0x130
[ 7128.364990]  ? 0xffffffffc135e000
[ 7128.365013]  rtw_drv_entry+0x51/0x1000 [8821cu]
[ 7128.365014]  do_one_initcall+0x46/0x1c3
[ 7128.365016]  ? _cond_resched+0x15/0x30
[ 7128.365018]  ? kmem_cache_alloc_trace+0x140/0x1c0
[ 7128.365019]  do_init_module+0x5a/0x220
[ 7128.365021]  load_module+0x14b4/0x17e0
[ 7128.365023]  ? __do_sys_finit_module+0xa8/0x110
[ 7128.365024]  __do_sys_finit_module+0xa8/0x110
[ 7128.365026]  do_syscall_64+0x5b/0x1a0
[ 7128.365027]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[ 7128.365028] RIP: 0033:0x7f5ced4d578d
[ 7128.365029] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48
[ 7128.365029] RSP: 002b:00007fffd7503008 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 7128.365030] RAX: ffffffffffffffda RBX: 000055cc3b74ac30 RCX: 00007f5ced4d578d
[ 7128.365031] RDX: 0000000000000000 RSI: 000055cc3a236796 RDI: 0000000000000004
[ 7128.365031] RBP: 000055cc3a236796 R08: 0000000000000000 R09: 0000000000000000
[ 7128.365032] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
[ 7128.365032] R13: 000055cc3b74ab10 R14: 0000000000040000 R15: 0000000000000000
[ 7128.365033] ---[ end trace ab0e10acefdcbe05 ]---
[ 7128.370174] WARNING: CPU: 3 PID: 49644 at /home/lmaly/Downloads/WiFi/rtl8821CU-whitebatman2/os_dep/linux/os_intfs.c:2739 rtw_os_ndevs_register+0xa6/0xce [8821cu]
[ 7128.370175] Modules linked in: 8821cu(OE+) cfg80211 hidp uinput rfcomm xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nf_nat_tftp nft_objref nf_conntrack_tftp nft_counter tun bridge stp llc nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nf_tables_set nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6_tables nft_compat ip_set nf_tables nfnetlink cmac bnep sunrpc vfat fat intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi irqbypass snd_hda_intel snd_intel_dspcfg btusb snd_hda_codec btrtl btbcm crct10dif_pclmul btintel crc32_pclmul snd_hda_core bluetooth snd_hwdep iTCO_wdt snd_seq mei_wdt iTCO_vendor_support wmi_bmof snd_seq_device ghash_clmulni_intel intel_cstate snd_pcm intel_uncore intel_rapl_perf ecdh_generic snd_timer rfkill i2c_i801 pcspkr lpc_ich snd mei_me mei soundcore wmi ip_tables
[ 7128.370189]  xfs libcrc32c sd_mod sg i915 cec ahci intel_gtt i2c_algo_bit libahci drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops libata drm e1000e crc32c_intel video dm_mirror dm_region_hash dm_log dm_mod fuse [last unloaded: cfg80211]
[ 7128.370195] CPU: 3 PID: 49644 Comm: modprobe Tainted: G        W  OE    --------- -  - 4.18.0-240.1.1.el8_3.x86_64 #1
[ 7128.370195] Hardware name: LENOVO 10AACTO1WW/SHARKBAY, BIOS FBKTDEAUS 06/16/2020
[ 7128.370226] RIP: 0010:rtw_os_ndevs_register+0xa6/0xce [8821cu]
[ 7128.370227] Code: 87 a0 4d 00 00 49 8d b5 d2 36 00 00 84 c0 74 0d 49 8d b5 e2 36 00 00 3c 01 49 0f 45 f7 e8 fb f3 ff ff 41 89 c4 83 f8 01 74 b2 <0f> 0b 85 db 75 15 48 63 db 48 8b bc dd 78 01 00 00 48 85 ff 74 05
[ 7128.370227] RSP: 0018:ffff9b4f0396bad8 EFLAGS: 00010297
[ 7128.370228] RAX: 0000000000000000 RBX: 0000000000000000 RCX: dead000000000200
[ 7128.370229] RDX: ffff89499741e060 RSI: ffff9b4f01b26a70 RDI: ffff9b4f01b26a98
[ 7128.370229] RBP: ffff894a162b9000 R08: 000000000000f555 R09: 000000000000f555
[ 7128.370230] R10: 0000000000000000 R11: ffff894a4e8e8c64 R12: 0000000000000000
[ 7128.370230] R13: ffff9b4f01b23000 R14: 0000000000000001 R15: ffffffffc1290a71
[ 7128.370231] FS:  00007f5cee4ec740(0000) GS:ffff894a4e8c0000(0000) knlGS:0000000000000000
[ 7128.370232] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 7128.370232] CR2: 000055c3b8525a70 CR3: 00000003773f6005 CR4: 00000000001606e0
[ 7128.370233] Call Trace:
[ 7128.370264]  rtw_os_ndevs_init+0x24/0x3a [8821cu]
[ 7128.370295]  rtw_drv_init+0x5c/0xa2 [8821cu]
[ 7128.370297]  usb_probe_interface+0xe4/0x2f0
[ 7128.370299]  really_probe+0x212/0x440
[ 7128.370300]  driver_probe_device+0x49/0xc0
[ 7128.370302]  device_driver_attach+0x50/0x60
[ 7128.370303]  __driver_attach+0x61/0x130
[ 7128.370304]  ? device_driver_attach+0x60/0x60
[ 7128.370306]  bus_for_each_dev+0x77/0xc0
[ 7128.370307]  ? klist_add_tail+0x3b/0x70
[ 7128.370308]  bus_add_driver+0x14d/0x1e0
[ 7128.370310]  driver_register+0x6b/0xb0
[ 7128.370311]  usb_register_driver+0x7a/0x130
[ 7128.370312]  ? 0xffffffffc135e000
[ 7128.370334]  rtw_drv_entry+0x51/0x1000 [8821cu]
[ 7128.370336]  do_one_initcall+0x46/0x1c3
[ 7128.370338]  ? _cond_resched+0x15/0x30
[ 7128.370340]  ? kmem_cache_alloc_trace+0x140/0x1c0
[ 7128.370341]  do_init_module+0x5a/0x220
[ 7128.370342]  load_module+0x14b4/0x17e0
[ 7128.370345]  ? __do_sys_finit_module+0xa8/0x110
[ 7128.370346]  __do_sys_finit_module+0xa8/0x110
[ 7128.370348]  do_syscall_64+0x5b/0x1a0
[ 7128.370349]  entry_SYSCALL_64_after_hwframe+0x65/0xca
[ 7128.370350] RIP: 0033:0x7f5ced4d578d
[ 7128.370351] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d cb 56 2c 00 f7 d8 64 89 01 48
[ 7128.370352] RSP: 002b:00007fffd7503008 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 7128.370353] RAX: ffffffffffffffda RBX: 000055cc3b74ac30 RCX: 00007f5ced4d578d
[ 7128.370353] RDX: 0000000000000000 RSI: 000055cc3a236796 RDI: 0000000000000004
[ 7128.370354] RBP: 000055cc3a236796 R08: 0000000000000000 R09: 0000000000000000
[ 7128.370354] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
[ 7128.370355] R13: 000055cc3b74ab10 R14: 0000000000040000 R15: 0000000000000000
[ 7128.370356] ---[ end trace ab0e10acefdcbe06 ]---
[ 7128.370446] usbcore: registered new interface driver rtl8821cu

rPi Zero

Should this driver work on Buster , on a Zero, older version ?

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.