OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba8b23
)
Clear remote BD address information.
author
Mallikarjuna GB
<gbmalli@codeaurora.org>
Mon, 22 Sep 2014 04:30:36 +0000
(10:00 +0530)
committer
Andre Eisenbach
<eisenbach@google.com>
Fri, 5 Jun 2015 01:11:33 +0000
(
01:11
+0000)
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
patch
|
blob
|
history
diff --git
a/bta/ag/bta_ag_act.c
b/bta/ag/bta_ag_act.c
index
62c4c9d
..
8a28cfb
100644
(file)
--- 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);