diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2004-10-25 08:16:45 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2004-10-25 08:16:45 +0000 | 
| commit | 2f2181a94c8be0d4a97df83c15b17e1ea7b19624 (patch) | |
| tree | 345054b1b3ac4e055d87412ea3e1ee8cb500e284 | |
| parent | 4e37d72b4562ffbfc3e73ef5d9bf0b722e841ab1 (diff) | |
Don't do anything if the kernel security manager is active
| -rw-r--r-- | hcid/security.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/security.c b/hcid/security.c index f903e11c..fecafb93 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -414,6 +414,11 @@ gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer data)  	dev = g_io_channel_unix_get_fd(chan); +	ioctl(dev, HCIGETDEVINFO, (void *) di); + +	if (hci_test_bit(HCI_SECMGR, &di->flags)) +		return TRUE; +  	switch (eh->evt) {  	case EVT_PIN_CODE_REQ:  		pin_code_request(dev, &di->bdaddr, (bdaddr_t *) ptr);  | 
