diff options
author | Thomas.TT_Lin <Thomas.TT_Lin@htc.com> | 2014-07-18 12:10:59 +0800 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2014-07-18 10:24:16 -0700 |
commit | 2772dac59971dd9c135cfac73a1ba77a912324f4 (patch) | |
tree | 189257a04a48c41b80783c9a28543e80a5ec09ba /stack/gap/gap_ble.c | |
parent | b62769de1683b58eb23a1bb5ca7106e77a642f37 (diff) | |
download | android_system_bt-2772dac59971dd9c135cfac73a1ba77a912324f4.tar.gz android_system_bt-2772dac59971dd9c135cfac73a1ba77a912324f4.tar.bz2 android_system_bt-2772dac59971dd9c135cfac73a1ba77a912324f4.zip |
Bluetooth: fix the HOGP device(iBUFFALO BSMBB09DS) pair and reconnect problem.
in bta_hh_le.c (fix reconnect issue)
Since new LE security flags are import, (BTM_SEC_LE_AUTHENTICATED, BTM_SEC_LE_ENCRYPTED,
BTM_SEC_LE_NAME_KNOWN, BTM_SEC_LE_LINK_KEY_KNOWN, BTM_SEC_LE_LINK_KEY_AUTHED),
we have to use new BTM_GetSecurityFlagsByTransport() function with LE transport to get right sec_flag,
or will cause cannot correctly add to white list and cause reconnect fail.
in btif_dm.c (fix HOGP mouse pair issue)
the HOGP mouse will become abnormal if we update connection parameter too many times.
Therefore the is_hid case is not suitable for HOGP mouse,
it will trigger call to L2CA_EnableUpdateBleConnParams() several times due to service discovery and bonded state.
L2CA_EnableUpdateBleConnParams() update connection cause mouse abnormal.
The change will make the flow: complete bonding procedure first, then do service discovery, connect to mouse.
in gap_ble.c (fix HOGP device pair issue)
After pairing status is bonded, host start to create ATT layer to get some information from HOGP device.
If host send "disconnect" command during period. Device will stop to feedback anything.
Suggest to delete it.
in smp_act.c (fix HOGP device pair issue)
update connection parameter too many times may cause mouse abnormal,
so remove this code since this will be called again after service discovery.
Suggest to delete it.
Change-Id: I4b722343c2b08d33530bc6b928bc9ffe89fd09e9
Signed-off-by: Thomas.TT_Lin <Thomas.TT_Lin@htc.com>
Diffstat (limited to 'stack/gap/gap_ble.c')
-rw-r--r-- | stack/gap/gap_ble.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/stack/gap/gap_ble.c b/stack/gap/gap_ble.c index d88d2b9f3..78a7819e6 100644 --- a/stack/gap/gap_ble.c +++ b/stack/gap/gap_ble.c @@ -513,7 +513,6 @@ void gap_ble_cl_op_cmpl(tGAP_CLCB *p_clcb, BOOLEAN status, UINT16 len, UINT8 *p_ (* p_dev_name_cback)(status, p_clcb->bda, len, (char *)p_name); } - GATT_Disconnect(p_clcb->conn_id); } |