Code Monkey home page Code Monkey logo

rtl8821cu's Introduction

Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.x

Before build this driver make sure make, gcc, linux-header/kernel-devel, bc and git have been installed.

First, clone this repository

mkdir -p ~/build
cd ~/build
git clone https://github.com/brektrou/rtl8821CU.git

Check the name of the interface

Check the interface name of your wifi adapter using ifconfig. Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/)

If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by

grep -lr . | xargs sed -i '' -e '/ifcfg-wlan0/!s/wlan0/<name of the device>/g'

Build and install with DKMS

DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.

Debian/Ubuntu:

sudo apt-get install dkms

Arch Linux/Manjaro:

sudo pacman -S dkms

To make use of the DKMS feature with this project, just run:

./dkms-install.sh

If you later on want to remove it, run:

./dkms-remove.sh

Plug your USB-wifi-adapter into your PC

If wifi can be detected, congratulations. If not, maybe you need to switch your device usb mode by the following steps in terminal:

  1. find your usb-wifi-adapter device ID, like "0bda:1a2b", by type:
lsusb
  1. switch the mode by type: (the device ID must be yours.)

Need install usb_modeswitch (Archlinux: sudo pacman -S usb_modeswitch)

sudo usb_modeswitch -KW -v 0bda -p 1a2b
systemctl start bluetooth.service - starting Bluetooth service if it's in inactive state

It should work.

Make it permanent

If steps above worked fine and in order to avoid periodically having to make usb_modeswitch you can make it permanent (Working in Ubuntu 18.04 LTS):

  1. Edit usb_modeswitch rules:

    sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules
  2. Append before the end line LABEL="modeswitch_rules_end" the following:

    # Realtek 8211CU Wifi AC USB
    ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"
    

Make sure to set your ATTR{idVendor} and the -v argument to the left portion of the output of lsusb device ID, and your ATTR{idProduct} and -p argument to the right portion of the lsusb device ID. For example (for the Cudy AC600 usb wifi adapter) the output from lsusb command looks like this:

Bus 001 Device 016: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

then your configuration in /lib/udev/rules.d/40-usb_modeswitch.rules should be

# Realtek 8211CU Wifi AC USB
ATTR{idVendor}=="0bda", ATTR{idProduct}=="c811", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p c811"

Build and install without DKMS

Use following commands:

cd ~/build/rtl8821CU
make
sudo make install

If you later on want to remove it, do the following:

cd ~/build/rtl8821CU
sudo make uninstall

Checking installed driver

If you successfully install the driver, the driver is installed on /lib/modules/<linux version>/kernel/drivers/net/wireless/realtek/rtl8821cu. Check the driver with the ls command:

ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu

Make sure 8821cu.ko file present on that directory

Check with DKMS (if installing via DKMS):

sudo dkms status

Monitor mode

Use the tool 'iw', please don't use other tools like 'airmon-ng'

iw dev wlan0 set monitor none

rtl8821cu's People

Contributors

aiamadeus avatar artemyto avatar athoik avatar brektrou avatar cuong95nddev avatar dratrav avatar igorpecovnik avatar j-cztery avatar kelebek333 avatar lobuhi avatar mleeman avatar nhasbun avatar pbeyl avatar phpguru avatar pprindeville-wti avatar raphiara avatar razermoon avatar rrafal1337 avatar satanicraw avatar skallwar avatar slkun avatar timgates42 avatar vufa avatar yidiq7 avatar yuyichao 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8821cu's Issues

Device not recognized on Debian 10. Driver probably not loaded although it's installed.

I can't use my Wi-Fi dongle on Debian 10. I installed the driver via DKMS, but the new adapter doesn't appear in the NetworkManager applet. The light doesn't bright up on the device like it does on my Ubuntu and OpenSuse system where it works. Here's some info so you can help:

uname -a:

Linux doom 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

dmesg:

[  287.400156] usb 2-3: USB disconnect, device number 3
[  289.288446] usb 2-3: new high-speed USB device number 4 using xhci_hcd
[  289.436869] usb 2-3: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[  289.436874] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  289.436876] usb 2-3: Product: 802.11ac NIC
[  289.436878] usb 2-3: Manufacturer: Realtek
[  289.436880] usb 2-3: SerialNumber: 123456

lsusb:

Bus 002 Device 004: ID 0bda:c811 Realtek Semiconductor Corp. 

sudo dkms status:

broadcom-sta, 6.30.223.271, 4.19.0-6-amd64, x86_64: installed
rtl8821CU, 5.4.1: added

ls /lib/modules/4.19.0-6-amd64/kernel/drivers/net/wireless/realtek:

rtl818x  rtl8xxxu  rtlwifi

/lib/modules/4.19.0-6-amd64/kernel/drivers/net/wireless/realtek# ls -R:

.:
rtl818x  rtl8xxxu  rtlwifi

./rtl818x:
rtl8180  rtl8187

./rtl818x/rtl8180:
rtl818x_pci.ko

./rtl818x/rtl8187:
rtl8187.ko

./rtl8xxxu:
rtl8xxxu.ko

./rtlwifi:
btcoexist  rtl8192c   rtl8192cu  rtl8192ee  rtl8723ae  rtl8723com  rtl_pci.ko  rtlwifi.ko
rtl8188ee  rtl8192ce  rtl8192de  rtl8192se  rtl8723be  rtl8821ae   rtl_usb.ko

./rtlwifi/btcoexist:
btcoexist.ko

./rtlwifi/rtl8188ee:
rtl8188ee.ko

./rtlwifi/rtl8192c:
rtl8192c-common.ko

./rtlwifi/rtl8192ce:
rtl8192ce.ko

./rtlwifi/rtl8192cu:
rtl8192cu.ko

./rtlwifi/rtl8192de:
rtl8192de.ko

./rtlwifi/rtl8192ee:
rtl8192ee.ko

./rtlwifi/rtl8192se:
rtl8192se.ko

./rtlwifi/rtl8723ae:
rtl8723ae.ko

./rtlwifi/rtl8723be:
rtl8723be.ko

./rtlwifi/rtl8723com:
rtl8723-common.ko

./rtlwifi/rtl8821ae:
rtl8821ae.ko

Compile failed with ubuntu 18.04, kernel 5.3.0-51

Seems that RHEL_RELEASE_CODE macro missing. Here's logs:

/home/cliff/Workspace/rtl8821CU/include/../os_dep/linux/ioctl_cfg80211.h:372:94: error: missing binary operator before token "("
X_VERSION_CODE < KERNEL_VERSION(4, 2, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))
^
/home/cliff/Workspace/rtl8821CU/include/../os_dep/linux/ioctl_cfg80211.h:394:146: error: missing binary operator before token "("
X_VERSION_CODE < KERNEL_VERSION(4, 7, 0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,2))

RaspBerry Pi 4B / Raspbian Buster Make fail: Error! Bad return status for module build on kernel: 4.19.97-v7l+ (armv7l)

Hardware: Raspberry Pi 4B;
OS: Raspbian Buster;

Process:
1. Install tools
apt install -y gcc linux-header git dkms

2. Clone driver
git clone https://github.com/brektrou/rtl8821CU.git

3. Install use dkms-install.sh
root@raspberrypi:~/rtl8821CU# ./dkms-install.sh
About to run dkms install steps...
Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source ->
/usr/src/rtl8821CU-5.4.1
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
'make' KVER=4.19.97-v7l+...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.97-v7l+ (armv7l)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KVER=4.19.97-v7l+...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.97-v7l+ (armv7l)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.
Finished running dkms install steps.

4. Error log

root@raspberrypi:~/rtl8821CU# more /var/lib/dkms/rtl8821CU/5.4.1/build/make.log
DKMS make.log for rtl8821CU-5.4.1 for kernel 4.19.97-v7l+ (armv7l)
Sun 29 Mar 09:50:52 BST 2020
/bin/sh: 1: bc: not found
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.19.97-v7l+/build M=/var/lib/dkms/rtl8821CU/5.4.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.97-v7l+'
Makefile:614: 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.19.97-v7l+'
make: *** [Makefile:2213: modules] Error 2

Hardware floating point build error ARMv8

I have an ARMv8 device (Libre La Frite) I'm trying to build this on and I'm getting the hardware floating point error.

unrecognized command line option ‘-mfloat-abi=hard’

I don't think the suggestions in the Readme are applicable here (the option that sed is supposed to remove doesn't exist in the Makefile for arm64 in /lib/modules/$(uname -r)/arch/. My understanding is that ARMv8 supports hardware floating point, but I'll admit I don't know much about this.

I have CONFIG_PLATFORM_ARM64_RPI = y, but is that right? Is there some additional changes needed in the Makefile?

uname -ir:

4.19.57+ aarch64

Build error:

make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/4.19.57+/build M=/home/andy/rtl8821CU-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.57+'
CC [M] /home/andy/rtl8821CU-master/core/rtw_cmd.o
gcc: error: unrecognized command line option ‘-mfloat-abi=hard’
scripts/Makefile.build:303: recipe for target '/home/andy/rtl8821CU-master/core/rtw_cmd.o' failed
make[2]: *** [/home/andy/rtl8821CU-master/core/rtw_cmd.o] Error 1
Makefile:1517: recipe for target 'module/home/andy/rtl8821CU-master' failed
make[1]: *** [module/home/andy/rtl8821CU-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.57+'
Makefile:2213: recipe for target 'modules' failed
make: *** [modules] Error 2

RTL8821CU crash when joining an unsecured WiFi network

I am having issues to make a RTL8821CU dongle work in this host:

root@localhost:~# uname -a
Linux localhost 4.19.64-sunxi #5.93 SMP Mon Aug 5 14:17:36 CEST 2019 armv7l GNU/Linux
root@localhost:~# lsusb | grep Realtek
Bus 005 Device 004: ID 0bda:c820 Realtek Semiconductor Corp.

I just tried to join an unsecured 2.4 GHz network, but something crashed:

root@localhost:~# iwconfig wlxd0c0bfba4179 essid "AndroidAP"
root@localhost:~# ifconfig wlxd0c0bfba4179 up
root@localhost:~# dmesg
[ 2182.251001] RTW: set ssid [AndroidAP] fw_state=0x00000008
[ 2186.483412] RTW: start auth
[ 2186.488471] RTW: auth success, start assoc
[ 2186.495820] RTW: assoc success
[ 2186.495928] ------------[ cut here ]------------
[ 2186.496241] WARNING: CPU: 2 PID: 6739 at net/wireless/sme.c:752 __cfg80211_connect_result+0x264/0x2d4 [cfg80211]
[ 2186.496264] Modules linked in: appletalk ax25 zstd evdev btusb btbcm btintel 8821cu(O) sun8i_codec_analog snd_soc_simple_card btrtl snd_soc_simple_card_utils lima bluetooth sun8i_adda_pr_regmap sun4i_i2s gpu_sched snd_soc_core ttm snd_pcm_dmaengine snd_pcm ecdh_generic sun4i_gpadc_iio cfg80211 snd_timer industrialio snd cdc_acm soundcore cdc_ether sun8i_ths usbnet gpio_keys uio_pdrv_genirq uio cpufreq_dt thermal_sys zram usb_f_acm u_serial g_serial libcomposite ip_tables x_tables
[ 2186.496531] CPU: 2 PID: 6739 Comm: kworker/u8:0 Tainted: G        W  O      4.19.64-sunxi #5.93
[ 2186.496538] Hardware name: Allwinner sun8i Family
[ 2186.496706] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 2186.496759] [<c010d74d>] (unwind_backtrace) from [<c010a2f1>] (show_stack+0x11/0x14)
[ 2186.496786] [<c010a2f1>] (show_stack) from [<c08fc401>] (dump_stack+0x69/0x78)
[ 2186.496815] [<c08fc401>] (dump_stack) from [<c011b25d>] (__warn+0xa1/0xb4)
[ 2186.496840] [<c011b25d>] (__warn) from [<c011b337>] (warn_slowpath_null+0x2f/0x34)
[ 2186.496989] [<c011b337>] (warn_slowpath_null) from [<bf923755>] (__cfg80211_connect_result+0x264/0x2d4 [cfg80211])
[ 2186.497259] [<bf923755>] (__cfg80211_connect_result [cfg80211]) from [<bf90384b>] (cfg80211_process_wdev_events+0xae/0xec [cfg80211])
[ 2186.497527] [<bf90384b>] (cfg80211_process_wdev_events [cfg80211]) from [<bf9038b1>] (cfg80211_process_rdev_events+0x28/0x68 [cfg80211])
[ 2186.497806] [<bf9038b1>] (cfg80211_process_rdev_events [cfg80211]) from [<bf8ff1e7>] (cfg80211_event_work+0x16/0x1c [cfg80211])
[ 2186.497957] [<bf8ff1e7>] (cfg80211_event_work [cfg80211]) from [<c012e47b>] (process_one_work+0x167/0x384)
[ 2186.497983] [<c012e47b>] (process_one_work) from [<c012f017>] (worker_thread+0xfb/0x3fc)
[ 2186.498006] [<c012f017>] (worker_thread) from [<c0132aed>] (kthread+0xfd/0x104)
[ 2186.498027] [<c0132aed>] (kthread) from [<c01010f9>] (ret_from_fork+0x11/0x38)
[ 2186.498047] Exception stack(0xca057fb0 to 0xca057ff8)
[ 2186.498062] 7fa0:                                     00000000 00000000 00000000 00000000
[ 2186.498079] 7fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2186.498094] 7fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2186.498105] ---[ end trace 12a9ba06e45a3e3c ]---
[ 2186.498276] IPv6: ADDRCONF(NETDEV_CHANGE): wlxd0c0bfba4179: link becomes ready
[ 2186.504032] RTW: ============ STA [02:1a:11:fd:9e:7b]  ===================
[ 2186.504045] RTW: mac_id : 0
[ 2186.504051] RTW: wireless_mode : 0x0b
[ 2186.504056] RTW: mimo_type : 0
[ 2186.504064] RTW: bw_mode : 20MHz, ra_bw_mode : 20MHz
[ 2186.504070] RTW: rate_id : 3
[ 2186.504077] RTW: rssi : -1 (%), rssi_level : 0
[ 2186.504084] RTW: is_support_sgi : Y, is_vht_enable : N
[ 2186.504090] RTW: disable_ra : N, disable_pt : N
[ 2186.504095] RTW: is_noisy : N
[ 2186.504101] RTW: txrx_state : 0
[ 2186.504109] RTW: curr_tx_rate : CCK_1M (L)
[ 2186.504114] RTW: curr_tx_bw : 20MHz
[ 2186.504120] RTW: curr_retry_ratio : 0
[ 2186.504125] RTW: ra_mask : 0x00000000000fffff

Building on Rasberry PI Issue

Hi,
I'm trying to build this driver/module on RPI by DKMS.
Unfortunately I receive an error:

DKMS make.log for rtl8821CU-5.4.1 for kernel 4.19.66-v7+ (armv7l)
Tue 24 Sep 11:07:34 BST 2019
/bin/sh: 1: bc: not found
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.66-v7+/build M=/var/lib/dkms/rtl8821CU/5.4.1/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.66-v7+'
/bin/sh: 1: bc: not found
  CC [M]  /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.o
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:30,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.c:17:
/var/lib/dkms/rtl8821CU/5.4.1/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service_linux.h:83,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service.h:50,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.c:17:
./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.4.1/build/core/rtw_security.o
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:30,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_security.c:17:
/var/lib/dkms/rtl8821CU/5.4.1/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service_linux.h:83,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service.h:50,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_security.c:17:
./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.4.1/build/core/rtw_debug.o
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:30,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:17:
/var/lib/dkms/rtl8821CU/5.4.1/build/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 #define IEEE80211_MAX_AMPDU_BUF 0x40
 
In file included from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service_linux.h:83,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/osdep_service.h:50,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:17:
./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.4.1/build/core/rtw_debug.c: In function �dump_drv_version’:
/var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
                                                              ^
/var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:45:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
/var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.c:45:62: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:304: /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_debug.o] Error 1
make[1]: *** [Makefile:1519: _module_/var/lib/dkms/rtl8821CU/5.4.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.66-v7+'
make: *** [Makefile:2198: modules] Error 2

Is there any way to fix this? Can I do it by myself e.g editing and changing Makefile?

Screen freeze after wake up

This is strange situation but after every wake up from sleep a screen freezes for about 15 seconds before showing anything. This happens only when wifi adapter plugged in. I tried to fix this behavior in source code but I'm unable to find the root cause of it. I think you know the code better and you'll find a solution.
Also from plugging in to successful connection takes around 35 seconds. It's too much I think. Is is possible to work around it?

Cannot set monitor mode.

Installed the latest rtl8821CU from git today on Linux kernel 5.4.14 using the following usb device.

USB ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

[ 8.912689] 8821cu: no symbol version for module_layout
[ 8.912705] 8821cu: loading out-of-tree module taints kernel.
[ 9.000937] 8821cu: module verification failed: signature and/or required key missing - tainting kernel
[ 9.011339] RTW: module init start
[ 9.011341] RTW: rtl8821cu v5.4.1_28754.20180921_COEX20180712-3232
[ 9.011341] RTW: build time: Jan 24 2020 21:08:44
[ 9.011342] RTW: rtl8821cu BT-Coex version = COEX20180712-3232
[ 9.011462] RTW: [HALMAC]11692M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 4
HALMAC_MINOR_VER = 19
HALMAC_PATCH_VER = 3
[ 9.012713] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.167885] RTW: HW EFUSE
[ 9.167886] RTW: 0x000: 29 81 00 BC 09 00 31 00 6F 04 A4 10 12 00 30 0B
[ 9.167889] RTW: 0x010: 23 23 23 24 24 24 2B 2B 2B 2C 2C 02 FF FF FF FF
[ 9.167891] RTW: 0x020: FF FF 2B 2A 28 28 27 27 28 28 29 29 27 29 29 29
[ 9.167893] RTW: 0x030: 24 FF FF FF FF FF D0 FF FF FF 23 23 23 24 24 24
[ 9.167894] RTW: 0x040: 2B 2B 2B 2C 2C 02 FF FF FF FF FF FF FF FF FF FF
[ 9.167896] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167898] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167899] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167901] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167903] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167905] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167906] RTW: 0x0B0: FF FF FF FF FF FF FF FF 7F 06 1A 00 FF FF FF FF
[ 9.167908] RTW: 0x0C0: FF 22 00 41 00 00 00 00 00 FF 22 FF FF FF FF FF
[ 9.167910] RTW: 0x0D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167912] RTW: 0x0E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167913] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167915] RTW: 0x100: DA 0B 11 C8 C3 46 02 40 A5 EF 4E 92 81 09 03 52
[ 9.167917] RTW: 0x110: 65 61 6C 74 65 6B 0E 03 38 30 32 2E 31 31 61 63
[ 9.167919] RTW: 0x120: 20 4E 49 43 08 03 31 32 33 34 35 36 FF FF FF FF
[ 9.167920] RTW: 0x130: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167922] RTW: 0x140: FF FF FF FF 00 00 31 0F FF FF FF FF FF FF FF FF
[ 9.167924] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167926] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167927] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167929] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167931] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167932] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167934] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167936] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167938] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167939] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.167941] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.168106] RTW: hal_com_config_channel_plan chplan:0x7F
[ 9.176970] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 9.178990] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[ 9.266895] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267083] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267268] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267440] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267610] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267780] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.267950] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[ 9.268445] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 9.270326] RTW: rtw_ndev_init(wlan0) if1 mac_addr=40:a5:ef:4e:92:81
[ 9.270661] usbcore: registered new interface driver rtl8821cu
[ 9.270662] RTW: module init ret=0
[ 9.338068] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[ 9.339961] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[ 10.184918] RTW: wlan0- hw port(0) mac_addr =40:a5:ef:4e:92:81

I checked the Makefile and monitor is enabled.
CONFIG_WIFI_MONITOR = y

But when I try to run airodump-ng, it says it cannot set monitor mode
root@server ~# airmon-ng check kill
root@server ~# airmon-ng start wlan0

PHY Interface Driver Chipset

phy0 wlan0 rtl8821cu Realtek Semiconductor Corp. 802.11ac NIC

Newly created monitor mode interface wlan0mon is NOT in monitor mode.
Removing non-monitor wlan0mon interface...

WARNING: unable to start monitor mode, please run "airmon-ng check kill"

Of course I tried 'airmon-ng check kill' but nothing happens.

Fix compilation for linux 5.6

There are a few changes that needed to be done

  1. Pull request #44 needs to be applied
  2. The patch for Issue #566 for rtl8812au module needs to be applied
    aircrack-ng/rtl8812au#566
  3. some small fixup for the time format of Linux 5.6 needs to be applied due to
    http://lkml.kernel.org/r/[email protected]
linux kernel commit 412c53a680a97cb1ae2c0ab60230e193bee86387
y2038: remove unused time32 interfaces
No users remain, so kill these off before we grow new ones.

For convenience:

From 5208da734ed396aa76446613359089e523c93133 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Igor=20Pe=C4=8Dovnik?=
 <[email protected]>
Date: Fri, 28 Feb 2020 20:20:13 +0100
Subject: [PATCH 1/4] This fixes compilation

If debug mode is disabled.
---
 core/rtw_debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/rtw_debug.c b/core/rtw_debug.c
index ddc96eb..634c5ad 100755
--- a/core/rtw_debug.c
+++ b/core/rtw_debug.c
@@ -6358,6 +6358,7 @@ ssize_t proc_set_lck(struct file *file, const char __user *buffer, size_t count,
 inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
 					bool _idx_show, const u8 *_hexdata, int _hexdatalen)
 {
+#ifdef CONFIG_RTW_DEBUG
 	int __i;
 	u8 *ptr = (u8 *)_hexdata;
 
@@ -6383,6 +6384,7 @@ inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
 		}
 		_RTW_PRINT_SEL(sel, "\n");
 	}
+#endif
 }
 #else
 inline void _RTW_STR_DUMP_SEL(void *sel, char *str_out)
-- 
2.17.1


From b41f760f40786117e568d87eb792a662306b22f4 Mon Sep 17 00:00:00 2001
From: Benedikt Schemmer <[email protected]>
Date: Sun, 1 Mar 2020 08:50:03 +0100
Subject: [PATCH 2/4] Changes analog rtl8812au module by muncrief

---
 os_dep/linux/rtw_proc.c | 82 ++++++++++++++++++++++++++++++++++++-----
 1 file changed, 73 insertions(+), 9 deletions(-)

diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c
index bf2751c..600cc19 100755
--- a/os_dep/linux/rtw_proc.c
+++ b/os_dep/linux/rtw_proc.c
@@ -62,7 +62,7 @@ inline struct proc_dir_entry *rtw_proc_create_dir(const char *name, struct proc_
 }
 
 inline struct proc_dir_entry *rtw_proc_create_entry(const char *name, struct proc_dir_entry *parent,
-	const struct file_operations *fops, void * data)
+	const rtw_proc_op_t *fops, void * data)
 {
 	struct proc_dir_entry *entry;
 
@@ -231,22 +231,38 @@ static ssize_t rtw_drv_proc_write(struct file *file, const char __user *buffer,
 	return -EROFS;
 }
 
-static const struct file_operations rtw_drv_proc_seq_fops = {
+static const rtw_proc_op_t rtw_drv_proc_seq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_drv_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = seq_release,
+	.proc_write = rtw_drv_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_drv_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = seq_release,
 	.write = rtw_drv_proc_write,
+#endif
 };
 
-static const struct file_operations rtw_drv_proc_sseq_fops = {
+static const rtw_proc_op_t rtw_drv_proc_sseq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_drv_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = single_release,
+	.proc_write = rtw_drv_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_drv_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
 	.write = rtw_drv_proc_write,
+#endif
 };
 
 int rtw_drv_proc_init(void)
@@ -3759,22 +3775,38 @@ static ssize_t rtw_adapter_proc_write(struct file *file, const char __user *buff
 	return -EROFS;
 }
 
-static const struct file_operations rtw_adapter_proc_seq_fops = {
+static const rtw_proc_op_t rtw_adapter_proc_seq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_adapter_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = seq_release,
+	.proc_write = rtw_adapter_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_adapter_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = seq_release,
 	.write = rtw_adapter_proc_write,
+#endif
 };
 
-static const struct file_operations rtw_adapter_proc_sseq_fops = {
+static const rtw_proc_op_t rtw_adapter_proc_sseq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_adapter_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = single_release,
+	.proc_write = rtw_adapter_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_adapter_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
 	.write = rtw_adapter_proc_write,
+#endif
 };
 
 int proc_get_odm_adaptivity(struct seq_file *m, void *v)
@@ -3928,22 +3960,38 @@ static ssize_t rtw_odm_proc_write(struct file *file, const char __user *buffer,
 	return -EROFS;
 }
 
-static const struct file_operations rtw_odm_proc_seq_fops = {
+static const rtw_proc_op_t rtw_odm_proc_seq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_odm_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = seq_release,
+	.proc_write = rtw_odm_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_odm_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = seq_release,
 	.write = rtw_odm_proc_write,
+#endif
 };
 
-static const struct file_operations rtw_odm_proc_sseq_fops = {
+static const rtw_proc_op_t rtw_odm_proc_sseq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_odm_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = single_release,
+	.proc_write = rtw_odm_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_odm_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
 	.write = rtw_odm_proc_write,
+#endif
 };
 
 struct proc_dir_entry *rtw_odm_proc_init(struct net_device *dev)
@@ -4069,22 +4117,38 @@ static ssize_t rtw_mcc_proc_write(struct file *file, const char __user *buffer,
 	return -EROFS;
 }
 
-static const struct file_operations rtw_mcc_proc_seq_fops = {
+static const rtw_proc_op_t rtw_mcc_proc_seq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_mcc_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = seq_release,
+	.proc_write = rtw_mcc_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_mcc_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = seq_release,
 	.write = rtw_mcc_proc_write,
+#endif
 };
 
-static const struct file_operations rtw_mcc_proc_sseq_fops = {
+static const rtw_proc_op_t rtw_mcc_proc_sseq_fops = {
+#ifdef HAVE_PROC_OPS_STRUCT
+	.proc_open = rtw_mcc_proc_open,
+	.proc_read = seq_read,
+	.proc_lseek = seq_lseek,
+	.proc_release = single_release,
+	.proc_write = rtw_mcc_proc_write,
+#else
 	.owner = THIS_MODULE,
 	.open = rtw_mcc_proc_open,
 	.read = seq_read,
 	.llseek = seq_lseek,
 	.release = single_release,
 	.write = rtw_mcc_proc_write,
+#endif
 };
 
 struct proc_dir_entry *rtw_mcc_proc_init(struct net_device *dev)
-- 
2.17.1


From bd4c0d0359bd2c18a97e341dfca1dec2fdb8308d Mon Sep 17 00:00:00 2001
From: Benedikt Schemmer <[email protected]>
Date: Sun, 1 Mar 2020 08:50:51 +0100
Subject: [PATCH 3/4] Changes analog to rtl 8812au module by muncrief

---
 os_dep/linux/rtw_proc.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/os_dep/linux/rtw_proc.h b/os_dep/linux/rtw_proc.h
index c2c7c8e..839d647 100755
--- a/os_dep/linux/rtw_proc.h
+++ b/os_dep/linux/rtw_proc.h
@@ -21,6 +21,13 @@
 #define RTW_PROC_HDL_TYPE_SEQ	0
 #define RTW_PROC_HDL_TYPE_SSEQ	1
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 6, 0))
+#define HAVE_PROC_OPS_STRUCT
+typedef struct proc_ops rtw_proc_op_t;
+#else
+typedef struct file_operations rtw_proc_op_t;
+#endif
+
 struct rtw_proc_hdl {
 	char *name;
 	u8 type;
-- 
2.17.1


From 9852aa9cb614ae17fb33bf4c6e1e8484c6ffbc8f Mon Sep 17 00:00:00 2001
From: Benedikt Schemmer <[email protected]>
Date: Sun, 1 Mar 2020 08:51:28 +0100
Subject: [PATCH 4/4] Fixup time format for linux 5.6

---
 os_dep/linux/ioctl_cfg80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
index 153dbd4..c0df148 100755
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -688,8 +688,8 @@ static u64 rtw_get_systime_us(void)
 {
 // Fix build error for Linux >= 4.19
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
-	struct timespec ts;
-	getboottime(&ts);
+	struct timespec64 ts;
+	getboottime64(&ts);
 	return ((u64)ts.tv_sec * 1000000) + ts.tv_nsec / 1000;
 #else
 	struct timeval tv;
-- 
2.17.1

Can not work on linux 5.4.41

I compiled as a kernel module, but it does not work

root@FriendlyWrt:~# uname -a
Linux FriendlyWrt 5.4.41 #1 SMP Mon May 18 08:14:45 UTC 2020 aarch64 GNU/Linux
root@FriendlyWrt:~# lsmod | grep rtl8821CU
cfg80211              614400  5 rtlwifi,mac80211,rtl8822bu,rtl8821CU,rtl8812au
rtl8821CU            2404352  0 

Here is the error log

Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.608609] usb 2-1: new high-speed USB device number 2 using ehci-platform
Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.765633] usb 2-1: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.766419] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.767080] usb 2-1: Product: 802.11ac NIC
Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.767469] usb 2-1: Manufacturer: Realtek
Thu Jan 21 17:24:12 2016 kern.info kernel: [ 1596.767858] usb 2-1: SerialNumber: 123456
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.770955] RTW: [HALMAC]11692M
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.770955] HALMAC_MAJOR_VER = 1
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.770955] HALMAC_PROTOTYPE_VER = 6
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.770955] HALMAC_MINOR_VER = 5
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.770955] HALMAC_PATCH_VER = 5
Thu Jan 21 17:24:12 2016 kern.warn kernel: [ 1596.774335] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 user.notice root: only support sun8iw7p1|sun50iw2p1. exiting...
Thu Jan 21 17:24:13 2016 user.notice root: ACTION=add DEVPATH=/devices/platform/ff5c0000.usb/usb2/2-1 SUBSYSTEM=usb DEVTYPE=usb_device PRODUCT=bda/c811/200 MODALIAS=
Thu Jan 21 17:24:13 2016 user.notice root: only support sun8iw7p1|sun50iw2p1. exiting...
Thu Jan 21 17:24:13 2016 user.notice root: ACTION=add DEVPATH=/devices/platform/ff5c0000.usb/usb2/2-1/2-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface PRODUCT=bda/c811/200 MODALIAS=usb:v0BDApC811d0200dc00dsc00dp00icFFiscFFipFFin00
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.066893] RTW: HW EFUSE
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.067175] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.067831] RTW: 0x010: 23 23 23 23  23 23 2B 2B  2B 2B 2B 02  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.068531] RTW: 0x020: FF FF 26 26  25 25 25 25  25 25 25 25  22 22 22 22
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.069188] RTW: 0x030: 24 FF FF FF  FF FF D0 FF  FF FF 23 23  23 23 23 23
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.069836] RTW: 0x040: 2B 2B 2B 2B  2B 02 FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.070485] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.071134] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.071783] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.072431] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.073119] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.073767] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.074483] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 2D 1B 00  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.075138] RTW: 0x0C0: FF 22 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.075798] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.076491] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.077144] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.077782] RTW: 0x100: DA 0B 11 C8  E3 46 02 20  0D B0 41 60  C3 09 03 52
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.078418] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.079055] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.079701] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.080347] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.081013] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.081661] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.082301] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.082939] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.083578] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.084217] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.084868] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.085514] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.086154] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.086790] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.087426] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.088454] RTW: hal_com_config_channel_plan chplan:0x7F
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.102337] RTW: [HALMAC][ALWAYS]shall R reg twice!!
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.209209] RTW: WARN [HALMAC][WARN]the H2C ver. does not match halmac
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.221965] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.222711] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.223446] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.224230] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.225077] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.225820] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.226573] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.227374] RTW: [RF_PATH] IC's RF PATH:RF_1T1R, max_tx_cnt:1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.227900] RTW: [RF_PATH] PG's trx_path_bmp:0x00, max_tx_cnt:0
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.228433] RTW: [RF_PATH] Registry's RF PATH:UNKNOWN
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.228921] RTW: [RF_PATH] HALDATA's trx_path_bmp:0x11, max_tx_cnt:1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.229490] RTW: [RF_PATH] HALDATA's RF PATH:RF_1T1R
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.229936] RTW: [RF_PATH] NumTotalRFPath:1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.230316] RTW: [TRX_Nss] HALSPEC - tx_nss :1, rx_nss:1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.230794] RTW: [TRX_Nss] Registry - tx_nss :0, rx_nss:0
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.231275] RTW: [TRX_Nss] HALDATA - tx_nss :1, rx_nss:1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.233129] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
Thu Jan 21 17:24:13 2016 kern.warn kernel: [ 1597.234960] RTW: rtw_ndev_init(wlan0) if1 mac_addr=20:0d:b0:41:60:c3
Thu Jan 21 17:24:13 2016 user.notice root: only support sun8iw7p1|sun50iw2p1. exiting...
Thu Jan 21 17:24:13 2016 user.notice root: ACTION=bind DEVPATH=/devices/platform/ff5c0000.usb/usb2/2-1/2-1:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface PRODUCT=bda/c811/200 MODALIAS=usb:v0BDApC811d0200dc00dsc00dp00icFFiscFFipFFin00
Thu Jan 21 17:24:13 2016 user.notice root: rtl8821cu: insert
Thu Jan 21 17:24:13 2016 user.notice root: first init for rtl8821cu
Thu Jan 21 17:24:14 2016 kern.warn kernel: [ 1597.876734] RTW: rtw_ndev_uninit(wlan0) if1
Thu Jan 21 17:24:14 2016 daemon.info netdata[2409]: Initializing file /var/cache/netdata/system.interrupts/30.db.
Thu Jan 21 17:24:14 2016 daemon.info netdata[2409]: Initializing file /var/cache/netdata/system.interrupts/165.db.
Thu Jan 21 17:24:14 2016 daemon.info netdata[2409]: Initializing file /var/cache/netdata/cpu.cpu0_interrupts/30.db.
Thu Jan 21 17:24:14 2016 daemon.info netdata[2409]: Initializing file /var/cache/netdata/cpu.cpu0_interrupts/165.db.
Thu Jan 21 17:24:15 2016 daemon.notice netifd: Interface 'lan' is now down
Thu Jan 21 17:24:17 2016 authpriv.info dropbear[7490]: Child connection from 192.168.2.235:62333
Thu Jan 21 17:24:24 2016 authpriv.notice dropbear[7490]: Password auth succeeded for 'root' from 192.168.2.235:62333
Thu Jan 21 17:25:21 2016 daemon.info procd: Instance samba::instance2 pid 1860 not stopped on SIGTERM, sending SIGKILL instead
Thu Jan 21 17:26:16 2016 user.notice root: only support sun8iw7p1|sun50iw2p1. exiting...
Thu Jan 21 17:26:16 2016 user.notice root: ACTION=bind DEVPATH=/devices/platform/ff5c0000.usb/usb2/2-1 SUBSYSTEM=usb DEVTYPE=usb_device PRODUCT=bda/c811/200 MODALIAS=
Thu Jan 21 17:26:16 2016 user.notice root: rtl8821cu: insert
Thu Jan 21 17:26:16 2016 user.notice root: not first init for rtl8821cu
Thu Jan 21 17:26:21 2016 daemon.info procd: Instance network::instance1 pid 1454 not stopped on SIGTERM, sending SIGKILL instead
Thu Jan 21 17:26:46 2016 authpriv.info dropbear[2014]: Early exit: Terminated by signal
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.472564] INFO: task netifd:1454 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.473150]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.473488] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.474176] netifd          D    0  1454      1 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.474662] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.474890]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.475205]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.475515]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.475795]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.476204]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.476610]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.476991]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.477289]  rtnetlink_rcv_msg+0x250/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.477653]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.477993]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.478310]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.478657]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.479007]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.479319]  ____sys_sendmsg+0x29c/0x2a8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.479666]  ___sys_sendmsg+0x90/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.479992]  __sys_sendmsg+0x78/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.480308]  __arm64_sys_sendmsg+0x2c/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.480686]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.481111]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.481444]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.481708] INFO: task nmbd:1860 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.482259]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.482598] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.483618] nmbd            D    0  1860      1 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.484113] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.484337]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.484682]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.484995]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.485275]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.485683]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.486062]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.486440]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.486736]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.487116]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.487479]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.487819]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.488136]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.488505]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.488857]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.489167]  __sys_sendto+0xd4/0x158
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.489484]  __arm64_sys_sendto+0x30/0x40
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.489839]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.490262]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.490596]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.490857] INFO: task lcd2usb_echo:1906 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.491468]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.491806] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.492508] lcd2usb_echo    D    0  1906      1 0x00400000
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.492999] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.493220]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.493532]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.493842]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.494122]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.494530]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.494908]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.495285]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.495581]  rtnl_lock+0x20/0x28
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.495869]  compat_sock_ioctl+0x440/0xda0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.496234]  __arm64_compat_sys_ioctl+0xc8/0xd80
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.496654]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.497078]  el0_svc_compat_handler+0x2c/0x50
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.497464]  el0_svc_compat+0x8/0x10
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.497798] INFO: task kworker/2:1:7143 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.498402]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.498740] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.499427] kworker/2:1     D    0  7143      2 0x00000028
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.499919] Workqueue: ipv6_addrconf addrconf_verify_work
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.500394] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.500626]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.500938]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.501248]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.501528]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.501936]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.502314]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.502692]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.502987]  rtnl_lock+0x20/0x28
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.503274]  addrconf_verify_work+0x14/0x28
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.503645]  process_one_work+0x208/0x458
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.504000]  worker_thread+0x50/0x470
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.504326]  kthread+0xfc/0x128
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.504619]  ret_from_fork+0x10/0x1c
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.504942] INFO: task iw:7415 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.505477]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.505816] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.506503] iw              D    0  7415   7389 0x00000008
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.506988] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.507208]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.507520]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.507829]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.508395]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.508844]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.509226]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.509604]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.509901]  rtnl_lock+0x20/0x28
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.510229]  wiphy_unregister+0x40/0x348 [cfg80211]
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.510760]  rtw_wiphy_unregister+0x38/0x70 [rtl8821CU]
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.511289]  rtw_os_ndev_unregister+0x94/0xd8 [rtl8821CU]
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.511814]  cfg80211_rtw_set_default_mgmt_key+0x4c54/0x515c [rtl8821CU]
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.512444]  nl80211_del_interface+0x50/0x180 [cfg80211]
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.512967]  genl_family_rcv_msg+0x26c/0x3f0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.513354]  genl_rcv_msg+0x60/0xf0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.513664]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.514004]  genl_rcv+0x3c/0x50
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.514284]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.514631]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.514979]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.515290]  ____sys_sendmsg+0x29c/0x2a8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.515638]  ___sys_sendmsg+0x90/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.515963]  __sys_sendmsg+0x78/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.516280]  __arm64_sys_sendmsg+0x2c/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.516658]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.517083]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.517415]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.517677] INFO: task luci:7476 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.518230]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.518569] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.519257] luci            D    0  7476   1579 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.519743] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.519967]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.520287]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.520644]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.520941]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.521359]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.521741]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.522125]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.522426]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.522812]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.523182]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.523530]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.523852]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.524202]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.524582]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.524899]  __sys_sendto+0xd4/0x158
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.525218]  __arm64_sys_sendto+0x30/0x40
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.525574]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.525996]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.526329]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.526589] INFO: task luci:7537 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.527142]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.527480] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.528168] luci            D    0  7537   1579 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.528668] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.528894]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.529207]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.529517]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.529797]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.530207]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.530584]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.530962]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.531257]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.531635]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.531997]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.532337]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.532667]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.533018]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.533366]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.533677]  ____sys_sendmsg+0x29c/0x2a8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.534025]  ___sys_sendmsg+0x90/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.534349]  __sys_sendmsg+0x78/0xd0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.534667]  __arm64_sys_sendmsg+0x2c/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.535029]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.535451]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.535783]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.536043] INFO: task smbd:7659 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.536606]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.536946] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.537634] smbd            D    0  7659      1 0x00000000
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.538118] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.538340]  __switch_to+0x1a0/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.538659]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.538969]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.539250]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.539658]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.540036]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.540414]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.540719]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.541099]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.541461]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.541800]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.542116]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.542463]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.542811]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.543121]  __sys_sendto+0xd4/0x158
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.543438]  __arm64_sys_sendto+0x30/0x40
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.543793]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.544216]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.544559]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.544818] INFO: task luci:7686 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.545369]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.545707] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.546394] luci            D    0  7686   1579 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.546878] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.547098]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.547409]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.547719]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.547999]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.548407]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.548797]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.549176]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.549471]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.549850]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.550213]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.550554]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.550870]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.551217]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.551566]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.551875]  __sys_sendto+0xd4/0x158
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.552192]  __arm64_sys_sendto+0x30/0x40
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.552566]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.552990]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.553323]  el0_svc+0x8/0xc
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.553581] INFO: task luci:7700 blocked for more than 120 seconds.
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.554132]       Not tainted 5.4.41 #1
Thu Jan 21 17:27:49 2016 kern.err kernel: [ 1813.554470] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Thu Jan 21 17:27:49 2016 kern.info kernel: [ 1813.555156] luci            D    0  7700   1579 0x00000001
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.555641] Call trace:
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.555862]  __switch_to+0xbc/0x220
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.556172]  __schedule+0x3e4/0x6d0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.556498]  schedule+0x3c/0xa8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.556780]  schedule_preempt_disabled+0x14/0x20
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.557189]  __mutex_lock.isra.9+0x148/0x518
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.557567]  __mutex_lock_slowpath+0x24/0x30
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.557945]  mutex_lock+0x5c/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.558239]  __netlink_dump_start+0x70/0x1c8
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.558617]  rtnetlink_rcv_msg+0x1fc/0x378
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.558980]  netlink_rcv_skb+0xf0/0x138
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.559320]  rtnetlink_rcv+0x28/0x38
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.559637]  netlink_unicast+0x1e0/0x250
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.559983]  netlink_sendmsg+0x290/0x370
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.560332]  sock_sendmsg+0x58/0x68
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.560653]  __sys_sendto+0xd4/0x158
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.560971]  __arm64_sys_sendto+0x30/0x40
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.561326]  el0_svc_common.constprop.1+0xc0/0x118
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.561749]  el0_svc_handler+0x34/0xa0
Thu Jan 21 17:27:49 2016 kern.warn kernel: [ 1813.562080]  el0_svc+0x8/0xc

New driver version 5.8.1

I got this driver from here

Clone the driver:
git clone -b 5.8.1 https://github.com/brektrou/rtl8821CU.git rtl8821CU-5.8.1

Build & install with make:
cd rtl8821CU-5.8.1
make
sudo make install

Or build & install with dkms:
sudo cp -rvf rtl8821CU-5.8.1 /usr/src
sudo dkms add rtl8821CU/5.8.1
sudo dkms install rtl8821CU/5.8.1 -k $(uname -r)

Driver info & changelog

Commits

Compiles Successfully on Raspbian x86, but there is a catch

I was able to successfully compile version 5.8.1 of the driver

There is just one catch, I did it BEFORE updating/upgrading the OS

This is the kernel version reported when i start a SSH session
4.19.0-6-686-pae #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) i686

Also you have to add the following line in the Makefile

EXTRA_CFLAGS += -Wno-error=date-time

After installation i executed: sudo dkms status and this is the result:

rtl8821CU, 5.8.1, 4.19.0-6-686-pae, i686: installed

Hope this helps others

TOTOLINK A650UA with RTL8811CU still not detected, why?

Hi, I have usb wifi adapter TOTOLINK A650UA, and I was installing your driver, but my pc just detected my usb adapter like this

Bus 001 Device 024: ID 0bda:2006 Realtek Semiconductor Corp.
The driver was successfully installed, but I don't know why my USB not detected as network interfaces at all.

here is the detail :
from sudo dkms status
rtl8821CU, 5.4.1, 5.3.0-40-generic, x86_64: installed

and from

sudo lshw -C network

*-network
description: Wireless interface
product: QCA9565 / AR9565 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0
version: 01
serial: f0:03:8c:43:c9:ab
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=5.3.0-40-generic firmware=N/A ip=192.168.44.7 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:37 memory:fea00000-fea7ffff memory:fea80000-fea8ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: 10
serial: 2c:4d:54:2b:e3:80
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=no multicast=yes port=MII
resources: irq:35 ioport:e000(size=256) memory:fe904000-fe904fff memory:fe900000-fe903fff

Cannot set monitor mode

I cannot seem to set the wireless access into monitor mode? I have a

Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC

device and when trying to set up monitor mode using the following,

systemctl stop NetworkManager
airmon-ng check kill
ip link set wlan0 down
iw dev wlan0 set type monitor

I get the error message
command failed: Operation not supported (-95)

rPi Zero

Should this driver work on a Pi Zero (first edition) ?

The make runs, but has a couple warnings.
I fibnally did get to comp8ile and load, after seeing the additional changes at the bottom of the README.md :(.
But still didn't work.

Retried again today. but now doesn't load, but it wasn't the "exec ofrmat error"

I notice a discrepncy with the ARCH, mine shows armv6l (that's six el, not (1, one)

Network get stuck periodically in kernel 5.6.13

My PC's usb wireless card use this driver and recenttly it complains errors as belows:
截图录屏_选择区域_20200518164637

5月 18 16:38:07 Arch kernel: RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
5月 18 16:38:20 Arch kernel: RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
5月 18 16:38:22 Arch kernel: RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey

I googled this error but no luck to find some useful infomation.
uname -a: Linux Arch 5.6.13-arch1-1 #1 SMP PREEMPT Thu, 14 May 2020 06:52:53 +0000 x86_64 GNU/Linux
rtl8821cu version: 5c510c9f14352fed4906a10921040b9e46b58346

Low connection speed (ac, 5ghz, LAN)

Hey. I've been using a rtl8821cu driver from another repo and getting decent speeds of ~200Mib.

That driver does not yet work on the latest kernels, so I've tried yours (installed from the AUR) which did install, but I'm only getting speeds of about 20-30MiB-- even across the local network.

I checked iwconfig and it's running it on 802.11ac, 5.22Ghz, so I'm stumped as to why the speed is so bad, any ideas? It's a Tenda U9 dual band adapter, on linux kernel 5.3.6-arch1-1-ARCH.

802.11ac,how to set?

My device is 802.11ac, but when I install the driver. Through the iwconfig, it shows 802.11b. Only b.How can I set the protocol version?

Unable to install on kali

Please suggest on below:

root@Vkali:/home/v/bu/rtl8821CU# ./dkms-install.sh
About to run dkms install steps...

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

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

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

Kernel preparation unnecessary for this kernel. Skipping...

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

Also without DKMS:

root@Vkali:/home/v2/c/rtl8821CU# make
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.0-kali1-amd64/build M=/home/v2/c/rtl8821CU modules
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
/bin/sh: 1: bc: not found
CC [M] /home/v2/c/rtl8821CU/core/rtw_cmd.o
In file included from /home/v2/c/rtl8821CU/include/drv_types.h:30,
from /home/v2/c/rtl8821CU/core/rtw_cmd.c:17:
/home/v2/c/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/v2/c/rtl8821CU/include/osdep_service_linux.h:83,
from /home/v2/c/rtl8821CU/include/osdep_service.h:50,
from /home/v2/c/rtl8821CU/include/drv_types.h:27,
from /home/v2/c/rtl8821CU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.6.0-kali1-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
CC [M] /home/v2/c/rtl8821CU/core/rtw_security.o
In file included from /home/v2/c/rtl8821CU/include/drv_types.h:30,
from /home/v2/c/rtl8821CU/core/rtw_security.c:17:
/home/v2/c/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/v2/c/rtl8821CU/include/osdep_service_linux.h:83,
from /home/v2/c/rtl8821CU/include/osdep_service.h:50,
from /home/v2/c/rtl8821CU/include/drv_types.h:27,
from /home/v2/c/rtl8821CU/core/rtw_security.c:17:
/usr/src/linux-headers-5.6.0-kali1-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
CC [M] /home/v2/c/rtl8821CU/core/rtw_debug.o
In file included from /home/v2/c/rtl8821CU/include/drv_types.h:30,
from /home/v2/c/rtl8821CU/core/rtw_debug.c:17:
/home/v2/c/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /home/v2/c/rtl8821CU/include/osdep_service_linux.h:83,
from /home/v2/c/rtl8821CU/include/osdep_service.h:50,
from /home/v2/c/rtl8821CU/include/drv_types.h:27,
from /home/v2/c/rtl8821CU/core/rtw_debug.c:17:
/usr/src/linux-headers-5.6.0-kali1-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
/home/v2/c/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/v2/c/rtl8821CU/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^
In file included from /home/v/c/rtl8821CU/include/drv_types.h:60,
from /home/v/c/rtl8821CU/core/rtw_debug.c:17:
/home/v/c/rtl8821CU/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/home/v/c/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
114 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/home/v/c/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/home/v/c/rtl8821CU/core/rtw_debug.c:45:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/home/v/c/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
114 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/home/v/c/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/home/v/c/rtl8821CU/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/home/v/c/rtl8821CU/include/rtw_debug.h:224:25: note: in definition of macro ‘RTW_PRINT_SEL’
224 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/;
| ^~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.6.0-kali1-common/scripts/Makefile.build:273: /home/v/c/rtl8821CU/core/rtw_debug.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:1696: /home/v/c/rtl8821CU] Error 2
make[1]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
make: *** [Makefile:2213: modules] Error 2
root@Vkali:/home/v/c/rtl8821CU#

Suggestion: add startup service to change USB mode

Just in case it helps, my system ( hp prodesk G2, ubuntu 18.04, kernel 5.13 ) got stuck at boot time until I unplugged the rtl8821cu USB dongle . UDEV rule with usb_modeswitch didn't help with that. This was the log:

[ 7.343567] ata2: SATA link down (SStatus 4 SControl 300)
[ 7.660504] ata3: SATA link down (SStatus 4 SControl 300)
[ 7.976400] ata4: SATA link down (SStatus 4 SControl 300)
[ 8.292375] ata5: SATA link down (SStatus 4 SControl 300)
[ 8.608524] ata6: SATA link down (SStatus 4 SControl 300)

I solved this by adding a system service: /etc/systemd/system/rtl8821cu_usbmodeswitch.service

[Unit]
Description=switch rtl8812cu from disk to wifi mode
[Service]
ExecStart=/usr/src/rtl8821cu/switch_mode.sh
[Install]
WantedBy=multi-user.targetç

that calls the script: switch_mode.sh

#!/bin/sh
(
usb_modeswitch -KW -v 0bda -p 1a2b
) &

Kali Linux 2020.1 errors

Please help. I am a very new linux user. When I attempt to compile the driver for install I get the following error. What is going wrong here?

ali@kali:$ sudo su
root@kali:
/build/rtl8821CU# apt-get update
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Get:2 http://kali.download/kali kali-rolling/contrib Sources [62.0 kB]
Get:3 http://kali.download/kali kali-rolling/main Sources [12.8 MB]
Get:4 http://kali.download/kali kali-rolling/non-free Sources [126 kB]
Get:5 http://kali.download/kali kali-rolling/main amd64 Packages [16.3 MB]
Get:6 http://kali.download/kali kali-rolling/contrib amd64 Packages [99.6 kB]
Get:7 http://kali.download/kali kali-rolling/non-free amd64 Packages [193 kB]
Fetched 29.5 MB in 16s (1,794 kB/s)
Reading package lists... Done
root@kali:/home/kali# mkdir -p /build
root@kali:/home/kali# cd /build
root@kali:
/build# git clone https://github.com/brektrou/rtl8821CU.git
Cloning into 'rtl8821CU'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 1403 (delta 23), reused 9 (delta 1), pack-reused 1340
Receiving objects: 100% (1403/1403), 5.57 MiB | 2.99 MiB/s, done.
Resolving deltas: 100% (796/796), done.
root@kali:
/build# cd /build/rtl8821CU
root@kali:
/build/rtl8821CU# make
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-kali2-amd64/build M=/root/build/rtl8821CU modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-kali2-amd64'
/bin/sh: 1: bc: not found
CC [M] /root/build/rtl8821CU/core/rtw_cmd.o
In file included from /root/build/rtl8821CU/include/drv_types.h:30,
from /root/build/rtl8821CU/core/rtw_cmd.c:17:
/root/build/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /root/build/rtl8821CU/include/osdep_service_linux.h:83,
from /root/build/rtl8821CU/include/osdep_service.h:50,
from /root/build/rtl8821CU/include/drv_types.h:27,
from /root/build/rtl8821CU/core/rtw_cmd.c:17:
/usr/src/linux-headers-5.4.0-kali2-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
CC [M] /root/build/rtl8821CU/core/rtw_security.o
In file included from /root/build/rtl8821CU/include/drv_types.h:30,
from /root/build/rtl8821CU/core/rtw_security.c:17:
/root/build/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /root/build/rtl8821CU/include/osdep_service_linux.h:83,
from /root/build/rtl8821CU/include/osdep_service.h:50,
from /root/build/rtl8821CU/include/drv_types.h:27,
from /root/build/rtl8821CU/core/rtw_security.c:17:
/usr/src/linux-headers-5.4.0-kali2-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
CC [M] /root/build/rtl8821CU/core/rtw_debug.o
In file included from /root/build/rtl8821CU/include/drv_types.h:30,
from /root/build/rtl8821CU/core/rtw_debug.c:17:
/root/build/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
|
In file included from /root/build/rtl8821CU/include/osdep_service_linux.h:83,
from /root/build/rtl8821CU/include/osdep_service.h:50,
from /root/build/rtl8821CU/include/drv_types.h:27,
from /root/build/rtl8821CU/core/rtw_debug.c:17:
/usr/src/linux-headers-5.4.0-kali2-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
1451 | #define IEEE80211_MAX_AMPDU_BUF 0x100
|
/root/build/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’:
/root/build/rtl8821CU/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^
In file included from /root/build/rtl8821CU/include/drv_types.h:60,
from /root/build/rtl8821CU/core/rtw_debug.c:17:
/root/build/rtl8821CU/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/root/build/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
114 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/root/build/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/root/build/rtl8821CU/core/rtw_debug.c:45:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/root/build/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
114 | _dbgdump(DRIVER_PREFIX fmt, ##arg);
| ^~~
/root/build/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~~~~~~
/root/build/rtl8821CU/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time]
45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME);
| ^~~~~~~~
/root/build/rtl8821CU/include/rtw_debug.h:224:25: note: in definition of macro ‘RTW_PRINT_SEL’
224 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/;
| ^~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.4.0-kali2-common/scripts/Makefile.build:271: /root/build/rtl8821CU/core/rtw_debug.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.4.0-kali2-common/Makefile:1665: /root/build/rtl8821CU] Error 2
make[1]: *** [/usr/src/linux-headers-5.4.0-kali2-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-kali2-amd64'
make: *** [Makefile:2213: modules] Error 2

Foktech AC600 Additional step needed.

Hello!

Thank you guys! with this repo I managed to install the drivers that my Foktech AC600 dongle needed for it work on Ubuntu 18.04.

I followed the steps that didn't require dkms, and in addition to the commands listed I used

sudo modprobe 8821cu

After that, the dongle started blinking and detecting networks!

Thank you!

I do not know if that was obvious, but anyway, it might be useful for someone else :)

NULL pointer dereference on 3.4.113 linux kernel

I've cross compiled the driver for armv7 sun8iw7p1 (Allwinner H3, Orange Pi PC), 3.4.113 linux kernel (Linux LibreELEC 3.4.113 #1 SMP PREEMPT Wed Mar 1 00:01:16 CET 2017 armv7l GNU/Linux).

But unfortunately the driver crashed with "Unable to handle kernel NULL pointer dereference at virtual address 00000000". Is 3.x kernel version supported? What information should I add to the issue to help investigate the reason?

I added -g to the Makefile and removed --strip-debug, but it doesn't help to make traces more informative. A chunk from dmesg:

[  258.213035] RTW: module init start
[  258.213053] RTW: rtl8821cu v5.4.1_28754.20180921_COEX20180712-3232
[  258.213063] RTW: build time: Feb  2 2020 11:40:39
[  258.213071] RTW: rtl8821cu BT-Coex version = COEX20180712-3232
[  258.213087] sw_usb_enable_hcd: usbc_num = 2
[  258.213096] [wifi_pm]: set wl_reg_on 1 !
[  258.223115] hci: ERR: sunxi_ehci is already enable, can not enable again
[  258.223130] hci: ERR: sunxi_ohci is already enable, can not enable again
[  258.223381] usbcore: registered new interface driver rtl8821cu
[  258.223395] RTW: module init ret=0
[  283.508176] ehci_irq: highspeed device connect
[  283.770109] usb 4-1: new high-speed USB device number 2 using sunxi-ehci
[  283.923109] RTW: [HALMAC]11692M
[  283.923120] HALMAC_MAJOR_VER = 1
[  283.923128] HALMAC_PROTOTYPE_VER = 4
[  283.923137] HALMAC_MINOR_VER = 19
[  283.923145] HALMAC_PATCH_VER = 3
[  283.925151] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.185832] RTW: HW EFUSE
[  284.185866] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 10  10 00 30 0B  
[  284.185969] RTW: 0x010: FF FF FF FF  FF FF FF FF  FF FF FF 02  FF FF FF FF  
[  284.186070] RTW: 0x020: FF FF 28 28  28 28 28 28  28 28 28 28  28 28 28 28  
[  284.186171] RTW: 0x030: 02 FF FF FF  FF FF EC FF  FF FF 2B 2B  2B 2B 2B 2B  
[  284.186272] RTW: 0x040: 30 30 30 30  30 33 FF FF  FF FF FF FF  FF FF FF FF  
[  284.186373] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186474] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186575] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186676] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186777] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186878] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.186979] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 06 20 00  FF FF FF FF  
[  284.187080] RTW: 0x0C0: FF 01 00 41  00 00 00 00  00 FF 22 FF  FF FF FF FF  
[  284.187179] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.187280] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.187381] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.187482] RTW: 0x100: DA 0B 11 C8  E3 46 02 1C  BF CE 84 15  CA 09 03 52  
[  284.187583] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63  
[  284.187685] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF  
[  284.187786] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.187887] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF  
[  284.187988] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188089] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188190] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188292] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188393] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188494] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188595] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188795] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188897] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.188998] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.189099] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[  284.189584] RTW: hal_com_config_channel_plan chplan:0x7F
[  284.202703] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  284.206592] RTW: WARN [HALMAC][WARN]H2C/C2H ver is compatible!!
[  284.321491] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.321864] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.322360] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.322727] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.323101] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.323476] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.323851] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[  284.348957] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[  284.375511] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[  284.375552] pgd = c0004000
[  284.375569] [00000000] *pgd=00000000
[  284.375603] Internal error: Oops: 817 [#1] PREEMPT SMP ARM
[  284.381788] Modules linked in: 8821cu(O) 8021q cfg80211 mali ump hdmi_cec
[  284.383553] CPU: 1    Tainted: G           O  (3.4.113 #1)
[  284.383553] PC is at memcpy+0xb4/0x330
[  284.383553] LR is at 0x84cebf1c
[  284.383553] pc : [<c0292db4>]    lr : [<84cebf1c>]    psr: 00060013
[  284.383553] sp : ef1a9b74  ip : 0000001c  fp : ef1a9b9c
[  284.383553] r10: bf1e4904  r9 : bf1ce89c  r8 : f02cbd7e
[  284.383553] r7 : ef15a800  r6 : f02cbe24  r5 : f02c9000  r4 : 00000001
[  284.383553] r3 : 00000001  r2 : ffffffe6  r1 : f02cce18  r0 : 00000000
[  284.383553] Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  284.383553] Control: 10c5387d  Table: 6d33c06a  DAC: 00000015
[  284.383553] 
[  284.383553] PC: 0xc0292d34:
[  284.383553] 2d34  f5d1f01c ba000002 f5d1f03c f5d1f05c f5d1f07c e8b151f8 e2522020 e8a051f8
[  284.383553] 2d54  aafffffa e3720060 aafffff9 e212c01c e26cc020 108ff00c ea000011 e320f000
[  284.383553] 2d74  e4913004 e4914004 e4915004 e4916004 e4917004 e4918004 e491e004 e08ff00c
[  284.482546] 2d94  e320f000 e320f000 e4803004 e4804004 e4805004 e4806004 e4807004 e4808004
[  284.482546] 2db4  e480e004 e8bd01e0 e1b02f82 14d13001 24d14001 24d1c001 14c03001 24c04001
[  284.482546] 2dd4  24c0c001 e8bd8011 e26cc004 e35c0002 c4d13001 a4d14001 e4d1e001 c4c03001
[  284.482546] 2df4  a4c04001 e052200c e4c0e001 baffffed e211c003 0affffc4 e3c11003 e35c0002
[  284.482546] 2e14  e491e004 0a00002c ca000057 e252201c ba00001f e92d03e0 f5d1f000 e2522060
[  284.482546] 
[  284.482546] SP: 0xef1a9af4:
[  284.482546] 9af4  ffffffff f02cbd7e c0bdee5c f02cbd7e c0bdee80 c0292db4 00060013 ffffffff
[  284.482546] 9b14  ef1a9b5c ef1a9b9c ef1a9b28 c000dc18 c0008370 00000000 f02cce18 ffffffe6
[  284.482546] 9b34  00000001 00000001 f02c9000 f02cbe24 ef15a800 f02cbd7e bf1ce89c bf1e4904
[  284.482546] 9b54  ef1a9b9c 0000001c ef1a9b74 84cebf1c c0292db4 00060013 ffffffff ef15a800
[  284.482546] 9b74  f02c9000 f02cbe24 ef15a800 f02cbd7e 00000000 00000001 bf0f627c ef1a9bc4
[  284.482546] 9b94  ef1a9ba0 bf0f96e8 bf0f6270 00000000 e22e5000 00000000 e22e5000 00000001
[  284.482546] 9bb4  f02c9000 ef1a9bf4 ef1a9bc8 bf0fab2c bf0f963c 00000002 e22e5000 e22e5000
[  284.482546] 9bd4  f02c9000 bf14bcdc 00002dfc bf2217b4 e8a04a48 ef1a9c0c ef1a9bf8 bf0fac3c
[  284.482546] 
[  284.482546] FP: 0xef1a9b1c:
[  284.482546] 9b1c  ef1a9b28 c000dc18 c0008370 00000000 f02cce18 ffffffe6 00000001 00000001
[  284.482546] 9b3c  f02c9000 f02cbe24 ef15a800 f02cbd7e bf1ce89c bf1e4904 ef1a9b9c 0000001c
[  284.482546] 9b5c  ef1a9b74 84cebf1c c0292db4 00060013 ffffffff ef15a800 f02c9000 f02cbe24
[  284.482546] 9b7c  ef15a800 f02cbd7e 00000000 00000001 bf0f627c ef1a9bc4 ef1a9ba0 bf0f96e8
[  284.482546] 9b9c  bf0f6270 00000000 e22e5000 00000000 e22e5000 00000001 f02c9000 ef1a9bf4
[  284.482546] 9bbc  ef1a9bc8 bf0fab2c bf0f963c 00000002 e22e5000 e22e5000 f02c9000 bf14bcdc
[  284.482546] 9bdc  00002dfc bf2217b4 e8a04a48 ef1a9c0c ef1a9bf8 bf0fac3c bf0faa4c e22e5000
[  284.482546] 9bfc  00000001 ef1a9c5c ef1a9c10 bf0fd4f0 bf0fac18 bf1e5244 ee641400 bf221b48
[  284.482546] 
[  284.482546] R1: 0xf02ccd98:
[  284.482546] cd98  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] cdb8  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] cdd8  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] cdf8  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] ce18  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] ce38  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] ce58  ******** ******** ******** ******** ******** ******** ******** ********
[  284.482546] ce78  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 
[  284.760530] R5: 0xf02c8f80:
[  284.760530] 8f80  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 8fa0  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 8fc0  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 8fe0  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 9000  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 9020  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 9040  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 9060  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 
[  284.760530] R6: 0xf02cbda4:
[  284.760530] bda4  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bdc4  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bde4  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] be04  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] be24  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] be44  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] be64  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] be84  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] 
[  284.760530] R7: 0xef15a780:
[  284.760530] a780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a7a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a7c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a7e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a800  6e616c77 00000030 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a840  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] a860  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  284.760530] 
[  284.760530] R8: 0xf02cbcfe:
[  284.760530] bcfc  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bd1c  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bd3c  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bd5c  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bd7c  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bd9c  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bdbc  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bddc  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] bdfc  ******** ******** ******** ******** ******** ******** ******** ********
[  284.760530] Process khubd (pid: 33, stack limit = 0xef1a82f8)
[  284.760530] Stack: (0xef1a9b74 to 0xef1aa000)
[  284.760530] 9b60:                                              f02c9000 f02cbe24 ef15a800
[  284.760530] 9b80: f02cbd7e 00000000 00000001 bf0f627c ef1a9bc4 ef1a9ba0 bf0f96e8 bf0f6270
[  284.760530] 9ba0: 00000000 e22e5000 00000000 e22e5000 00000001 f02c9000 ef1a9bf4 ef1a9bc8
[  284.760530] 9bc0: bf0fab2c bf0f963c 00000002 e22e5000 e22e5000 f02c9000 bf14bcdc 00002dfc
[  284.760530] 9be0: bf2217b4 e8a04a48 ef1a9c0c ef1a9bf8 bf0fac3c bf0faa4c e22e5000 00000001
[  284.760530] 9c00: ef1a9c5c ef1a9c10 bf0fd4f0 bf0fac18 bf1e5244 ee641400 bf221b48 ee641468
[  284.760530] 9c20: eebfe600 eebfe620 c055f880 0034b85c ef1a9c5c eebfe620 00000000 ee641400
[  284.760530] 9c40: bf221a88 eebfe600 bf221b48 e8a04a48 ef1a9c84 ef1a9c60 c038bd3c bf0fcecc
[  284.760530] 9c60: eebfe620 c0cafd34 c034277c bf221a88 00000008 c0bc1978 ef1a9cac ef1a9c88
[  284.760530] 9c80: c0342640 c038bc34 bf221a88 eebfe620 c034277c 00000000 ee641468 c0bc1978
[  284.760530] 9ca0: ef1a9cc4 ef1a9cb0 c03427b4 c034257c 00000000 eebfe620 ef1a9cec ef1a9cc8
[  284.760530] 9cc0: c0340c74 c0342788 ef179a78 eeacf2bc ef120400 eebfe620 c0bc1990 eebfe654
[  284.760530] 9ce0: ef1a9d0c ef1a9cf0 c034251c c0340bec eebfe620 c0bc1990 eebfe620 00000000
[  284.760530] 9d00: ef1a9d2c ef1a9d10 c0341a4c c034249c eebfe620 00000000 eebfe628 00000000
[  284.760530] 9d20: ef1a9d74 ef1a9d30 c033ffe8 c0341a20 ef1a9d54 ef1a9d40 c034aac0 c03476e4
[  284.760530] 9d40: 00000020 ee641400 ef1a9d74 ee641400 eebfe250 eebfe600 eebfe250 ee641468
[  284.760530] 9d60: e8bee180 e8a04a48 ef1a9de4 ef1a9d78 c038a3a0 c033fb70 00000001 00000000
[  284.760530] 9d80: 00000000 00000000 00001388 00000000 e8bee140 ee641468 e8bee184 00000001
[  284.760530] 9da0: 00000000 00000004 e8bee184 eebfe250 00000000 ee94fc00 c03807d4 ee641400
[  284.760530] 9dc0: 00000001 c034277c c0bc1ffc 00000008 c0bc182c 00000000 ef1a9dfc ef1a9de8
[  284.760530] 9de0: c03925dc c0389e28 ee641400 c0bc1ffc ef1a9e14 ef1a9e00 c038bc10 c039258c
[  284.760530] 9e00: ee641468 c0cafd34 ef1a9e3c ef1a9e18 c0342640 c038bbe8 c0bc1ffc ee641468
[  284.760530] 9e20: c034277c 00000000 ee95c068 c0bc182c ef1a9e54 ef1a9e40 c03427b4 c034257c
[  284.760530] 9e40: 00000000 ee641468 ef1a9e7c ef1a9e58 c0340c74 c0342788 ef179a78 ef101c3c
[  284.760530] 9e60: ef120400 ee641468 c0bc1990 ee64149c ef1a9e9c ef1a9e80 c034251c c0340bec
[  284.760530] 9e80: ee641468 c0bc1990 ee641468 00000000 ef1a9ebc ef1a9ea0 c0341a4c c034249c
[  284.760530] 9ea0: ee641468 00000000 ee641470 00000000 ef1a9f04 ef1a9ec0 c033ffe8 c0341a20
[  284.760530] 9ec0: 00000007 e8a04280 39383100 3538333a ee94fc00 00000000 ef1a9f04 ee641400
[  284.760530] 9ee0: ee641468 00000001 ee95c000 00000000 ee94fc18 00000000 ef1a9f24 ef1a9f08
[  284.760530] 9f00: c0383860 c033fb70 ee938e38 00000001 ee641400 ee95c000 ef1a9fb4 ef1a9f28
[  284.760530] 9f20: c0384a04 c03836b4 09f43d74 00000000 00000000 0000000a 00000001 ee95c09c
[  284.760530] 9f40: ee938e08 00000002 ee938c20 ee938c00 ee94fc00 ee938e89 ee938c20 00000000
[  284.760530] 9f60: ee95c000 ee938e00 ef047f0c 05010013 00000000 00000000 ef0f39c0 c0049ed8
[  284.760530] 9f80: ef1a9f80 ef1a9f80 00000013 ef047efc 00000000 c0383f8c 00000013 00000000
[  284.760530] 9fa0: 00000000 00000000 ef1a9ff4 ef1a9fb8 c0049644 c0383f98 00000000 00000000
[  284.760530] 9fc0: 00000000 00000000 00000000 00000000 ef1a9fd0 ef1a9fd0 00000000 ef047efc
[  284.760530] 9fe0: c00495b0 c000f300 00000000 ef1a9ff8 c000f300 c00495bc 7b77ffdf bffbbfff
[  284.760530] Code: e4805004 e4806004 e4807004 e4808004 (e480e004) 
[  285.442781] ---[ end trace 65e9928d154e6a5d ]---

Multiple RTW RFK-CHK errors.

Hey I'm running a 8821cu based EDUP AC1661 Wi-Fi/Bluetooth combo on Manjaro with kernel 5.3.6-1. Driver build worked fine but I'm experiencing an unstable connection with multiple soft dropouts plus disconnects and failures to connect. I did some searching on the log errors but I still cant find a solution. Any help would be great.
KSystemlog:
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:21 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:22 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:23 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:24 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:25 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:26 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:27 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:28 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:29 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:30 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:31 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:32 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch
25/10/19 11:33 AM kernel RTW: ERROR [RFK-CHK] RF-K not allowed due to ld_iface not stayin union ch

Missing bluetooth

The wifi part works but no bluetooth adapter is detected even though the chip supports bluetooth

fix nanopc t4 unrecognized command line option ‘-mhard-float’

platform: nanopc t4 with armbian 5.95
uname -a:
Linux nanopct4 4.4.190-rk3399 #5 SMP Sun Sep 1 23:12:43 CEST 2019 aarch64 GNU/Linux

get the driver to compile successfully by changing the following in Makefile

CONFIG_MP_VHT_HW_TX_MODE = y
to
CONFIG_MP_VHT_HW_TX_MODE = n

and the driver runs without problem (so far)

debian buster support rtl8821CU in firmware

I used this to fix bluetooth problems in ubuntu19. Thanks.
And now Debian buster is already able to support 8821Cu in firmware. Just execute:

apt install firmware-realtek

Just to say thanks, and to notice people.

Recognized only very intermittently in Fedora 30

I've built this in Fedora 30 (on a VM, through a Mac, FYI), kernel version 5.1.12. When I plug in the device, it recognizes it as a drive, and then I run the usb_modeswitch command. This command always gives me an error - "The connection for the USB device 'D-Link DWA-171' was unsuccessful." Looking at dmesg at this point shows a number of lines like "ERROR [HALMAC][ERR]Dump efuse in suspend" and "ERROR _halmac_reg_write_8: I/O FAIL!"

Some times after this, it then shows up in lsusb as D-link DWA-171, but not always - sometimes it's now missing entirely. Of the times when it does show up, most of the time it still does not show up in iwconfig. But one magical time it did...and then I was able to use the wifi connection no problem. The next time, it was back to not working. :-(

Kernel crash with 5.8.1

Installed the latest rtl8821CU from git today on Linux kernel 5.4.12 and I see the following kernel crash issue from the driver.

[ 502.018128] ------------[ cut here ]------------
[ 502.018148] WARNING: CPU: 4 PID: 6156 at /root/rtl8821CU/core/rtw_mlme_ext.c:12626 rtw_mlmeext_disconnect+0x15d/0x1c6 [8821cu]
[ 502.018149] Modules linked in: rpcsec_gss_krb5 xt_multiport nf_nat_tftp nft_counter ip6t_REJECT nf_reject_ipv6 gp8psk_fe ip6t_rpfilter ipt_REJECT nf_reject_ipv4 xt_conntrack nf_conntrack_tftp snd_hda_codec_hdmi xt_CT ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security 8821cu(OE) nf_tables nfnetlink dvb_usb_gp8psk dvb_usb dvb_core ip6table_filter rc_core ip6_tables videobuf2_vmalloc videobuf2_memops videobuf2_common videodev iptable_filter bpfilter mc intel_rapl_msr intel_rapl_common crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel snd_pcm_oss snd_mixer_oss iTCO_wdt nouveau iTCO_vendor_support aesni_intel mxm_wmi joydev crypto_simd bochs_drm wmi cryptd glue_helper drm_vram_helper video snd_hda_intel xhci_pci i2c_i801 serio_raw snd_intel_nhlt ttm snd_hda_codec xhci_hcd uhci_hcd snd_hda_core drm_kms_helper snd_hwdep drm snd_pcm snd_timer snd intel_agp intel_gtt
[ 502.018192] soundcore agpgart lpc_ich ehci_pci ehci_hcd evdev sch_fq_codel ip_tables
[ 502.018196] CPU: 4 PID: 6156 Comm: RTW_CMD_THREAD Tainted: G W OE 5.4.12 #1
[ 502.018196] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org 04/01/2014
[ 502.018208] RIP: 0010:rtw_mlmeext_disconnect+0x15d/0x1c6 [8821cu]
[ 502.018209] Code: ac a0 be 03 00 00 00 48 89 df e8 1b 7c 06 00 be 08 00 00 00 48 89 df e8 25 be 06 00 e9 15 ff ff ff 83 3d 40 b0 17 00 03 77 07 <0f> 0b e9 df fe ff ff 48 c7 c7 62 d4 9f a0 e8 44 43 7e e0 eb eb c6
[ 502.018210] RSP: 0018:ffff8882664a3e68 EFLAGS: 00010246
[ 502.018210] RAX: 0000000000000000 RBX: ffffc900000e7000 RCX: 0000000000000000
[ 502.018211] RDX: 0000000000000004 RSI: 0000000080000001 RDI: ffffc900000e7000
[ 502.018211] RBP: ffff88825611d200 R08: 0000000000000000 R09: 7fffffffffffffff
[ 502.018211] R10: ffff88827fd21040 R11: 000000000043b243 R12: ffffc900000e80c0
[ 502.018212] R13: ffffc900000e8090 R14: ffff888274e85580 R15: ffffffffa08fb260
[ 502.018213] FS: 0000000000000000(0000) GS:ffff88827fd00000(0000) knlGS:0000000000000000
[ 502.018213] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 502.018214] CR2: 0000561b44dee1d0 CR3: 00000002693ae001 CR4: 0000000000360ee0
[ 502.018216] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 502.018216] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 502.018216] Call Trace:
[ 502.018230] disconnect_hdl+0x48/0xc5 [8821cu]
[ 502.018239] rtw_cmd_thread+0x424/0x5d4 [8821cu]
[ 502.018241] kthread+0xf1/0x130
[ 502.018249] ? rtw_stop_cmd_thread+0x34/0x34 [8821cu]
[ 502.018249] ? kthread_park+0x80/0x80
[ 502.018251] ret_from_fork+0x35/0x40
[ 502.018252] ---[ end trace c88340b50e555b08 ]---

802.11ac in Access Point Mode?

Hi, I have installed this driver and want to run as Access Point Mode, in 5Ghz.

sudo ./create_ap -w 2 --no-virt -c 36 --ieee80211n --ieee80211ac \
  --ht_capab '[HT40+]' wlan0 eth0 AP_name password

Found the max bandwidth is only 150Mbps, 802.11n.

I have tried a lot of time, but still can't run it at bandwidth 433Mbps, 802.11ac.

I have tested, use it connect to a Router, everything is fine, could achieve 433Mbps.

I am not sure the problem caused by my command, or the driver, or the device limit.

So, I want to get some help with this.

Want to know it could be running 802.11ac in Access Point Mode and achieve 433Mbps?

Error on Kali 2020.1

make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-kali3-amd64/build M=/home/i/build/rtl8821CU modules
make[1]: *** /lib/modules/5.4.0-kali3-amd64/build: No such file or directory. Stop.
make: *** [Makefile:2183: modules] Error 2

Build error on Armbian 5.93 for Nanopi Neo

root@localhost:~/build/rtl8821CU# uname -a
Linux localhost 4.19.64-sunxi #5.93 SMP Mon Aug 5 14:17:36 CEST 2019 armv7l GNU/Linux
root@localhost:~/build/rtl8821CU# make
make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.64-sunxi/build M=/root/build/rtl8821CU  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.64-sunxi'
  CC [M]  /root/build/rtl8821CU/core/rtw_cmd.o
gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
make[2]: *** [scripts/Makefile.build:304: /root/build/rtl8821CU/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1518: _module_/root/build/rtl8821CU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.64-sunxi'
make: *** [Makefile:2182: modules] Error 2

Maybe some tweaking needs to be done in the Makefile?

Repeated site-survey errors causing latency/interruption issues

I am seeing issues with the driver continuously generating the same error in dmesg, and coincidentally also seeing a lot of latency/slowdown/interruption problems with networking, most obviously in SSH sessions that just freeze for 5-10 seonds before responding again. Specifically, I start seeing the error not long after I first connect and then it comes sporadically but always in pairs 2 seconds apart. Here's what I'm seeing (initial connection lines followed by the repeated error):

[  262.947364] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s20f0u6: link becomes ready
[  262.948239] RTW: set group key camid:5, addr:48:5d:36:d4:c1:be, kid:2, type:AES
[  274.565772] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  276.621743] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  288.902584] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  290.954432] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  303.237807] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  305.290415] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  331.913676] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  333.968971] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  346.254700] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey
[  348.302388] RTW: ERROR [RFK-CHK] RF-K not allowed due to ifaces under site-survey

I am using Fedora 31 (soon to be F32) and NetworkManager under KDE. Any ideas/suggestions on how to fix this would be greatly appreciated.

DKMS install error on Kali Linux

kali@kali:~$ git clone https://github.com/brektrou/rtl8821CU
Cloning into 'rtl8821CU'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 1403 (delta 23), reused 9 (delta 1), pack-reused 1340
Receiving objects: 100% (1403/1403), 5.57 MiB | 5.07 MiB/s, done.
Resolving deltas: 100% (796/796), done.
kali@kali:~$ cd rtl8821CU/
kali@kali:~/rtl8821CU$ sudo ./dkms-install.sh 
About to run dkms install steps...

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

DKMS: add completed.

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.4.1/build/make.log for more information.

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.4.1/build/make.log for more information.
Finished running dkms install steps.

EDIT:
dkms status:

kali@kali:~/rtl8821CU$ sudo dkms status
rtl8821CU, 5.4.1: added                                                                                                                                                                                                                    
virtualbox-guest, 6.1.6, 5.4.0-kali4-amd64, x86_64: installed
virtualbox-guest, 6.1.6, 5.5.0-kali1-amd64, x86_64: installed

make output:

kali@kali:~/rtl8821CU$ make
/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.5.0-kali1-amd64/build M=/home/kali/rtl8821CU  modules
make[1]: Entering directory '/usr/src/linux-headers-5.5.0-kali1-amd64'
/bin/sh: 1: bc: not found
  CC [M]  /home/kali/rtl8821CU/core/rtw_debug.o
In file included from /home/kali/rtl8821CU/include/drv_types.h:30,
                 from /home/kali/rtl8821CU/core/rtw_debug.c:17:
/home/kali/rtl8821CU/include/wifi.h:1032: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
 1032 | #define IEEE80211_MAX_AMPDU_BUF 0x40
      | 
In file included from /home/kali/rtl8821CU/include/osdep_service_linux.h:83,
                 from /home/kali/rtl8821CU/include/osdep_service.h:50,
                 from /home/kali/rtl8821CU/include/drv_types.h:27,
                 from /home/kali/rtl8821CU/core/rtw_debug.c:17:
/usr/src/linux-headers-5.5.0-kali1-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
 1451 | #define IEEE80211_MAX_AMPDU_BUF  0x100
      | 
/home/kali/rtl8821CU/core/rtw_debug.c: In function ‘dump_drv_version’:
/home/kali/rtl8821CU/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                              ^
In file included from /home/kali/rtl8821CU/include/drv_types.h:60,
                 from /home/kali/rtl8821CU/core/rtw_debug.c:17:
/home/kali/rtl8821CU/core/rtw_debug.c:45:44: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                            ^~~~~~~~
/home/kali/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
  114 |    _dbgdump(DRIVER_PREFIX fmt, ##arg);\
      |                                  ^~~
/home/kali/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |  ^~~~~~~~~~~~~
/home/kali/rtl8821CU/core/rtw_debug.c:45:54: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                                      ^~~~~~~~
/home/kali/rtl8821CU/include/rtw_debug.h:114:34: note: in definition of macro ‘RTW_PRINT’
  114 |    _dbgdump(DRIVER_PREFIX fmt, ##arg);\
      |                                  ^~~
/home/kali/rtl8821CU/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |  ^~~~~~~~~~~~~
/home/kali/rtl8821CU/core/rtw_debug.c:45:44: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   45 |  RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);
      |                                            ^~~~~~~~
/home/kali/rtl8821CU/include/rtw_debug.h:224:25: note: in definition of macro ‘RTW_PRINT_SEL’
  224 |    _seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \
      |                         ^~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.5.0-kali1-common/scripts/Makefile.build:271: /home/kali/rtl8821CU/core/rtw_debug.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.5.0-kali1-common/Makefile:1707: /home/kali/rtl8821CU] Error 2
make[1]: *** [/usr/src/linux-headers-5.5.0-kali1-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.5.0-kali1-amd64'
make: *** [Makefile:2213: modules] Error 2

Warm boot issue

I am observing a recurrent problem that I have seen before in old posts on the Internet. The issue is related to warm boot. Driver works well when I plug my USB device (rtl8821cu) in USB port when the system is turned on, also when the system does a cold boot. But if I perform a warm boot with the USB device plugged in, then the problems appear.

The result is that wireless interface is not shown in the list of available network interfaces. I have realized that issue is related to power on initialization sequence used by driver. Driver finds something different than expected and can not handle it properly.

https://pastebin.com/1qQAMWQC

version magic problem

$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-28-generic/build M=/home/zjk/github/rtl8821CU  modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-28-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-28-generic'

$ sudo modprobe 8821cu
modprobe: ERROR: could not insert '8821cu': Unknown symbol in module, or unknown parameter (see dmesg)
$ dmesg
[55260.676417] usbcore: registered new interface driver rtl88xxau
[55276.054904] usb 1-5.3: new high-speed USB device number 8 using xhci_hcd
[55276.155247] usb 1-5.3: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[55276.155252] usb 1-5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[55276.155255] usb 1-5.3: Product: 802.11ac NIC
[55276.155258] usb 1-5.3: Manufacturer: Realtek
[55276.155261] usb 1-5.3: SerialNumber: 123456
[55276.201639] 8821cu: version magic '5.0.0-37-generic SMP mod_unload ' should be '5.3.0-28-generic SMP mod_unload '
[55713.343830] usbcore: deregistering interface driver rtl88xxau
[56170.871989] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[56170.872123] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[56170.873184] 8821cu: version magic '5.0.0-37-generic SMP mod_unload ' should be '5.3.0-28-generic SMP mod_unload '

raspberry pi 4 build error

make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.19.97-v7l+/build M=/home/pi/rtl8821CU modules
make[1]: 进入目录“/usr/src/linux-headers-4.19.97-v7l+”
CC [M] /home/pi/rtl8821CU/core/rtw_cmd.o
gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together
make[2]: *** [scripts/Makefile.build:304:/home/pi/rtl8821CU/core/rtw_cmd.o] 错误 1
make[1]: *** [Makefile:1522:module/home/pi/rtl8821CU] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-4.19.97-v7l+”
make: *** [Makefile:2213:modules] 错误 2

Build fail on ARM (Raspberry Pi 2) - Fedora 30

Hi. Code compiles and works well for x86_64 on Fedora 29/30 but it fails on ARM (Raspberry Pi 2):

[Sun Jun 23 17:08:36 2019] usb 1-1.4: new high-speed USB device number 4 using dwc2
[Sun Jun 23 17:08:36 2019] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
[Sun Jun 23 17:08:36 2019] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Sun Jun 23 17:08:36 2019] usb 1-1.4: Product: 802.11ac NIC
[Sun Jun 23 17:08:36 2019] usb 1-1.4: Manufacturer: Realtek
[Sun Jun 23 17:08:36 2019] usb 1-1.4: SerialNumber: 123456
[Sun Jun 23 17:08:36 2019] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[Sun Jun 23 17:08:36 2019] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[Sun Jun 23 17:08:37 2019] 8821cu: loading out-of-tree module taints kernel.
[Sun Jun 23 17:08:37 2019] 8821cu: module verification failed: signature and/or required key missing - tainting kernel
**[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_ui2d (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dsub (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_fcmple (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_ddiv (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_fsub (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_d2uiz (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_d2iz (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_d2f (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dcmpge (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dmul (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dcmple (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_i2d (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_i2f (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_f2iz (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dcmplt (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dcmpgt (err -2)
[Sun Jun 23 17:08:37 2019] 8821cu: Unknown symbol __aeabi_dadd (err -2)**

Similar driver for different chipset compiles and works ok on ARM: https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959

Easy to reproduce on any latest Fedora.
sudo arm-image-installer --image=Fedora-Server-armhfp-30-1.2-sda.raw.xz --media=/dev/sdb --target=rpi2

Authorization repeatedly requested before connection finally suceeds

Network Manager asks for authorization repeatedly (up to five or six times) after reboot.
The connection is only successfully connected after sudo systemctl NetworkManager restart or nmcli con up [connection] is repeated several times ignoring the password dialogue.
Once the connection is established the device works as expected with good speeds.

problems using multi-devices

Hi,
thanks for driver, I tested it with different devices and it works very well.
Unfortunately if I turn on my board with multiple devices connected, they fail to connecting network, except one that works. Trying to connect every minutes always the same device works, the others continue to fail.
Instead if I switch on the board with only one device connected and I plug others one by one, they all work properly.
I repeated the test with different boards and different set of devices (two different manufacturers), obtaining same result.
I haven't error on dmesg and I have already excluded problems to power supply.
It's possibile that driver not initializes multiple devices at same time?
Thanks for your help...

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.