OSDN Git Service

HID: Send Close event to upper layers during reconnection
authorHemant Gupta <hemantg@codeaurora.org>
Fri, 2 May 2014 19:01:26 +0000 (00:31 +0530)
committerZhihai Xu <zhihaixu@google.com>
Mon, 5 May 2014 18:19:22 +0000 (18:19 +0000)
commit0ab408fe6f6cb698ba1fcd8492d117c0d3574c7d
tree96dcb510ed8e03b44a05ba9eeb3785145486017a
parentca7f48cd6e94d29150d7d7a2d7918f9b50b99b7e
HID: Send Close event to upper layers during reconnection

This patch sends close event callback to upper layers, so that UI
is updated of correct state of HID connection when connection
between hid host and hid device drops for some reason and host is
attempting reconnection. Without this patch, upper layers gives
false update of connection still present when actually no connection
exists between hid devices. Connection state was only getting updated
if reconnection attempt was also failing.

Change-Id: Ic276d9b57c5c84c4264ddeeadc34c983c718ba3a
stack/hid/hidh_conn.c