diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-06-27 09:58:02 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-06-27 10:12:19 -0500 |
commit | 6aa70ebf6beacccc750f52b1ced6c30ab4722633 (patch) | |
tree | 4bd19ee55c375b0c304268a1c9ca9cb044c5d3ac | |
parent | ba81abed67cddd21240395786f9efde813aec27d (diff) | |
download | ofono-6aa70ebf6beacccc750f52b1ced6c30ab4722633.tar.bz2 |
mbm: Use decode_error from atutil
-rw-r--r-- | plugins/mbm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/mbm.c b/plugins/mbm.c index 105843f0..f3ea7e5b 100644 --- a/plugins/mbm.c +++ b/plugins/mbm.c @@ -456,11 +456,10 @@ static void set_online_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct cb_data *cbd = user_data; ofono_modem_online_cb_t cb = cbd->cb; + struct ofono_error error; - if (ok) - CALLBACK_WITH_SUCCESS(cb, cbd->data); - else - CALLBACK_WITH_FAILURE(cb, cbd->data); + decode_at_error(&error, g_at_result_final_response(result)); + cb(&error, cbd->data); } static void mbm_set_online(struct ofono_modem *modem, ofono_bool_t online, |