diff options
author | Dan Williams <dcbw@redhat.com> | 2010-03-23 14:37:01 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-03-23 14:37:01 -0700 |
commit | 0b9c173fe97cca9f57ef9fe3b9fcbd08e10becbc (patch) | |
tree | f636a18e7a997d57a2a71477179e88f07b0a72b7 | |
parent | e7d1e4adb9bf984736ae2bfadbdd616ebc6ade80 (diff) |
core: assume +CPIN "READY" response indicates GSM capability (rh #573510)
Assume (for now) that devices that respond to AT+CPIN without an
error are GSM devices. This may not be 100% true as some devices
in Asia (where CDMA devices use RUIMs which are basically SIMs) support
+CPIN for unlocking the RUIM, but since CDMA devices more consistently
implement AT+GCAP and ATI than we should be safe for a while.
-rw-r--r-- | src/mm-plugin-base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index 9c1358a6..10204366 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -354,7 +354,8 @@ parse_cpin (const char *buf) || strcasestr (buf, "PH-SP PIN") || strcasestr (buf, "PH-SP PUK") || strcasestr (buf, "PH-CORP PIN") - || strcasestr (buf, "PH-CORP PUK")) + || strcasestr (buf, "PH-CORP PUK") + || strcasestr (buf, "READY")) return MM_PLUGIN_BASE_PORT_CAP_GSM; return 0; |