Fix status of operator unknown case
authorDenis Kenzior <denkenz@gmail.com>
Tue, 7 Jul 2009 16:18:39 +0000 (11:18 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Tue, 7 Jul 2009 19:33:59 +0000 (14:33 -0500)
When the current operator is reported, it's status is listed as
unknown if no other operators are in the operator list

src/network.c

index ec91a80..402d2af 100644 (file)
@@ -980,6 +980,8 @@ static void current_operator_callback(const struct ofono_error *error,
                memcpy(netreg->current_operator, current,
                        sizeof(struct ofono_network_operator));
 
+               netreg->current_operator->status = OPERATOR_STATUS_CURRENT;
+
                netreg->operator_list = g_slist_append(netreg->operator_list,
                                                netreg->current_operator);