summaryrefslogtreecommitdiffstats
path: root/stack/smp
diff options
context:
space:
mode:
authorMudumba Ananth <ananthm@broadcom.com>2014-07-04 03:15:37 -0700
committerAndre Eisenbach <eisenbach@google.com>2014-09-09 10:39:31 -0700
commitdb2bdd59473d02d195c73e2bd67adf6a03a34ed6 (patch)
tree8ed77a605026020fe422a828fd4aef1d7068bd14 /stack/smp
parent7bf480e3e3e1df04c0be6d466d8dffac5abaae40 (diff)
downloadandroid_system_bt-db2bdd59473d02d195c73e2bd67adf6a03a34ed6.tar.gz
android_system_bt-db2bdd59473d02d195c73e2bd67adf6a03a34ed6.tar.bz2
android_system_bt-db2bdd59473d02d195c73e2bd67adf6a03a34ed6.zip
SMP doesn't detect the event of local processing taking more than SMP timeout (30 sec)
Bug: 16560957 Change-Id: I1113f367187a30e01fa3d5d2a5ccb0243580e06b
Diffstat (limited to 'stack/smp')
-rw-r--r--stack/smp/smp_l2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stack/smp/smp_l2c.c b/stack/smp/smp_l2c.c
index 671f52e1e..63c851c79 100644
--- a/stack/smp/smp_l2c.c
+++ b/stack/smp/smp_l2c.c
@@ -170,6 +170,8 @@ static void smp_data_ind (BD_ADDR bd_addr, BT_HDR *p_buf)
if (p_cb->state != SMP_ST_RELEASE_DELAY)
{
btu_stop_timer (&p_cb->rsp_timer_ent);
+ btu_start_timer (&p_cb->rsp_timer_ent, BTU_TTYPE_SMP_PAIRING_CMD,
+ SMP_WAIT_FOR_RSP_TOUT);
}
p_cb->rcvd_cmd_code = cmd;
p_cb->rcvd_cmd_len = (UINT8) p_buf->len;