summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-12-01 12:08:51 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-01 12:08:51 +0200
commit2071a8a2f8e6d238ff0d0f44cb075c902b8ec0e4 (patch)
treedf0ca5bf4a8cfdc83284a72a9cace7bb22b2193d /src/main.c
parent722b85aa0cda44f276d7b41f7658a6fe9cc01fae (diff)
Get rid of OffMode and always behave like DevDown
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main.c b/src/main.c
index e9454603..af3368e9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -102,18 +102,6 @@ static void parse_config(GKeyFile *config)
debug("parsing main.conf");
- str = g_key_file_get_string(config, "General",
- "OffMode", &err);
- if (err) {
- debug("%s", err->message);
- g_clear_error(&err);
- } else {
- debug("offmode=%s", str);
- if (g_str_equal(str, "DevDown"))
- main_opts.offmode = HCID_OFFMODE_DEVDOWN;
- g_free(str);
- }
-
val = g_key_file_get_integer(config, "General",
"DiscoverableTimeout",
&err);
@@ -528,7 +516,6 @@ static void init_defaults(void)
{
/* Default HCId settings */
memset(&main_opts, 0, sizeof(main_opts));
- main_opts.offmode = HCID_OFFMODE_NOSCAN;
main_opts.scan = SCAN_PAGE;
main_opts.mode = MODE_CONNECTABLE;
main_opts.name = g_strdup("BlueZ");