blob: 7e98bac96b28d4c3818bac42f4ade5aeee0ba4b1 [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;
Vinay Gannevaram91936642023-12-11 23:23:15 +053021import android.hardware.wifi.common.OuiKeyedData;
Nate Jiang1590d092022-11-22 17:03:29 -080022
23/**
24 * NAN pairing request indication message structure.
25 * Event indication received by an intended Responder when a
Gabriel Biren65192c32023-03-01 17:57:58 +000026 * 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 -080027 */
28@VintfStability
29parcelable NanPairingRequestInd {
30 /**
31 * Discovery session (publish or subscribe) ID of a previously created discovery session. The
32 * pairing request is received in the context of this discovery session.
33 * NAN Spec: Service Descriptor Attribute (SDA) / Instance ID
34 */
35 byte discoverySessionId;
36 /**
37 * A unique ID of the peer. Can be subsequently used in |IWifiNanIface.transmitFollowupRequest|
38 * or to set up a data-path.
39 */
40 int peerId;
41 /**
42 * MAC address of the Initiator peer. This is the MAC address of the peer's
43 * management/discovery NAN interface.
44 */
45 byte[6] peerDiscMacAddr;
46 /**
47 * ID of the NAN pairing Used to identify the pairing in further negotiation/APIs.
48 */
49 int pairingInstanceId;
50 /**
51 * Indicate the pairing session is of setup or verification
52 */
53 NanPairingRequestType requestType;
54 /**
55 * Whether should cache the negotiated NIK/NPK for future verification
56 */
57 boolean enablePairingCache;
58 /**
59 * The NIRA from peer for NAN pairing verification
60 */
61 NanIdentityResolutionAttribute peerNira;
Vinay Gannevaram91936642023-12-11 23:23:15 +053062 /**
63 * Optional vendor-specific parameters. Null value indicates
64 * that no vendor data is provided.
65 */
66 @nullable OuiKeyedData[] vendorData;
Nate Jiang1590d092022-11-22 17:03:29 -080067}