HIDHOST_STATE_CONNECTING is reserved for local initiated connections according to Android framework. Sending it on incoming connection might confuse Android state machines. --- android/hidhost.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/hidhost.c b/android/hidhost.c index 476742e..652baa0 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -802,10 +802,8 @@ static void hog_conn_cb(const bdaddr_t *addr, int err, void *attrib) goto fail; } - if (!dev) { + if (!dev) dev = hid_device_new(addr); - bt_hid_notify_state(dev, HAL_HIDHOST_STATE_CONNECTING); - } if (!dev->hog) { /* TODO: Get device details and primary */ -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html