From 40969d03ffa9cfe67dbd3cec6ce074443638ce4a Mon Sep 17 00:00:00 2001 From: Mallikarjuna GB Date: Mon, 22 Sep 2014 10:00:36 +0530 Subject: [PATCH] Clear remote BD address information. This change makes sure that when RFCOMM connection fails for HFP, AG control block clears the remote bd address. This will prevent the misuse of remote bd address. Change-Id: I9b14cfe7ae18e72f0972704ac3aa5e915f70ddb3 --- bta/ag/bta_ag_act.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bta/ag/bta_ag_act.c b/bta/ag/bta_ag_act.c index 62c4c9d75..8a28cfb1d 100644 --- a/bta/ag/bta_ag_act.c +++ b/bta/ag/bta_ag_act.c @@ -385,6 +385,8 @@ void bta_ag_rfc_fail(tBTA_AG_SCB *p_scb, tBTA_AG_DATA *p_data) p_scb->role = 0; p_scb->svc_conn = FALSE; p_scb->hsp_version = HSP_VERSION_1_2; + /*Clear the BD address*/ + bdcpy(p_scb->peer_addr, bd_addr_null); /* reopen registered servers */ bta_ag_start_servers(p_scb, p_scb->reg_services); -- 2.11.0