diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-13 21:18:09 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-13 21:18:09 +0000 |
commit | 9a9137da042a02cc155e3019b39a2705aea1c0b8 (patch) | |
tree | 3e5150deaec656c4851de916ac76375e99fe7d59 /hcid/main.c | |
parent | 1477aa78883562b5d5e97e4ec6fa2d23216673c2 (diff) |
Switch autoinit and security on by default
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hcid/main.c b/hcid/main.c index 03b49ff1..81dcbda6 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -66,7 +66,7 @@ static void usage(void) static inline void init_device_defaults(struct device_opts *device_opts) { memset(device_opts, 0, sizeof(*device_opts)); - device_opts->scan = SCAN_PAGE | SCAN_INQUIRY; + device_opts->scan = SCAN_PAGE; device_opts->name = strdup("BlueZ"); } @@ -426,8 +426,8 @@ static void init_all_devices(int ctl) static void init_defaults(void) { - hcid.auto_init = 0; - hcid.security = 0; + hcid.auto_init = 1; + hcid.security = HCID_SEC_AUTO; init_device_defaults(&default_device); } @@ -548,6 +548,7 @@ int main(int argc, char *argv[], char *env[]) daemon = 1; dofork = 1; sdp = 0; /* Default HCId settings */ + hcid.auto_init = 1; hcid.config_file = HCID_CONFIG_FILE; hcid.host_name = get_host_name(); hcid.security = HCID_SEC_AUTO; |