fix(bt/bluedroid): Fix HID Host connection bugs

1. Fix is_orig value inconsistency for HIDH open event
2. Fix the error state for repeat connection of the same device
This commit is contained in:
liqigan
2024-04-10 14:58:50 +08:00
parent 2768d33be2
commit e1d2e0393d
6 changed files with 55 additions and 21 deletions
@@ -35,11 +35,11 @@ enum { HID_DEV_NO_CONN, HID_DEV_CONNECTED };
typedef struct per_device_ctb {
BOOLEAN in_use;
BOOLEAN delay_remove;
BOOLEAN is_orig;
BD_ADDR addr; /* BD-Addr of the host device */
UINT16 attr_mask; /* 0x01- virtual_cable; 0x02- normally_connectable; 0x03- reconn_initiate;
0x04- sdp_disable; */
UINT8 state; /* Device state if in HOST-KNOWN mode */
UINT8 conn_substate;
UINT8 conn_tries; /* Remembers to the number of connection attempts while CONNECTING */
tHID_CONN conn; /* L2CAP channel info */