diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-01-04 22:47:36 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:45 +0100 |
commit | e28183274f6b10af42f2ec9e6e77f1a9cb01ee03 (patch) | |
tree | c4a2b30d24a26750865496058fcc317ece8773a3 /src/mm-iface-modem-cdma.c | |
parent | 9efabb8fcb9aa0c8e7d8afb3e313082fc9773e64 (diff) |
broadband-modem: implement default serving system and service status retrieval
Diffstat (limited to 'src/mm-iface-modem-cdma.c')
-rw-r--r-- | src/mm-iface-modem-cdma.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mm-iface-modem-cdma.c b/src/mm-iface-modem-cdma.c index b7f05a19..93307314 100644 --- a/src/mm-iface-modem-cdma.c +++ b/src/mm-iface-modem-cdma.c @@ -628,8 +628,16 @@ registration_check_step (RunAllRegistrationChecksContext *ctx) ctx->step++; case REGISTRATION_CHECK_STEP_AT_CDMA1X_SERVING_SYSTEM: - /* Plugins may fully disable querying the serving system, for example if - * they already know that AT+CSS? will return undesired errors. */ + /* Now that we have some sort of service, check if the the device is + * registered on the network. + */ + + /* Some devices key the AT+CSS? response off the 1X state, but if the + * device has EVDO service but no 1X service, then reading AT+CSS? will + * error out too early. Let subclasses that know that their AT+CSS? + * response is wrong in this case handle more specific registration + * themselves; if they do, they'll set these callbacks to NULL.. + */ if (MM_IFACE_MODEM_CDMA_GET_INTERFACE (ctx->self)->get_cdma1x_serving_system && MM_IFACE_MODEM_CDMA_GET_INTERFACE (ctx->self)->get_cdma1x_serving_system_finish) { MM_IFACE_MODEM_CDMA_GET_INTERFACE (ctx->self)->get_cdma1x_serving_system ( |