[PATCH] broadband-modem-mbim: propagate error if MBIM_CID_VISIBLE_PROVIDERS query fails

Ben Chan benchan at chromium.org
Thu Feb 27 19:41:06 PST 2014


---
 src/mm-broadband-modem-mbim.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c
index 554e717..8cfa12c 100644
--- a/src/mm-broadband-modem-mbim.c
+++ b/src/mm-broadband-modem-mbim.c
@@ -2402,7 +2402,9 @@ modem_3gpp_scan_networks_finish (MMIfaceModem3gpp *self,
         info_list = mm_3gpp_network_info_list_from_mbim_providers ((const MbimProvider *const *)providers,
                                                                    n_providers);
         mbim_provider_array_free (providers);
-    }
+    } else
+        g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (res), error);
+
     return info_list;
 }
 
-- 
1.9.0.279.gdc9e3eb



More information about the ModemManager-devel mailing list