bool(APPL_AUTH_WRITE_EXCEPTION)(const RawAddress& bd_addr);
#endif
+extern void bta_dm_process_remove_device(const RawAddress& bd_addr);
+
/*******************************************************************************
* L O C A L F U N C T I O N P R O T O T Y P E S *
******************************************************************************/
BTM_TRACE_EVENT("%s: State: %s", __func__,
btm_pair_state_descr(btm_cb.pairing_state));
+ if (btm_sec_is_a_bonded_dev(p)) {
+ BTM_TRACE_WARNING(
+ "%s: Incoming bond request, but %s is already bonded (removing)",
+ __func__, p.ToString().c_str());
+ bta_dm_process_remove_device(p);
+ }
+
p_dev_rec = btm_find_or_alloc_dev(evt_data.bd_addr);
BTM_TRACE_DEBUG("%s:Security mode: %d, Num Read Remote Feat pages: %d",