aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-02-27 03:09:12 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-02-27 03:09:12 +0100
commitb500338672346e0c044fd5340073fdffdbf031c3 (patch)
treec3dd7cfdb83c774a9da4132b3a72f26fcf9c81df
parent7c17f3ed179ec9c2c2143228f0ca11afbdf8eda7 (diff)
downloadconnman-gnome-b500338672346e0c044fd5340073fdffdbf031c3.tar.gz
Fix state parsing and handling
-rw-r--r--common/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/client.c b/common/client.c
index 67686b1..732d86e 100644
--- a/common/client.c
+++ b/common/client.c
@@ -70,6 +70,8 @@ static void execute_state_callback(void)
switch (new_state) {
case CLIENT_STATE_SCANNING:
case CLIENT_STATE_CARRIER:
+ case CLIENT_STATE_CONNECT:
+ case CLIENT_STATE_CONNECTED:
case CLIENT_STATE_CONFIGURE:
case CLIENT_STATE_READY:
break;
@@ -118,7 +120,7 @@ static guint string_to_state(const char *state)
return CLIENT_STATE_SCANNING;
else if (g_ascii_strcasecmp(state, "connect") == 0)
return CLIENT_STATE_CONNECT;
- else if (g_ascii_strcasecmp(state, "connect") == 0)
+ else if (g_ascii_strcasecmp(state, "connected") == 0)
return CLIENT_STATE_CONNECTED;
else if (g_ascii_strcasecmp(state, "carrier") == 0)
return CLIENT_STATE_CARRIER;