diff options
author | Lukasz Rymanowski <lukasz.rymanowski@tieto.com> | 2014-09-02 12:09:47 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-09-02 17:12:52 +0200 |
commit | bdf0701768697b46429ddfdfb401edea4984db20 (patch) | |
tree | 1990d93f5bd7b4a1fc5dbec32f6beb15943f83f8 /android/hidhost.c | |
parent | 35a6c189c08bd9f8562fab92cdc294fea58a50cf (diff) | |
download | bluez-bdf0701768697b46429ddfdfb401edea4984db20.tar.gz |
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.
Diffstat (limited to 'android/hidhost.c')
-rw-r--r-- | android/hidhost.c | 4 |
1 files changed, 1 insertions, 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 */ |