blob: 456b43095708664d1725d14f6dc9279748f2eb96 [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
19import android.hardware.wifi.NanPairingRequestType;
20import android.hardware.wifi.NanPairingSecurityConfig;
21
22/**
23 * Response to a pairing request from a peer.
24 */
25@VintfStability
26parcelable NanRespondToPairingIndicationRequest {
27 /**
28 * Accept (true) or reject (false) the request.
29 * NAN Spec: Data Path Attributes / NDP Attribute / Type and Status
30 */
31 boolean acceptRequest;
32 /**
33 * ID of the NAN pairing for which we're responding. Obtained as part of the request in
34 * |IWifiNanIfaceEventCallback.eventPairingRequest|.
35 */
36 int pairingInstanceId;
37 /**
38 * Indicate the pairing session is of setup or verification
39 */
40 NanPairingRequestType requestType;
41 /**
42 * Whether should cache the negotiated NIK/NPK for future verification
43 */
44 boolean enablePairingCache;
45 /**
46 * The Identity key for pairing, can be used for pairing verification
47 */
48 byte[16] pairingIdentityKey;
49 /**
50 * Security config used for the pairing
51 */
52 NanPairingSecurityConfig securityConfig;
53}