usbmode: add config #0 and delay before actual config
authorHenrik Ginstmark <henrik@ginstmark.se>
Mon, 7 Feb 2022 21:30:40 +0000 (22:30 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 24 Feb 2022 20:40:51 +0000 (21:40 +0100)
commit3c8595a4e75510f58fa231b145d5506768dcafc9
tree9e61672e3c257f0819ebfec61aa994c5bd81c62b
parentf40f84c27534159066c94dadc0c08e0b255c3e26
usbmode: add config #0 and delay before actual config

I have a Huawei ME909s-120.  When I switch directly from configuration
to go via configuration #0, and a short delay, and then to configuration
well. So in order to fix it, add config #0 and a 100milliseconds
delay before switching to actual config, like in USB_ModeSwitch.

References: https://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=2710&sid=505ed44b4064fef7009f0c26aac085e2&start=15
Signed-off-by: Henrik Ginstmark <henrik@ginstmark.se>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [rebased, commit description facelift]
switch.c