summaryrefslogtreecommitdiff
path: root/drivers/huaweimodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-09-27 17:25:43 +0900
committerMarcel Holtmann <marcel@holtmann.org>2010-09-27 17:25:43 +0900
commit0e398f0d562cc39cded4836bfd1fb915dc170f10 (patch)
treeee82672779c1d103ccdc23fb1418eabcd629c66e /drivers/huaweimodem
parent815b3e592da1e3d30146baba2b8a09ad133b2fa3 (diff)
huaweimodem: Handle option parameter on call end notification
Diffstat (limited to 'drivers/huaweimodem')
-rw-r--r--drivers/huaweimodem/voicecall.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/huaweimodem/voicecall.c b/drivers/huaweimodem/voicecall.c
index 025bdd1f..56931bbb 100644
--- a/drivers/huaweimodem/voicecall.c
+++ b/drivers/huaweimodem/voicecall.c
@@ -413,11 +413,11 @@ static void cend_notify(GAtResult *result, gpointer user_data)
if (!g_at_result_iter_next_number(&iter, &end_status))
return;
- if (!g_at_result_iter_next_number(&iter, &cc_pause))
- return;
+ /* parameter is not present on errors */
+ g_at_result_iter_next_number(&iter, &cc_pause);
- ofono_info("Call end: id %d duration %ds status %d control %d",
- call_id, duration, end_status, cc_pause);
+ ofono_info("Call end: id %d duration %ds status %d",
+ call_id, duration, end_status);
l = g_slist_find_custom(vd->calls, GINT_TO_POINTER(call_id),
at_util_call_compare_by_id);