Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit dfd5a2a2 authored by Yun-Hao Chung's avatar Yun-Hao Chung
Browse files

Floss: Separate out open failure case from BTA_HH close act

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
parent 25552a3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment