Add support for initial delay of modem switch operation.
This reintroduces CL:175741 (but fixes a missing header inclusion) that
adds an 'initial_delay_ms' parameter in the mist configuration file for
specifying the initial delay, in milliseconds, that mist should wait
before starting the modem switch operation. Such a delay is required to
reliably switch some dongles (e.g. Micromax MMX 353G) to the modem mode.
BUG=chromium:313211
TEST=Tested the following:
1. Build and run unit tests.
2. Run remote trybots on {x86,amd64,arm-generic}-release builders.
3. Verify on daisy_spring and peppy that mist successfully switches the
Micromax MMX 353G dongle from the mass storage mode to the modem
mode.
Change-Id: Ie82bfe6777b4495b05d304fd78e8d5961041830e
Reviewed-on: https://chromium-review.googlesource.com/175859
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
5 files changed