summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
Diffstat (limited to 'btif')
-rwxr-xr-xbtif/src/btif_dm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index 32cb0d1..a1ff3f3 100755
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -785,8 +785,9 @@ static void btif_dm_auth_cmpl_evt (tBTA_DM_AUTH_CMPL *p_auth_cmpl)
btif_dm_cb_create_bond (&bd_addr);
return;
}
- else if (pairing_cb.autopair_attempts > 1)
+ else
{
+ /* if autopair attempts are more than 1, or not attempted */
status = BT_STATUS_AUTH_FAILURE;
}
break;