blob: a5670ec4607a8b657f66154dbeba7ae94ac352bf [file] [log] [blame]
Nate Jiang1590d092022-11-22 17:03:29 -08001/*
2 * Copyright (C) 2022 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
17package android.hardware.wifi;
18
Nate Jiang1590d092022-11-22 17:03:29 -080019import android.hardware.wifi.NanPairingRequestType;
20import android.hardware.wifi.NanStatus;
21import android.hardware.wifi.NpkSecurityAssociation;
22
23/**
24 * NAN pairing confirmation indication structure. Event indication is
25 * received on both initiator and responder side when negotiation for a
Gabriel Biren65192c32023-03-01 17:57:58 +000026 * pairing finishes on success or failure. See Wi-Fi Aware R4.0 section 7.6.1.4
Nate Jiang1590d092022-11-22 17:03:29 -080027 */
28@VintfStability
29parcelable NanPairingConfirmInd {
30 /**
31 * ID of the pairing session.
32 */
33 int pairingInstanceId;
34 /**
35 * Indicates whether the pairing setup succeeded (true) or failed (false).
36 */
37 boolean pairingSuccess;
38 /**
39 * Failure reason if |pairingSuccess| is false.
40 */
41 NanStatus status;
42 /**
43 * Indicate the pairing session is of setup or verification
44 */
45 NanPairingRequestType requestType;
46 /**
47 * Whether should cache the negotiated NIK/NPK for future verification
48 */
49 boolean enablePairingCache;
50 /**
51 * The security association negotiated for the pairing, can be cached for future verification
52 */
53 NpkSecurityAssociation npksa;
54}