diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2011-01-04 17:49:05 +0200 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2011-01-07 13:39:18 +0200 |
commit | e1b6a5f16dee190f6d345fe3e2b308e520c9c009 (patch) | |
tree | 890e3a3e5c925f228f51b4da1b9ec2d5101ac2c5 /plugins/isiusb.c | |
parent | e0b6a058a2b42095a753817ec6c030e618d9f540 (diff) | |
download | ofono-e1b6a5f16dee190f6d345fe3e2b308e520c9c009.tar.bz2 |
isiusb: use simplified client interface
Diffstat (limited to 'plugins/isiusb.c')
-rw-r--r-- | plugins/isiusb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/isiusb.c b/plugins/isiusb.c index e7478bc7..2dbe870d 100644 --- a/plugins/isiusb.c +++ b/plugins/isiusb.c @@ -192,9 +192,9 @@ static gboolean bootstrap_current_state(gpointer user) MTC_STATE_QUERY_REQ, 0x00, 0x00 /* Filler */ }; + size_t len = sizeof(req); - g_isi_client_send(isi->client, req, sizeof(req), MTC_TIMEOUT, - mtc_query_cb, om, NULL); + g_isi_client_send(isi->client, req, len, mtc_query_cb, om, NULL); return FALSE; } @@ -383,7 +383,8 @@ static void isiusb_online(struct ofono_modem *modem, ofono_bool_t online, if (cbd == NULL || isi == NULL) goto error; - if (g_isi_client_send(isi->client, req, sizeof(req), MTC_STATE_REQ_TIMEOUT, + if (g_isi_client_send_with_timeout(isi->client, req, sizeof(req), + MTC_STATE_REQ_TIMEOUT, mtc_state_cb, cbd, NULL)) { isi->online = online; return; |