commit | 3ecdf823b0ae196bd6824d5dc140da752776b3f9 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Mon Aug 06 12:29:23 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Tue Aug 07 10:58:40 2012 -0700 |
tree | 1fa86970ef9bced94dd75f409c3dc00a47e22606 | |
parent | 6c72c972614285b2c01fb38afb2ffe06484a544a [diff] |
shill: cellular: Obtain IMSI when a GSM device is constructed. This CL modifies CellularCapabilityGSM to obtain the IMSI value at construction instead of when the modem is enabled. The IMSI value is checked by Chrome to determine if a SIM is present before the device can be enabled. BUG=chromium-os:31651 TEST=Tested the following: 1. Build and run unit tests. 2. Verify that Gobi and Icera modems can be enabled as follows: a. Configure the modem in GSM and insert a SIM with no PIN lock. b. Disable the cellular device from UI. c. Reboot the Chromebook. d. Enable the cellular device from UI and it works. e. Repeat with a PIN-locked SIM. 3. Verify that Gobi and Icera modems cannot be enabled as follows: a. Configure the modem in GSM with no SIM inserted. b. Disable the cellular device from UI. c. Reboot the Chromebook. d. Enable the cellular device from UI and it does not work. Change-Id: Iff21f972661cedb383b9a6820fdc7ba3160fd01a Reviewed-on: https://gerrit.chromium.org/gerrit/29313 Commit-Ready: Ben Chan <benchan@chromium.org> Reviewed-by: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org>