summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP.N.Janani <quic_janani@quicinc.com>2023-04-24 15:09:54 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2023-05-02 23:19:52 -0700
commit618aa2cb8e484407365f947910bafdda86fbdd04 (patch)
treeb15a1242426dc763a45770e57994dfe709e00290
parent02448a3d6a15a00e286f5898a0d68401f0f9f72d (diff)
Remove bonded device info on bond_none
Paired Device info removed from storage once moved into saved_list at BOND_NONE state. Need to repair again once paired device is active. CRs-Fixed: 3463104 Change-Id: I0ec5d06df8b7e7d6aa7ced1a46cfaadff489bafd
-rw-r--r--btif/src/btif_dm.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/btif/src/btif_dm.cc b/btif/src/btif_dm.cc
index 785a089e7..8864c4e4d 100644
--- a/btif/src/btif_dm.cc
+++ b/btif/src/btif_dm.cc
@@ -707,6 +707,7 @@ void bond_state_changed(bt_status_t status, const RawAddress& bd_addr,
btif_store_adv_audio_pair_info(bd_addr);
}else if(state == BT_BOND_STATE_NONE) {
bta_dm_reset_adv_audio_pairing_info(bd_addr);
+ btif_storage_remove_bonded_device(&bd_addr);
}
}