From 1a0ab4d5bee3bea4c8153a3d147d5adca3be0bed Mon Sep 17 00:00:00 2001 From: Ravi Nagarajan Date: Mon, 6 Aug 2012 05:42:33 -0700 Subject: 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 --- btif/src/btif_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.1