summaryrefslogtreecommitdiffstats
path: root/btif
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-08-06 05:42:33 -0700
committerMatthew Xie <mattx@google.com>2012-08-09 23:13:57 -0700
commit1a0ab4d5bee3bea4c8153a3d147d5adca3be0bed (patch)
treed2ac3284ee6d91d4283c29a4747e61112349bfa8 /btif
parent3d50b084b10de8feca0d9edb51fa69591de37a17 (diff)
downloadexternal_bluetooth_bluedroid-1a0ab4d5bee3bea4c8153a3d147d5adca3be0bed.zip
external_bluetooth_bluedroid-1a0ab4d5bee3bea4c8153a3d147d5adca3be0bed.tar.gz
external_bluetooth_bluedroid-1a0ab4d5bee3bea4c8153a3d147d5adca3be0bed.tar.bz2
Send auth fail for both auto & non-auto pair tries
Both when auto-pair attempts exceeded or when auto-pair was not attempted, but authentication failure was observed, send auth fail to upper layer bug 6936335 Change-Id: Ieafd0c6bbc57fb36cf4c2c450556e4df7ec23a1a
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;