From bdf0701768697b46429ddfdfb401edea4984db20 Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Tue, 2 Sep 2014 12:09:47 +0200 Subject: [PATCH] android/hidhost: Remove invalid connecting state notification 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 476742ea4..652baa00f 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 */ -- 2.47.3