Fix race condition during LE device remove bond.
BTA_GATTC_CancelOpen doesn't execute immediately, but rather schedule operation for execution later. During bond removal, we must make sure that device is removed from white list before it's removed from resolving list. Calling GATT_CancelConnect directly fixes this issue. Additionally, after checking the logic, unconditional remove should remove all connection attempts, including direct connections, rather than just background connections. Bug: 122918938 Bug: 112827989 Test: re-bond hearing aids Change-Id: I9d861b7d83ea4da9c2a278eea2e34f2b7aca2417
Loading
Please register or sign in to comment