Fix the GATT server and HOGP disconnect
GATT server disconnect and HOGP disconnect are not working after the following commit: bd9e1ef1. ‘BTA_GATTS_CancelOpen’ makes ‘gatt_update_app_hold_link_status’ return FALSE value. As a result, ‘BTA_GATTS_Close’ cannot disconnect the link. The sequence has to be changed like GATT client. And the above mentioned fix removed ‘found’ checking routine in ‘gatt_update_app_hold_link_status’. It makes two app hold links with same gatt_if when HOGP is connected and background connection is added. But HOGP disconnect removes only one held link. So HOGP is never disconnected. The ‘found’ checking routine has to be rolled back. Test: manual Change-Id: Ibea825b5cc844195f0cf4a30cbcca831880c9088
Loading
Please register or sign in to comment