summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-07 11:18:39 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-07 14:33:59 -0500
commit35f7c4b06893fc49599d921cf0340accae41afba (patch)
tree1447f95f6b693635d4fc8ae6be606fa81d2906bc
parentb3a166abeaaf28265527ac99f0a3ddcaea63432d (diff)
downloadofono-35f7c4b06893fc49599d921cf0340accae41afba.tar.bz2
Fix status of operator unknown case
When the current operator is reported, it's status is listed as unknown if no other operators are in the operator list
-rw-r--r--src/network.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c
index ec91a803..402d2af1 100644
--- a/src/network.c
+++ b/src/network.c
@@ -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);