• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18package android.bluetooth.smp;
19
20option java_outer_classname = "BluetoothSmpProtoEnums";
21option java_multiple_files = true;
22
23// SMP Pairing command codes
24enum CommandEnum {
25    CMD_UNKNOWN = 0x00;
26    CMD_PAIRING_REQUEST = 0x01;
27    CMD_PAIRING_RESPONSE = 0x02;
28    CMD_PAIRING_CONFIRM = 0x03;
29    CMD_PAIRING_RANDOM = 0x04;
30    CMD_PAIRING_FAILED = 0x05;
31    CMD_ENCRYPTION_INFON = 0x06;
32    CMD_MASTER_IDENTIFICATION = 0x07;
33    CMD_IDENTITY_INFO = 0x08;
34    CMD_IDENTITY_ADDR_INFO = 0x09;
35    CMD_SIGNING_INFO = 0x0A;
36    CMD_SECURITY_REQUEST = 0x0B;
37    CMD_PAIRING_PUBLIC_KEY = 0x0C;
38    CMD_PAIRING_DHKEY_CHECK = 0x0D;
39    CMD_PAIRING_KEYPRESS_INFO = 0x0E;
40}
41
42enum PairingFailReasonEnum {
43    PAIRING_FAIL_REASON_RESERVED = 0x00;
44    PAIRING_FAIL_REASON_PASSKEY_ENTRY = 0x01;
45    PAIRING_FAIL_REASON_OOB = 0x02;
46    PAIRING_FAIL_REASON_AUTH_REQ = 0x03;
47    PAIRING_FAIL_REASON_CONFIRM_VALUE = 0x04;
48    PAIRING_FAIL_REASON_PAIR_NOT_SUPPORT = 0x05;
49    PAIRING_FAIL_REASON_ENC_KEY_SIZE = 0x06;
50    PAIRING_FAIL_REASON_INVALID_CMD = 0x07;
51    PAIRING_FAIL_REASON_UNSPECIFIED = 0x08;
52    PAIRING_FAIL_REASON_REPEATED_ATTEMPTS = 0x09;
53    PAIRING_FAIL_REASON_INVALID_PARAMETERS = 0x0A;
54    PAIRING_FAIL_REASON_DHKEY_CHK = 0x0B;
55    PAIRING_FAIL_REASON_NUMERIC_COMPARISON = 0x0C;
56    PAIRING_FAIL_REASON_CLASSIC_PAIRING_IN_PROGR = 0x0D;
57    PAIRING_FAIL_REASON_XTRANS_DERIVE_NOT_ALLOW = 0x0E;
58}