components/bt: Fix clear bond fail when connected without ble included
This commit is contained in:
parent
67276f5d26
commit
abf6cecde1
1 changed files with 6 additions and 4 deletions
|
@ -756,11 +756,13 @@ void bta_dm_remove_device(tBTA_DM_MSG *p_data)
|
||||||
/* Take the link down first, and mark the device for removal when disconnected */
|
/* Take the link down first, and mark the device for removal when disconnected */
|
||||||
for (int i = 0; i < bta_dm_cb.device_list.count; i++) {
|
for (int i = 0; i < bta_dm_cb.device_list.count; i++) {
|
||||||
if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)
|
if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)
|
||||||
&& bta_dm_cb.device_list.peer_device[i].transport == transport) {
|
#if BLE_INCLUDED == TRUE
|
||||||
|
&& bta_dm_cb.device_list.peer_device[i].transport == transport
|
||||||
|
#endif
|
||||||
|
) {
|
||||||
bta_dm_cb.device_list.peer_device[i].conn_state = BTA_DM_UNPAIRING;
|
bta_dm_cb.device_list.peer_device[i].conn_state = BTA_DM_UNPAIRING;
|
||||||
btm_remove_acl( p_dev->bd_addr, bta_dm_cb.device_list.peer_device[i].transport);
|
btm_remove_acl( p_dev->bd_addr, transport);
|
||||||
APPL_TRACE_DEBUG("%s:transport = %d", __func__,
|
APPL_TRACE_DEBUG("%s:transport = %d", __func__, transport);
|
||||||
bta_dm_cb.device_list.peer_device[i].transport);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue