blob: ec8548f0f534586c0baff9941bc0ada2a95790a3 [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.NanIdentityResolutionAttribute;
20import android.hardware.wifi.NanPairingRequestType;
21
22/**
23 * NAN pairing request indication message structure.
24 * Event indication received by an intended Responder when a
Gabriel Biren65192c32023-03-01 17:57:58 +000025 * pairing request is initiated by an Initiator. See Wi-Fi Aware R4.0 section 7.6.1.3
Nate Jiang1590d092022-11-22 17:03:29 -080026 */
27@VintfStability
28parcelable NanPairingRequestInd {
29 /**
30 * Discovery session (publish or subscribe) ID of a previously created discovery session. The
31 * pairing request is received in the context of this discovery session.
32 * NAN Spec: Service Descriptor Attribute (SDA) / Instance ID
33 */
34 byte discoverySessionId;
35 /**
36 * A unique ID of the peer. Can be subsequently used in |IWifiNanIface.transmitFollowupRequest|
37 * or to set up a data-path.
38 */
39 int peerId;
40 /**
41 * MAC address of the Initiator peer. This is the MAC address of the peer's
42 * management/discovery NAN interface.
43 */
44 byte[6] peerDiscMacAddr;
45 /**
46 * ID of the NAN pairing Used to identify the pairing in further negotiation/APIs.
47 */
48 int pairingInstanceId;
49 /**
50 * Indicate the pairing session is of setup or verification
51 */
52 NanPairingRequestType requestType;
53 /**
54 * Whether should cache the negotiated NIK/NPK for future verification
55 */
56 boolean enablePairingCache;
57 /**
58 * The NIRA from peer for NAN pairing verification
59 */
60 NanIdentityResolutionAttribute peerNira;
61}