commit | ee464d3c77dc7662973bfa5cb3c6eeb207366eac | [log] [tgz] |
---|---|---|
author | Arman Uguray <armansito@chromium.org> | Wed Feb 13 17:14:36 2013 -0800 |
committer | ChromeBot <chrome-bot@google.com> | Thu Feb 14 11:24:44 2013 -0800 |
tree | 724e6a95c7530a623421a79e3fe32d0fdc855266 | |
parent | 68710d73d07b5b6f2a083b6807edd43df23be17f [diff] |
shill: cellular: call SetPowerState after disabling modem. Since ModemManager no longer powers down the modem when the modem is disabled, CellularCapabilityUniversal now calls the new SetPowerState method on org.freedesktop.ModemManager1.Modem to put the modem into a low power state after disabling it. In the event that the call to SetPowerState fails, the error is ignored and the overall disable operation is treated as success. BUG=chromium-os:38864 TEST=1. Build and run unit tests. 2. Enable and disable cellular through the UI. On a modem that supports the explicit switch to a low-power state, ModemManager's PowerState property should be set to low after a successful disable. Change-Id: I631d8df118ed6e300ec0b197ec87e744bd2502bd Reviewed-on: https://gerrit.chromium.org/gerrit/43241 Reviewed-by: Thieu Le <thieule@chromium.org> Commit-Queue: Arman Uguray <armansito@chromium.org> Tested-by: Arman Uguray <armansito@chromium.org>