brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.58k stars 458 forks source link

Realtek 0bda:c811 usb_modeswitch could't switch #157

Open licc opened 2 years ago

licc commented 2 years ago

Linux version 5.4.0-91-generic (buildd@lcy01-amd64-017) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021

image

root@leecc:~# sudo usb_modeswitch -KW -v 0bda -p c811 Take all parameters from the command line

DefaultVendor= 0x0bda DefaultProduct= 0xc811

StandardEject=1

Look for default devices ... found USB ID 1d6b:0003 found USB ID 0bda:c811 vendor ID matched product ID matched found USB ID 05e3:0610 found USB ID 1d6b:0002 Found devices in default mode (1) Access device 003 on bus 001 Get the current device configuration ... Current configuration number is 1 Use interface number 0 with class 255 Error: can't use storage command in MessageContent with interface 0; interface class is 255, expected 8. Abort

adamyap204 commented 2 years ago

same problem as you. I also use ubuntu 20.04 and same wifi adapter. after reboot due to some software update. the wifi adapter stop working and the moment i tried to install back then this problem hit me. I kinda new to this linux os. Hope anyone can help please

Pendrag00n commented 2 years ago

Same problem here. It used to work on an older Kali installation

PawelZ82 commented 2 years ago

For me, it didn't even install Error! Your kernel headers for kernel 5.15.30-v8+ cannot be found. Please install the linux-headers-5.15.30-v8+ package, or use the --kernelsourcedir option to tell DKMS where it's located Error! Your kernel headers for kernel 5.15.30-v8+ cannot be found. Please install the linux-headers-5.15.30-v8+ package, or use the --kernelsourcedir option to tell DKMS where it's located Finished running dkms install steps. The output of the modeswitch is the same

ls /lib/modules/5.15.30-v8+/ kernel modules.builtin modules.builtin.modinfo modules.devname modules.symbols modules.alias modules.builtin.alias.bin modules.dep modules.order modules.symbols.bin modules.alias.bin modules.builtin.bin modules.dep.bin modules.softdep

multikirin commented 2 years ago

Install your kernel headers or attempt to do:apt upgrade and then apt update (debian based)pacman -Syu linux-headers-$(uname -r)