huawei: treat CFUN 0 as low power state

The Huawei plugin uses +CFUN=0 to put the modem in low power mode as
+CFUN=4 isn't supported by all Huawei modems. This patch modifies the
plugin to treat CFUN 0 as the 'LOW' power state, which is necessary as
otherwise ModemManager would prevent the modem from transitioning to the
'ON' power state.

(cherry picked from commit 771c83a73a3bd4ddf5045b86bb3d64d71f9d02c1)

BUG=chromium:368597
TEST=Verify that a Huawei dongle that only supports +CFUN=0 (but not ^RFSWITCH=0) can be disabled and re-enabled via shill.

Change-Id: Ibdd79fc7cc0063c78d5269945abe711c72058777
Reviewed-on: https://chromium-review.googlesource.com/198189
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
1 file changed