Gabriel Biren | 910d5df | 2022-04-08 18:21:22 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.hardware.wifi; |
| 18 | |
| 19 | /** |
| 20 | * Additional NAN configuration request parameters. |
| 21 | */ |
| 22 | @VintfStability |
| 23 | parcelable 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 Pal | dc7192f | 2023-01-09 21:21:07 +0000 | [diff] [blame] | 63 | /** |
| 64 | * Controls which cluster to join. |
| 65 | */ |
| 66 | int clusterId; |
Gabriel Biren | 910d5df | 2022-04-08 18:21:22 +0000 | [diff] [blame] | 67 | } |