blob: 338a549aeb44177e720f9252530ebce37c6e3f6a [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
19/**
20 * Additional NAN configuration request parameters.
21 */
22@VintfStability
23parcelable NanConfigRequestSupplemental {
24 /**
25 * Specify the Discovery Beacon interval in ms. Specification only applicable if the device
26 * transmits Discovery Beacons (based on the Wi-Fi Aware protocol selection criteria). The value
27 * can be increased to reduce power consumption (on devices which would transmit Discovery
28 * Beacons). However, cluster synchronization time will likely increase.
29 * Values are:
30 * - A value of 0 indicates that the HAL sets the interval to a default (implementation
31 * specific).
32 * - A positive value.
33 */
34 int discoveryBeaconIntervalMs;
35 /**
36 * The number of spatial streams to be used for transmitting NAN management frames (does NOT
37 * apply to data-path packets). A small value may reduce power consumption for small discovery
38 * packets. Values are:
39 * - A value of 0 indicates that the HAL sets the number to a default (implementation
40 * specific).
41 * - A positive value.
42 */
43 int numberOfSpatialStreamsInDiscovery;
44 /**
45 * Controls whether the device may terminate listening on a Discovery Window (DW) earlier than
46 * the DW termination (16ms) if no information is received. Enabling the feature will result in
47 * lower power consumption, but may result in some missed messages and hence increased latency.
48 */
49 boolean enableDiscoveryWindowEarlyTermination;
50 /**
51 * Controls whether NAN RTT (ranging) is permitted. Global flag on any NAN RTT operations are
52 * allowed. Controls ranging in the context of discovery as well as direct RTT.
53 */
54 boolean enableRanging;
55 /**
56 * Controls whether NAN instant communication mode is enabled.
57 */
58 boolean enableInstantCommunicationMode;
59 /**
60 * Controls which channel NAN instant communication mode operates on.
61 */
62 int instantModeChannel;
Biswarup Paldc7192f2023-01-09 21:21:07 +000063 /**
64 * Controls which cluster to join.
65 */
66 int clusterId;
Gabriel Biren910d5df2022-04-08 18:21:22 +000067}