diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-09-28 09:26:47 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-09-28 09:27:17 +0200 |
commit | e5fa0233bb73a8374cf35e9170c66c580255815a (patch) | |
tree | 40f9a2089b0667038a68e172cf8e6a4f6486d4a6 | |
parent | dd98454a7ddeac98011cb1ed82be4cff588044a3 (diff) |
mmcli,ussd: don't rely on lock status to allow actions
Commit 001f35234e16d7aeb2ed1282ba3b57aea73c5a9e fixed this very same thing in
all the other interface actions, but 3GPP USSD actions were not fixed.
https://bugs.freedesktop.org/show_bug.cgi?id=97954
-rw-r--r-- | cli/mmcli-modem-3gpp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/mmcli-modem-3gpp.c b/cli/mmcli-modem-3gpp.c index 8d95a366..a785d025 100644 --- a/cli/mmcli-modem-3gpp.c +++ b/cli/mmcli-modem-3gpp.c @@ -178,8 +178,8 @@ ensure_modem_3gpp (void) static void ensure_modem_3gpp_ussd (void) { - if (mm_modem_get_unlock_required (mm_object_peek_modem (ctx->object)) != MM_MODEM_LOCK_NONE) { - g_printerr ("error: modem not unlocked yet\n"); + if (mm_modem_get_state (mm_object_peek_modem (ctx->object)) < MM_MODEM_STATE_ENABLED) { + g_printerr ("error: modem not enabled yet\n"); exit (EXIT_FAILURE); } |