Blob Blame History Raw
From aa74ea1aa64470b2b4ec76dbc707f30fc22e3f83 Mon Sep 17 00:00:00 2001
From: Ben Chan <benchan@chromium.org>
Date: Tue, 17 Sep 2013 14:47:09 -0700
Subject: [PATCH] iface-modem: fix MODEM_STATE_IS_INTERMEDIATE macro
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
---
 src/mm-iface-modem.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 748a720..02b03db 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -80,12 +80,12 @@ mm_iface_modem_bind_simple_status (MMIfaceModem *self,
 /*****************************************************************************/
 /* Helper method to wait for a final state */
 
-#define MODEM_STATE_IS_INTERMEDIATE(state)      \
-    (state == MM_MODEM_STATE_INITIALIZING ||    \
-     state == MM_MODEM_STATE_INITIALIZING ||    \
-     state == MM_MODEM_STATE_INITIALIZING ||    \
-     state == MM_MODEM_STATE_INITIALIZING ||    \
-     state == MM_MODEM_STATE_INITIALIZING)
+#define MODEM_STATE_IS_INTERMEDIATE(state)       \
+    (state == MM_MODEM_STATE_INITIALIZING  ||    \
+     state == MM_MODEM_STATE_DISABLING     ||    \
+     state == MM_MODEM_STATE_ENABLING      ||    \
+     state == MM_MODEM_STATE_DISCONNECTING ||    \
+     state == MM_MODEM_STATE_CONNECTING)
 
 typedef struct {
     MMIfaceModem *self;
-- 
2.1.0