From 8e3b67bf44bf339a9b341ab02d67af92d6d185e2 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 7 May 2014 13:46:38 -0500 Subject: [PATCH] broadband-bearer-qmi: don't set APN if it isn't given If the APN was empty (implying that the modem/network should choose the default APN) this caused an assertion in libqmi. Just don't set an APN if we aren't given one. --- src/mm-bearer-qmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index 438d0d0f..7152e946 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -218,7 +218,7 @@ build_start_network_input (ConnectContext *ctx) input = qmi_message_wds_start_network_input_new (); - if (ctx->apn) + if (ctx->apn && ctx->apn[0]) qmi_message_wds_start_network_input_set_apn (input, ctx->apn, NULL); if (ctx->auth != QMI_WDS_AUTHENTICATION_NONE) {