summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-08-05 22:24:34 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-08-05 22:24:34 +0200
commit9933c8568501165ed4426640cf6c9024eb4b4a21 (patch)
tree0c875ba91923f642c19ba7699a91d25efa20e704
parent23c0238bce556e05fff111e50d5d92caa35b553a (diff)
Remove obsolete security and pairing option
-rw-r--r--src/hcid.h10
-rw-r--r--src/main.c13
2 files changed, 4 insertions, 19 deletions
diff --git a/src/hcid.h b/src/hcid.h
index 70e22354..a367c201 100644
--- a/src/hcid.h
+++ b/src/hcid.h
@@ -95,8 +95,6 @@ struct device_list {
struct hcid_opts {
char host_name[40];
int auto_init;
- int security;
- int pairing;
int offmode;
char deviceid[15];
@@ -124,14 +122,6 @@ struct hci_req_data *hci_req_data_new(int dev_id, const bdaddr_t *dba, uint16_t
void hci_req_queue_append(struct hci_req_data *data);
void hci_req_queue_remove(int dev_id, bdaddr_t *dba);
-#define HCID_SEC_NONE 0
-#define HCID_SEC_AUTO 1
-#define HCID_SEC_USER 2
-
-#define HCID_PAIRING_NONE 0
-#define HCID_PAIRING_MULTI 1
-#define HCID_PAIRING_ONCE 2
-
#define HCID_OFFMODE_DEVDOWN 0
#define HCID_OFFMODE_NOSCAN 1
diff --git a/src/main.c b/src/main.c
index 9dbb0d01..0d1773a6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -705,8 +705,7 @@ static void device_devup_setup(int dev_id)
if (hcid.auto_init)
configure_device(dev_id);
manager_start_adapter(dev_id);
- if (hcid.security)
- start_security_manager(dev_id);
+ start_security_manager(dev_id);
}
static void init_all_devices(int ctl)
@@ -746,7 +745,6 @@ static void init_all_devices(int ctl)
static void init_defaults(void)
{
hcid.auto_init = 1;
- hcid.security = HCID_SEC_AUTO;
init_device_defaults(&default_device);
}
@@ -774,8 +772,7 @@ static inline void device_event(GIOChannel *chan, evt_stack_internal *si)
case HCI_DEV_DOWN:
info("HCI dev %d down", sd->dev_id);
manager_stop_adapter(sd->dev_id);
- if (hcid.security)
- stop_security_manager(sd->dev_id);
+ stop_security_manager(sd->dev_id);
break;
}
}
@@ -858,10 +855,8 @@ int main(int argc, char *argv[])
/* Default HCId settings */
memset(&hcid, 0, sizeof(hcid));
- hcid.auto_init = 1;
- hcid.security = HCID_SEC_AUTO;
- hcid.pairing = HCID_PAIRING_MULTI;
- hcid.offmode = HCID_OFFMODE_NOSCAN;
+ hcid.auto_init = 1;
+ hcid.offmode = HCID_OFFMODE_NOSCAN;
if (gethostname(hcid.host_name, sizeof(hcid.host_name) - 1) < 0)
strcpy(hcid.host_name, "noname");