~ubuntu-branches/ubuntu/vivid/modemmanager/vivid-proposed

« back to all changes in this revision

Viewing changes to plugins/mm-modem-sierra-cdma.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-16 17:12:41 UTC
  • mfrom: (16.1.1 oneiric)
  • Revision ID: james.westby@ubuntu.com-20110616171241-k8vgsdmbpsvx467q
Tags: 0.4.997-1
* debian/watch: Switch to .bz2 tarballs.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
             gpointer user_data)
149
149
{
150
150
    MMCallbackInfo *info = (MMCallbackInfo *) user_data;
151
 
    MMModemSierraCdmaPrivate *priv = MM_MODEM_SIERRA_CDMA_GET_PRIVATE (info->modem);
 
151
    MMModemSierraCdmaPrivate *priv;
152
152
    char **lines, **iter;
153
153
    gboolean registered = FALSE;
154
154
    gboolean have_sid = FALSE;
156
156
    SysMode sys_mode = SYS_MODE_UNKNOWN;
157
157
    gboolean evdo_roam = FALSE, cdma1x_roam = FALSE;
158
158
 
 
159
    /* If the modem has already been removed, return without
 
160
     * scheduling callback */
 
161
    if (mm_callback_info_check_modem_removed (info))
 
162
        return;
 
163
 
 
164
    priv = MM_MODEM_SIERRA_CDMA_GET_PRIVATE (info->modem);
 
165
 
159
166
    if (error) {
160
167
        /* Leave superclass' reg state alone if AT!STATUS isn't supported */
161
168
        goto done;
167
174
        goto done;
168
175
    }
169
176
 
170
 
    /* Sierra CDMA parts have two general formats depending on whether they 
 
177
    /* Sierra CDMA parts have two general formats depending on whether they
171
178
     * support EVDO or not.  EVDO parts report both 1x and EVDO roaming status
172
179
     * while of course 1x parts only report 1x status.  Some modems also do not
173
180
     * report the Roaming information (MP 555 GPS).
174
 
     * 
 
181
     *
175
182
     * AT!STATUS responses:
176
183
     *
177
184
     * Unregistered MC5725:
182
189
     * Temp: 33  State: 100  Sys Mode: NO SRV
183
190
     * Pilot NOT acquired
184
191
     * Modem has NOT registered
185
 
     * 
 
192
     *
186
193
     * Registered MC5725:
187
194
     * -----------------------
188
195
     * Current band: Cellular Sleep
340
347
              GError *error,
341
348
              gpointer user_data)
342
349
{
 
350
    MMCallbackInfo *info = (MMCallbackInfo *) user_data;
 
351
 
 
352
    /* If the modem has already been removed, return without
 
353
     * scheduling callback */
 
354
    if (mm_callback_info_check_modem_removed (info))
 
355
        return;
 
356
 
343
357
    /* Ignore errors for now; we're not sure if all Sierra CDMA devices support
344
358
     * at!pcstate.
345
359
     */
346
 
    mm_callback_info_schedule ((MMCallbackInfo *) user_data);
 
360
    mm_callback_info_schedule (info);
347
361
}
348
362
 
349
363
static void