Roshan Pius | adcfba4 | 2016-10-05 10:19:06 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2016 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@1.0; |
| 18 | |
| 19 | import IWifiIface; |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 20 | import IWifiStaIfaceEventCallback; |
Roshan Pius | adcfba4 | 2016-10-05 10:19:06 -0700 | [diff] [blame] | 21 | |
| 22 | /** |
| 23 | * Interface used to represent a single STA iface. |
| 24 | */ |
| 25 | interface IWifiStaIface extends IWifiIface { |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 26 | /** |
| 27 | * Mask of capabilities suported by this Iface. |
| 28 | */ |
| 29 | enum StaIfaceCapabilityMask : uint32_t { |
| 30 | /** |
| 31 | * If set indicates that the APF APIs are supported. |
| 32 | * APF (Android Packet Filter) is a BPF like packet filtering |
| 33 | * bytecode executed by the firmware. |
| 34 | */ |
| 35 | APF = 1 << 0, |
| 36 | /** |
| 37 | * If set indicates that the Background Scan APIs are supported. |
| 38 | * Background scan allow the host to send a number of buckets down to the |
| 39 | * firmware. Each bucket contains a set of channels, a period, and some |
| 40 | * parameters about how and when to report results. |
| 41 | */ |
| 42 | BACKGROUND_SCAN = 1 << 1, |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 43 | /** |
| 44 | * If set indicates that the link layer stats APIs are supported. |
| 45 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 46 | LINK_LAYER_STATS = 1 << 2, |
Roshan Pius | fe9ad36 | 2016-10-19 16:45:12 -0700 | [diff] [blame] | 47 | /** |
| 48 | * Tracks connection packets' fate. |
| 49 | */ |
| 50 | DEBUG_PACKET_FATE_SUPPORTED = 1 << 3 |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | /** |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 54 | * Requests notifications of significant events on this iface. Multiple calls |
| 55 | * to this must register multiple callbacks each of which must receive all |
| 56 | * events. |
| 57 | * |
| 58 | * @param callback An instance of the |IWifiStaIfaceEventCallback| HIDL interface |
| 59 | * object. |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 60 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 61 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 62 | * |WifiStatusCode.SUCCESS|, |
| 63 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID| |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 64 | */ |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 65 | registerEventCallback(IWifiStaIfaceEventCallback callback) |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 66 | generates (WifiStatus status); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 67 | |
| 68 | /** |
| 69 | * Get the capabilities supported by this STA iface. |
| 70 | * |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 71 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 72 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 73 | * |WifiStatusCode.SUCCESS|, |
| 74 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 75 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 76 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 77 | * @return capabilities Bitset of |StaIfaceCapabilityMask| values. |
| 78 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 79 | getCapabilities() generates (WifiStatus status, uint32_t capabilities); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 80 | |
| 81 | /** |
| 82 | * Used to query additional information about the chip's APF capabilities. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 83 | * Must fail if |StaIfaceCapabilityMask.APF| is not set. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 84 | * |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 85 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 86 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 87 | * |WifiStatusCode.SUCCESS|, |
| 88 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 89 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 90 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 91 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 92 | * @return capabilities Instance of |StaApfPacketFilterCapabilities|. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 93 | */ |
| 94 | getApfPacketFilterCapabilities() |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 95 | generates (WifiStatus status, StaApfPacketFilterCapabilities capabilities); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 96 | |
| 97 | /** |
| 98 | * Installs an APF program on this iface, replacing an existing |
| 99 | * program if present. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 100 | * Must fail if |StaIfaceCapabilityMask.APF| is not set. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 101 | * |
| 102 | * @param cmdId command Id to use for this invocation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 103 | * @param APF Program to be set. |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 104 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 105 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 106 | * |WifiStatusCode.SUCCESS|, |
| 107 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 108 | * |WifiStatusCode.ERROR_INVALID_ARGS|, |
| 109 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 110 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 111 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 112 | */ |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 113 | installApfPacketFilter(CommandId cmdId, vec<uint8_t> program) |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 114 | generates (WifiStatus status); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 115 | |
| 116 | /** |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 117 | * Used to query additional information about the chip's Background Scan capabilities. |
| 118 | * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 119 | * |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 120 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 121 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 122 | * |WifiStatusCode.SUCCESS|, |
| 123 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 124 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 125 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 126 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 127 | * @return capabilities Instance of |StaBackgroundScanCapabilities|. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 128 | */ |
| 129 | getBackgroundScanCapabilities() |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 130 | generates (WifiStatus status, StaBackgroundScanCapabilities capabilities); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 131 | |
| 132 | /** |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 133 | * Used to query the list of valid frequencies (depending on country code set) |
| 134 | * for the provided band. These channels may be specifed in the |
| 135 | * |BackgroundScanBucketParameters.frequenciesInMhz| for a background scan |
| 136 | * request. |
| 137 | * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set. |
| 138 | * |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 139 | * @param band Band for which the frequency list is being generated. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 140 | * @return status WifiStatus of the operation. |
| 141 | * Possible status codes: |
| 142 | * |WifiStatusCode.SUCCESS|, |
| 143 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 144 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 145 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 146 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 120f94c | 2016-10-13 11:48:42 -0700 | [diff] [blame] | 147 | * @return frequencies vector of valid frequencies for the provided band. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 148 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 149 | getValidFrequenciesForBackgroundScan(StaBackgroundScanBand band) |
Roshan Pius | 120f94c | 2016-10-13 11:48:42 -0700 | [diff] [blame] | 150 | generates (WifiStatus status, vec<WifiChannelInMhz> frequencies); |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 151 | |
| 152 | /** |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 153 | * Start a background scan using the given cmdId as an identifier. Only one |
| 154 | * active background scan need be supported. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 155 | * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 156 | * |
| 157 | * When this is called all requested buckets must be scanned, starting the |
| 158 | * beginning of the cycle. |
| 159 | * |
| 160 | * For example: |
| 161 | * If there are two buckets specified |
| 162 | * - Bucket 1: period=10s |
| 163 | * - Bucket 2: period=20s |
| 164 | * - Bucket 3: period=30s |
| 165 | * Then the following scans must occur |
| 166 | * - t=0 buckets 1, 2, and 3 are scanned |
| 167 | * - t=10 bucket 1 is scanned |
| 168 | * - t=20 bucket 1 and 2 are scanned |
| 169 | * - t=30 bucket 1 and 3 are scanned |
| 170 | * - t=40 bucket 1 and 2 are scanned |
| 171 | * - t=50 bucket 1 is scanned |
| 172 | * - t=60 buckets 1, 2, and 3 are scanned |
| 173 | * - and the patter repeats |
| 174 | * |
| 175 | * If any scan does not occur or is incomplete (error, interrupted, etc) then |
| 176 | * a cached scan result must still be recorded with the |
| 177 | * WIFI_SCAN_FLAG_INTERRUPTED flag set. |
| 178 | * |
| 179 | * @param cmdId command Id to use for this invocation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 180 | * @params Background scan parameters. |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 181 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 182 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 183 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 184 | * |WifiStatusCode.ERROR_INVALID_ARGS|, |
| 185 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 186 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 187 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 188 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 189 | startBackgroundScan(CommandId cmdId, StaBackgroundScanParameters params) |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 190 | generates (WifiStatus status); |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 191 | |
| 192 | /** |
| 193 | * Stop the background scan started. |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 194 | * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set. |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 195 | * |
| 196 | * @param cmdId command Id corresponding to the request. |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 197 | * @return status WifiStatus of the operation. |
Roshan Pius | 1f9073c | 2016-10-10 10:32:22 -0700 | [diff] [blame] | 198 | * Possible status codes: |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 199 | * |WifiStatusCode.SUCCESS|, |
| 200 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 201 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
Roshan Pius | fe9ad36 | 2016-10-19 16:45:12 -0700 | [diff] [blame] | 202 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 203 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 204 | * |WifiStatusCode.ERROR_UNKNOWN| |
Roshan Pius | 7b77747 | 2016-10-07 13:15:59 -0700 | [diff] [blame] | 205 | */ |
Roshan Pius | a52dc73 | 2016-10-10 11:53:07 -0700 | [diff] [blame] | 206 | stopBackgroundScan(CommandId cmdId) generates (WifiStatus status); |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 207 | |
| 208 | /** |
| 209 | * Enable link layer stats collection. |
| 210 | * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set. |
| 211 | * |
| 212 | * Radio statistics (once started) must not stop until disabled. |
| 213 | * Iface statistics (once started) reset and start afresh after each |
| 214 | * connection until disabled. |
| 215 | * |
| 216 | * @param debug Set for field debug mode. Driver must collect all |
| 217 | * statistics regardless of performance impact. |
| 218 | * @return status WifiStatus of the operation. |
| 219 | * Possible status codes: |
| 220 | * |WifiStatusCode.SUCCESS|, |
| 221 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 222 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 223 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 224 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 225 | */ |
| 226 | enableLinkLayerStatsCollection(bool debug) |
| 227 | generates (WifiStatus status); |
| 228 | |
| 229 | /** |
| 230 | * Disable link layer stats collection. |
| 231 | * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set. |
| 232 | * |
| 233 | * @return status WifiStatus of the operation. |
| 234 | * Possible status codes: |
| 235 | * |WifiStatusCode.SUCCESS|, |
| 236 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 237 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
Roshan Pius | fe9ad36 | 2016-10-19 16:45:12 -0700 | [diff] [blame] | 238 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 239 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 240 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 241 | */ |
| 242 | disableLinkLayerStatsCollection() generates (WifiStatus status); |
| 243 | |
| 244 | /** |
| 245 | * Retrieve the latest link layer stats. |
| 246 | * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set or if |
| 247 | * link layer stats collection hasn't been explicitly enabled. |
| 248 | * |
| 249 | * @return status WifiStatus of the operation. |
| 250 | * Possible status codes: |
| 251 | * |WifiStatusCode.SUCCESS|, |
| 252 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 253 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
Roshan Pius | fe9ad36 | 2016-10-19 16:45:12 -0700 | [diff] [blame] | 254 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
Roshan Pius | 18680b7 | 2016-10-12 08:25:48 -0700 | [diff] [blame] | 255 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 256 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 257 | * @return stats Instance of |LinkLayerStats|. |
| 258 | */ |
Roshan Pius | 5e25466 | 2016-10-26 10:10:48 -0700 | [diff] [blame] | 259 | getLinkLayerStats() generates (WifiStatus status, StaLinkLayerStats stats); |
Roshan Pius | fe9ad36 | 2016-10-19 16:45:12 -0700 | [diff] [blame] | 260 | |
| 261 | /** |
| 262 | * API to start packet fate monitoring. |
| 263 | * - Once stared, monitoring must remain active until HAL is unloaded. |
| 264 | * - When HAL is unloaded, all packet fate buffers must be cleared. |
| 265 | * - The packet fates are used to monitor the state of packets transmitted/ |
| 266 | * received during association. |
| 267 | * |
| 268 | * @return status WifiStatus of the operation. |
| 269 | * Possible status codes: |
| 270 | * |WifiStatusCode.SUCCESS|, |
| 271 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 272 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 273 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 274 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 275 | */ |
| 276 | startDebugPacketFateMonitoring() generates (WifiStatus status); |
| 277 | |
| 278 | /** |
| 279 | * API to stop packet fate monitoring. |
| 280 | * |
| 281 | * @return status WifiStatus of the operation. |
| 282 | * Possible status codes: |
| 283 | * |WifiStatusCode.SUCCESS|, |
| 284 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 285 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 286 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
| 287 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 288 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 289 | */ |
| 290 | stopDebugPacketFateMonitoring() generates (WifiStatus status); |
| 291 | |
| 292 | /** |
| 293 | * API to retrieve fates of outbound packets. |
| 294 | * - HAL implementation must return the fates of |
| 295 | * all the frames transmitted for the most recent association. |
| 296 | * The fate reports must follow the same order as their respective |
| 297 | * packets. |
| 298 | * - HAL implementation may choose (but is not required) to include |
| 299 | * reports for management frames. |
| 300 | * - Packets reported by firmware, but not recognized by driver, |
| 301 | * must be included. However, the ordering of the corresponding |
| 302 | * reports is at the discretion of HAL implementation. |
| 303 | * - Framework must be able to call this API multiple times for the same |
| 304 | * association. |
| 305 | * |
| 306 | * @return status WifiStatus of the operation. |
| 307 | * Possible status codes: |
| 308 | * |WifiStatusCode.SUCCESS|, |
| 309 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 310 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 311 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
| 312 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 313 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 314 | * @return fates Vector of |WifiDebugTxPacketFateReport| instances corresponding |
| 315 | * to the packet fates. |
| 316 | */ |
| 317 | getDebugTxPacketFates() |
| 318 | generates (WifiStatus status, vec<WifiDebugTxPacketFateReport> fates); |
| 319 | |
| 320 | /** |
| 321 | * API to retrieve fates of inbound packets. |
| 322 | * - HAL implementation must return the fates of |
| 323 | * all the frames received for the most recent association. |
| 324 | * The fate reports must follow the same order as their respective |
| 325 | * packets. |
| 326 | * - HAL implementation may choose (but is not required) to include |
| 327 | * reports for management frames. |
| 328 | * - Packets reported by firmware, but not recognized by driver, |
| 329 | * must be included. However, the ordering of the corresponding |
| 330 | * reports is at the discretion of HAL implementation. |
| 331 | * - Framework must be able to call this API multiple times for the same |
| 332 | * association. |
| 333 | * |
| 334 | * @return status WifiStatus of the operation. |
| 335 | * Possible status codes: |
| 336 | * |WifiStatusCode.SUCCESS|, |
| 337 | * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, |
| 338 | * |WifiStatusCode.ERROR_NOT_SUPPORTED|, |
| 339 | * |WifiStatusCode.ERROR_NOT_STARTED|, |
| 340 | * |WifiStatusCode.ERROR_NOT_AVAILABLE|, |
| 341 | * |WifiStatusCode.ERROR_UNKNOWN| |
| 342 | * @return fates Vector of |WifiDebugRxPacketFateReport| instances corresponding |
| 343 | * to the packet fates. |
| 344 | */ |
| 345 | getDebugRxPacketFates() |
| 346 | generates (WifiStatus status, vec<WifiDebugRxPacketFateReport> fates); |
Roshan Pius | adcfba4 | 2016-10-05 10:19:06 -0700 | [diff] [blame] | 347 | }; |