~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to plugins/novatel.c

  • Committer: Kalle Valo
  • Date: 2011-02-21 07:46:07 UTC
  • mfrom: (2738.1.2125)
  • Revision ID: kalle.valo@canonical.com-20110221074607-u4rocuj2p75kpht9
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 
130
130
        DBG("");
131
131
 
132
 
        if (ok)
133
 
                ofono_modem_set_powered(modem, TRUE);
 
132
        ofono_modem_set_powered(modem, ok);
134
133
}
135
134
 
136
135
static void nwdmat_action(gboolean ok, GAtResult *result, gpointer user_data)
310
309
 
311
310
        DBG("modem %p %s", modem, online ? "online" : "offline");
312
311
 
313
 
        if (cbd == NULL || chat == NULL)
 
312
        if (chat == NULL)
314
313
                goto error;
315
314
 
316
315
        if (g_at_chat_send(chat, command, NULL, set_online_cb, cbd, g_free))
349
348
 
350
349
        DBG("%p", modem);
351
350
 
352
 
        if (data->secondary != NULL)
 
351
        if (data->secondary != NULL) {
353
352
                ofono_radio_settings_create(modem, 0, "nwmodem",
354
353
                                                data->secondary);
 
354
 
 
355
                ofono_sms_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
 
356
                                                        data->secondary);
 
357
        }
355
358
}
356
359
 
357
360
static void novatel_post_online(struct ofono_modem *modem)
370
373
                ofono_netreg_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
371
374
                                                        data->secondary);
372
375
 
373
 
                ofono_sms_create(modem, OFONO_VENDOR_NOVATEL, "atmodem",
374
 
                                                        data->secondary);
375
376
                ofono_cbs_create(modem, OFONO_VENDOR_QUALCOMM_MSM, "atmodem",
376
377
                                                        data->secondary);
377
378
                ofono_ussd_create(modem, 0, "atmodem", data->secondary);