diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dbus-hci.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 8ae43371..bc1528f8 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1470,10 +1470,9 @@ void hcid_dbus_conn_complete(bdaddr_t *local, uint8_t status, uint16_t handle,  		device = adapter_find_device(adapter, paddr);  		if (device) { +			dev_path = device_get_path(device); -		  dev_path = device_get_path(device); - -		  dbus_connection_emit_property_changed(connection, +			dbus_connection_emit_property_changed(connection,  					dev_path, DEVICE_INTERFACE,  					"Connected", DBUS_TYPE_BOOLEAN,  					&connected); @@ -1831,7 +1830,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; | 
