From f2a7dfa1566c75a8a52dd6692e9b139e36ddbc9d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 9 Jun 2008 15:31:58 +0000 Subject: There is no kernel security manager --- tools/hciconfig.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'tools') diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 64c30b11..a01937b9 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -226,23 +226,6 @@ static void cmd_encrypt(int ctl, int hdev, char *opt) } } -static void cmd_secmgr(int ctl, int hdev, char *opt) -{ - int val, s = hci_open_dev(hdev); - - if (!strcmp(opt, "secmgr")) - val = 1; - else - val = 0; - - if (ioctl(s, HCISETSECMGR, val) < 0) { - fprintf(stderr, "Can't set security manager on hci%d: %s (%d)\n", - hdev, strerror(errno), errno); - exit(1); - } - close(s); -} - static void cmd_up(int ctl, int hdev, char *opt) { /* Start HCI device */ @@ -1642,8 +1625,6 @@ static struct { { "noauth", cmd_auth, 0, "Disable Authentication" }, { "encrypt", cmd_encrypt, 0, "Enable Encryption" }, { "noencrypt", cmd_encrypt, 0, "Disable Encryption" }, - { "secmgr", cmd_secmgr, 0, "Enable Security Manager" }, - { "nosecmgr", cmd_secmgr, 0, "Disable Security Manager" }, { "piscan", cmd_scan, 0, "Enable Page and Inquiry scan" }, { "noscan", cmd_scan, 0, "Disable scan" }, { "iscan", cmd_scan, 0, "Enable Inquiry scan" }, -- cgit