aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmicli
diff options
context:
space:
mode:
authorAliaksandr Barouski <alex.borovsky@gmail.com>2016-10-26 14:58:31 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-10-26 14:59:43 +0200
commit402c7af4da2d652e58f3530bf4327e57e6e11165 (patch)
tree1555ecb392b486f7ee64769092610887a370843e /src/qmicli
parent06fda6aadc6425ab89c88c9e92249d1c15ddaa3f (diff)
downloadexternal_libqmi-402c7af4da2d652e58f3530bf4327e57e6e11165.zip
external_libqmi-402c7af4da2d652e58f3530bf4327e57e6e11165.tar.gz
external_libqmi-402c7af4da2d652e58f3530bf4327e57e6e11165.tar.bz2
pdc: use NOT_PROVISIONED to detect 'no configs'
changed logic a bit to support situation when there is no config activated. In this case indication generated with error NOT_PROVISIONED.
Diffstat (limited to 'src/qmicli')
-rw-r--r--src/qmicli/qmicli-pdc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmicli/qmicli-pdc.c b/src/qmicli/qmicli-pdc.c
index ef77e30..883e7d9 100644
--- a/src/qmicli/qmicli-pdc.c
+++ b/src/qmicli/qmicli-pdc.c
@@ -529,7 +529,8 @@ get_selected_config_ready_indication (QmiClientPdc *client,
return;
}
- if (error_code != 0) {
+ if (error_code != 0 &&
+ error_code != QMI_PROTOCOL_ERROR_NOT_PROVISIONED) { /* No configs active */
g_printerr ("error: couldn't get selected config: %s\n",
qmi_protocol_error_get_string ((QmiProtocolError) error_code));
operation_shutdown (FALSE);