blob: e11122fbc0ab49a24ace1ea8048ecff1f914ec31 [file] [log] [blame]
/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.wifi;
import android.hardware.wifi.NanBootstrappingMethod;
/**
* NAN Data path request indication message structure.
* Event indication received by an intended Responder when a NAN
* data request initiated by an Initiator.
*/
@VintfStability
parcelable NanBootstrappingRequestInd {
/**
* Discovery session (publish or subscribe) ID of a previously created discovery session. The
* bootstrapping request is received in the context of this discovery session.
* NAN Spec: Service Descriptor Attribute (SDA) / Instance ID
*/
byte discoverySessionId;
/**
* A unique ID of the peer. Can be subsequently used in |IWifiNanIface.transmitFollowupRequest|
* or to set up a data-path.
*/
int peerId;
/**
* MAC address of the Initiator peer. This is the MAC address of the peer's
* management/discovery NAN interface.
*/
byte[6] peerDiscMacAddr;
/**
* ID of bootstrapping session. Used to identify the bootstrapping further negotiation/APIs.
*/
int bootstrappingInstanceId;
/**
* Bootstrapping method in the incoming request, one of the |NanBootstrappingMethod|
*/
NanBootstrappingMethod requestBootstrappingMethod;
}