Re: [PATCH] USB: storage: Ignore driver CD mode for Realtek multi-mode Wi-Fi dongles
From: Zenm Chen
Date: Thu Aug 14 2025 - 11:06:32 EST
> Hi Lars,
>
> If I apply this patch to my kernel, usb_modeswitch can switch both to
> Wi-Fi mode smoothly and fastly, but I don't know why. @@
I forgot to say that I've added one more entry into /lib/udev/rules.d/40-usb_modeswitch.rules
to let usb_modeswitch support the ID 0bda:a192.
$ grep -E "1a2b|a192" -i /lib/udev/rules.d/40-usb_modeswitch.rules
ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="usb_modeswitch '/%k'"
ATTR{idVendor}=="0bda", ATTR{idProduct}=="a192", RUN+="usb_modeswitch '/%k'"
A config file in /usr/share/usb_modeswitch for the ID 0bda:a192 was also created.
$ cat /usr/share/usb_modeswitch/0bda\:a192
# RTL8192FU
TargetVendor=0x0bda
TargetProduct=0xf192
StandardEject=1