Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6915572 authored by Hemant Gupta's avatar Hemant Gupta
Browse files

[2/2] Bluetooth: Security: Handle authentication rejected error status

Handle error codes in authentication complete event with failures
like reject pairing , unspecified error.

Change-Id: I392b7531a8625efbf91bf80f7f617a6954229892
parent d6cdbab9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -894,6 +894,10 @@ static void btif_dm_auth_cmpl_evt (tBTA_DM_AUTH_CMPL *p_auth_cmpl)
                status =  BT_STATUS_RMT_DEV_DOWN;
                break;

            case HCI_ERR_PAIRING_NOT_ALLOWED:
                status = BT_STATUS_AUTH_REJECTED;
                break;

            /* map the auth failure codes, so we can retry pairing if necessary */
            case HCI_ERR_AUTH_FAILURE:
            case HCI_ERR_KEY_MISSING: