diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-26 16:20:27 +0200 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-26 16:20:27 +0200 | 
| commit | 45ef24f213950cdc994e7553e466e181138f2d3b (patch) | |
| tree | 08e1dd2486d361fae0d4f773d9f5a7798a8147a7 | |
| parent | 978342ab9d2a5175ff9a8e5469abdea75ed1442a (diff) | |
Reject pairing if not "no bonding" and no agent is present
| -rw-r--r-- | src/dbus-hci.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 65b28da0..3a25abfc 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1829,7 +1829,8 @@ int hcid_dbus_get_io_cap(bdaddr_t *local, bdaddr_t *remote,  		agent = adapter->agent;  	if (!agent) { -		if (!(*auth & 0x01)) { +		if (device_get_auth(device) == 0x00 || +				device_get_auth(device) == 0x01) {  			/* No input, no output */  			*cap = 0x03;  			return 0; | 
