OSDN Git Service

HID: Handle closing of uhid driver in case failure
authorHemant Gupta <hemantg@codeaurora.org>
Wed, 19 Nov 2014 13:39:54 +0000 (19:09 +0530)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 2 Jun 2015 09:38:54 +0000 (02:38 -0700)
commit87072892dc006f4c037aae0a346eda6c18e6b8ba
treeae99d4a98ff7525952d50489d2483052e8c22669
parent6ba8fda60a9137a9f53f7e14edd87184610744fc
HID: Handle closing of uhid driver in case failure

This patch handles closure of the uhid driver in case of following:
- Due to concurrency of disconnection from a conencted device
  and an incoming connection request from another device, the error
  code for the ACL disconnection becomes HCI_ERR_HOST_REJECT_SECURITY
  in the stack.
- On reception of disconnection with that error codes, the uhid driver
  was not closed from the btif layer leading to issues in reconnection
  with same device that got disconnected.

Change-Id: I13c83757051850cc631aa1c24a036a2e1a4d0087
btif/co/bta_hh_co.c
btif/src/btif_hh.c