Maybe we could only add US_FL_IGNORE_DEVICE for the exact Realtek-based models (Mercury MW310UH, D-Link AX9U, etc.) that fail with usb_modeswitch.
This avoids disabling access to the emulated CD for unrelated devices.
On August 13, 2025 9:53:12 PM GMT+04:00, Zenm Chen zenmchen@gmail.com wrote:
Alan Stern stern@rowland.harvard.edu 於 2025年8月14日 週四 上午12:58寫道:
On Thu, Aug 14, 2025 at 12:24:15AM +0800, Zenm Chen wrote:
Many Realtek USB Wi-Fi dongles released in recent years have two modes: one is driver CD mode which has Windows driver onboard, another one is Wi-Fi mode. Add the US_FL_IGNORE_DEVICE quirk for these multi-mode devices. Otherwise, usb_modeswitch may fail to switch them to Wi-Fi mode.
There are several other entries like this already in the unusual_devs.h file. But I wonder if we really still need them. Shouldn't the usb_modeswitch program be smart enough by now to know how to handle these things?
Hi Alan,
Thanks for your review and reply.
Without this patch applied, usb_modeswitch cannot switch my Mercury MW310UH into Wi-Fi mode [1]. I also ran into a similar problem like [2] with D-Link AX9U, so I believe this patch is needed.
In theory, someone might want to access the Windows driver on the emulated CD. With this quirk, they wouldn't be able to.
Actually an emulated CD doesn't appear when I insert these 2 Wi-Fi dongles into my Linux PC, so users cannot access that Windows driver even if this patch is not applied.
Alan Stern
[1] https://drive.google.com/file/d/1YfWUTxKnvSeu1egMSwcF-memu3Kis8Mg/view?usp=d...
Giorgi giorgitchankvetadze1997@gmail.com 於 2025年8月14日 週四 上午2:07寫道:
Maybe we could only add US_FL_IGNORE_DEVICE for the exact Realtek-based models (Mercury MW310UH, D-Link AX9U, etc.) that fail with usb_modeswitch.
This avoids disabling access to the emulated CD for unrelated devices.
All the Realtek multi-mode Wi-Fi dongles share these two ID (0bda:1a2b and 0bda:a192), so I don't know how to achieve this.
On August 13, 2025 9:53:12 PM GMT+04:00, Zenm Chen zenmchen@gmail.com wrote:
Alan Stern stern@rowland.harvard.edu 於 2025年8月14日 週四 上午12:58寫道:
On Thu, Aug 14, 2025 at 12:24:15AM +0800, Zenm Chen wrote:
Many Realtek USB Wi-Fi dongles released in recent years have two modes: one is driver CD mode which has Windows driver onboard, another one is Wi-Fi mode. Add the US_FL_IGNORE_DEVICE quirk for these multi-mode devices. Otherwise, usb_modeswitch may fail to switch them to Wi-Fi mode.
There are several other entries like this already in the unusual_devs.h file. But I wonder if we really still need them. Shouldn't the usb_modeswitch program be smart enough by now to know how to handle these things?
Hi Alan,
Thanks for your review and reply.
Without this patch applied, usb_modeswitch cannot switch my Mercury MW310UH into Wi-Fi mode [1]. I also ran into a similar problem like [2] with D-Link AX9U, so I believe this patch is needed.
In theory, someone might want to access the Windows driver on the emulated CD. With this quirk, they wouldn't be able to.
Actually an emulated CD doesn't appear when I insert these 2 Wi-Fi dongles into my Linux PC, so users cannot access that Windows driver even if this patch is not applied.
Alan Stern
[1] https://drive.google.com/file/d/1YfWUTxKnvSeu1egMSwcF-memu3Kis8Mg/view?usp=d...
linux-stable-mirror@lists.linaro.org