From f53e53ba3738f3d24465ea577781b6c3ed6f6083 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 31 Aug 2012 10:04:37 +0200 Subject: [PATCH] novatel: fix checking ERI for roaming/home decision This is a port to git master of the following commit: commit c21e29c50b5661308fb3b223c05f6942c06dc15d Author: Dan Williams Date: Fri Aug 24 13:31:04 2012 -0500 novatel: fix checking ERI for roaming/home decision More fallout from b22b2d99db57e4cec8e6c3074dd20acd6845cb62 which changed the return type of the qcdm_result_get_*() functions. --- plugins/novatel/mm-broadband-modem-novatel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c index d18a39d8..0191a9f3 100644 --- a/plugins/novatel/mm-broadband-modem-novatel.c +++ b/plugins/novatel/mm-broadband-modem-novatel.c @@ -611,7 +611,7 @@ parse_modem_snapshot (DetailedRegistrationStateContext *ctx, guint8 eri = 0; /* Roaming? */ - if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri)) { + if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri) == 0) { gchar *str; gboolean roaming = FALSE;