From 0b9c173fe97cca9f57ef9fe3b9fcbd08e10becbc Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 23 Mar 2010 14:37:01 -0700 Subject: 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. --- src/mm-plugin-base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2