+12
−37
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Currently we use disconnect reason in bta_hh_close_act to tell if HID is connected or not. One case that could make this approach fail is HID_ERR_AUTH_FAILED, which can be reported before HID open (ex. encyption mode not acceptable) or after HID open (ex. key refresh caused by role switch). This patch separates out the open failure case from the close act and use BTA_HH_STATE to decide whether the HID is opened or not. Bug: 312091718 Test: run sr_reconnect_multiple_classic_hid on sarien Test: mma -j Tag: #floss Change-Id: I928ac08d3f923c7abc8844dc1bcac1473396e5eb