summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-06-17 07:53:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-06-17 07:53:50 +0000
commit0ea10717ec34a34650e8fdc8a1b50c64ee190418 (patch)
tree5a5a2f21d35061a82f9f7419cc94d3df851d72f8 /hcid/main.c
parentb1609cb6ebaa241102257152e8eb8f248726035f (diff)
Remove auth and encrypt settings (security mode 3)
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 5228f479..4dcf2510 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -308,28 +308,6 @@ static void configure_device(int hdev)
hdev, strerror(errno), errno);
}
- /* Set authentication */
- if (device_opts->auth)
- dr.dev_opt = AUTH_ENABLED;
- else
- dr.dev_opt = AUTH_DISABLED;
-
- if (ioctl(s, HCISETAUTH, (unsigned long) &dr) < 0) {
- error("Can't set auth on hci%d: %s (%d)",
- hdev, strerror(errno), errno);
- }
-
- /* Set encryption */
- if (device_opts->encrypt)
- dr.dev_opt = ENCRYPT_P2P;
- else
- dr.dev_opt = ENCRYPT_DISABLED;
-
- if (ioctl(s, HCISETENCRYPT, (unsigned long) &dr) < 0) {
- error("Can't set encrypt on hci%d: %s (%d)",
- hdev, strerror(errno), errno);
- }
-
/* Set device name */
if ((device_opts->flags & (1 << HCID_SET_NAME)) && device_opts->name) {
change_local_name_cp cp;