g_key_file_set_boolean(keyfile, identifier, "Enable",
technology->enable_persistent);
+ if (technology->tethering_ident != NULL)
+ g_key_file_set_string(keyfile, identifier,
+ "Tethering.Identifier",
+ technology->tethering_ident);
+
+ if (technology->tethering_passphrase != NULL)
+ g_key_file_set_string(keyfile, identifier,
+ "Tethering.Passphrase",
+ technology->tethering_passphrase);
+
done:
g_free(identifier);
technology_save(technology);
g_clear_error(&error);
}
+
+ technology->tethering_ident = g_key_file_get_string(keyfile,
+ identifier, "Tethering.Identifier", NULL);
+
+ technology->tethering_passphrase = g_key_file_get_string(keyfile,
+ identifier, "Tethering.Passphrase", NULL);
done:
g_free(identifier);
return __connman_error_invalid_arguments(msg);
technology->tethering_ident = g_strdup(str);
+ technology_save(technology);
} else if (g_str_equal(name, "TetheringPassphrase") == TRUE) {
const char *str;
return __connman_error_passphrase_required(msg);
technology->tethering_passphrase = g_strdup(str);
+ technology_save(technology);
} else if (g_str_equal(name, "Powered") == TRUE) {
connman_bool_t enable;