summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-07 11:42:40 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-01-07 11:42:40 -0800
commit04c0be97d5b59ca4c1c0fcc626584e04b3e0f480 (patch)
tree6039594f58c18373b878999dc7d0f1a1e61427b9 /src/config.c
parent329c7954b9f166033fb8b7689b670eb76b9066f5 (diff)
downloadconnman-04c0be97d5b59ca4c1c0fcc626584e04b3e0f480.tar.gz
connman-04c0be97d5b59ca4c1c0fcc626584e04b3e0f480.tar.bz2
connman-04c0be97d5b59ca4c1c0fcc626584e04b3e0f480.zip
Add support for setting immutable flag from configurations
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 274d9c2c..4b6e3efe 100644
--- a/src/config.c
+++ b/src/config.c
@@ -392,6 +392,9 @@ static void provision_service(gpointer key, gpointer value, gpointer user_data)
if (memcmp(config->ssid, ssid, ssid_len) != 0)
return;
+ __connman_service_set_immutable(service, TRUE);
+ __connman_service_set_favorite(service, TRUE);
+
if (config->eap)
__connman_service_set_string(service, "EAP", config->eap);