OSDN Git Service

BT_BOND: Report repeated_attempts failure to application
authorjuncao <juncao@codeaurora.org>
Wed, 15 Mar 2017 10:53:24 +0000 (18:53 +0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 16 Mar 2017 02:39:53 +0000 (19:39 -0700)
This change will ensure BT stack to  send repeated attempts
failure reason code to upper application.

Change-Id: Id0d5a323daabcd0a50193bb7bc6fde18fde3c5ad
CRs-Fixed: 2020250

btif/src/btif_dm.c

index 293a75c..5b9154f 100644 (file)
@@ -1398,6 +1398,7 @@ static void btif_dm_auth_cmpl_evt (tBTA_DM_AUTH_CMPL *p_auth_cmpl)
             case HCI_ERR_INSUFFCIENT_SECURITY:
             case HCI_ERR_PEER_USER:
             case HCI_ERR_UNSPECIFIED:
+            case HCI_ERR_REPEATED_ATTEMPTS:
                 BTIF_TRACE_DEBUG(" %s() Authentication fail reason %d",
                     __FUNCTION__, p_auth_cmpl->fail_reason);
                 if (pairing_cb.autopair_attempts  == 1)