blob: 6dd079cea31d6e19ebb0664f435d220c27c1810b [file] [log] [blame]
Gabriel Biren910d5df2022-04-08 18:21:22 +00001/*
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.NanDiscoveryCommonConfig;
20import android.hardware.wifi.NanPublishType;
21import android.hardware.wifi.NanTxType;
22
23/**
24 * Publish request. Specifies a publish discovery operation.
25 */
26@VintfStability
27parcelable NanPublishRequest {
28 /**
29 * Common configuration of discovery sessions.
30 */
31 NanDiscoveryCommonConfig baseConfigs;
32 /**
33 * Type of the publish discovery session.
34 */
35 NanPublishType publishType;
36 /**
37 * For publishType of |NanPublishType.SOLICITED| or |NanPublishType.UNSOLICITED_SOLICITED|,
38 * this specifies the type of transmission used for responding to the probing subscribe
39 * discovery peer.
40 */
41 NanTxType txType;
42 /**
43 * Specifies whether data-path requests |IWifiNanIfaceEventCallback.eventDataPathRequest| (in
44 * the context of this discovery session) are automatically accepted (if true) - in which case
45 * the Responder must not call the |IWifiNanIface.respondToDataPathIndicationRequest| method and
46 * the device must automatically accept the data-path request and complete the negotiation.
47 */
48 boolean autoAcceptDataPathRequests;
49}