blob: 8c7ac4af88f931977f8b3309e6a54ff0bedcebd1 [file] [log] [blame]
Roshan Piusadcfba42016-10-05 10:19:06 -07001/*
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
17package android.hardware.wifi@1.0;
18
19import IWifiIface;
Roshan Pius7b777472016-10-07 13:15:59 -070020import IWifiStaIfaceEventCallback;
Roshan Piusadcfba42016-10-05 10:19:06 -070021
22/**
23 * Interface used to represent a single STA iface.
24 */
25interface IWifiStaIface extends IWifiIface {
Roshan Pius7b777472016-10-07 13:15:59 -070026 /**
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 Pius18680b72016-10-12 08:25:48 -070043 /**
44 * If set indicates that the link layer stats APIs are supported.
45 */
Roshan Pius5e254662016-10-26 10:10:48 -070046 LINK_LAYER_STATS = 1 << 2,
Roshan Piusfe9ad362016-10-19 16:45:12 -070047 /**
Roshan Piusd4767542016-12-06 10:04:05 -080048 * If set indicates that the RSSI monitor APIs are supported.
49 */
50 RSSI_MONITOR = 1 << 3,
51 /**
Roshan Pius26801cb2016-12-13 14:25:45 -080052 * If set indicates that the roaming API's are supported.
53 */
54 CONTROL_ROAMING = 1 << 4,
55 /**
56 * If set indicates support for Probe IE white listing.
57 */
58 PROBE_IE_WHITELIST = 1 << 5,
59 /**
60 * If set indicates support for MAC & Probe Sequence Number randomization.
61 */
62 SCAN_RAND = 1 << 6,
63 /**
Roshan Piusfe9ad362016-10-19 16:45:12 -070064 * Tracks connection packets' fate.
65 */
Roshan Pius26801cb2016-12-13 14:25:45 -080066 DEBUG_PACKET_FATE_SUPPORTED = 1 << 7
Roshan Pius18680b72016-10-12 08:25:48 -070067 };
68
69 /**
Roshan Pius7b777472016-10-07 13:15:59 -070070 * Requests notifications of significant events on this iface. Multiple calls
71 * to this must register multiple callbacks each of which must receive all
72 * events.
73 *
74 * @param callback An instance of the |IWifiStaIfaceEventCallback| HIDL interface
75 * object.
Roshan Piusa52dc732016-10-10 11:53:07 -070076 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -070077 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -070078 * |WifiStatusCode.SUCCESS|,
79 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|
Roshan Pius7b777472016-10-07 13:15:59 -070080 */
Roshan Pius1f9073c2016-10-10 10:32:22 -070081 registerEventCallback(IWifiStaIfaceEventCallback callback)
Roshan Piusa52dc732016-10-10 11:53:07 -070082 generates (WifiStatus status);
Roshan Pius7b777472016-10-07 13:15:59 -070083
84 /**
85 * Get the capabilities supported by this STA iface.
86 *
Roshan Piusa52dc732016-10-10 11:53:07 -070087 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -070088 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -070089 * |WifiStatusCode.SUCCESS|,
90 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
91 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
92 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius7b777472016-10-07 13:15:59 -070093 * @return capabilities Bitset of |StaIfaceCapabilityMask| values.
94 */
Roshan Pius5e254662016-10-26 10:10:48 -070095 getCapabilities() generates (WifiStatus status, uint32_t capabilities);
Roshan Pius7b777472016-10-07 13:15:59 -070096
97 /**
98 * Used to query additional information about the chip's APF capabilities.
Roshan Pius18680b72016-10-12 08:25:48 -070099 * Must fail if |StaIfaceCapabilityMask.APF| is not set.
Roshan Pius7b777472016-10-07 13:15:59 -0700100 *
Roshan Piusa52dc732016-10-10 11:53:07 -0700101 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700102 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -0700103 * |WifiStatusCode.SUCCESS|,
104 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
105 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
106 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
107 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius5e254662016-10-26 10:10:48 -0700108 * @return capabilities Instance of |StaApfPacketFilterCapabilities|.
Roshan Pius7b777472016-10-07 13:15:59 -0700109 */
110 getApfPacketFilterCapabilities()
Roshan Pius5e254662016-10-26 10:10:48 -0700111 generates (WifiStatus status, StaApfPacketFilterCapabilities capabilities);
Roshan Pius7b777472016-10-07 13:15:59 -0700112
113 /**
114 * Installs an APF program on this iface, replacing an existing
115 * program if present.
Roshan Pius18680b72016-10-12 08:25:48 -0700116 * Must fail if |StaIfaceCapabilityMask.APF| is not set.
Roshan Pius7b777472016-10-07 13:15:59 -0700117 *
118 * @param cmdId command Id to use for this invocation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700119 * @param APF Program to be set.
Roshan Piusa52dc732016-10-10 11:53:07 -0700120 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700121 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -0700122 * |WifiStatusCode.SUCCESS|,
123 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
124 * |WifiStatusCode.ERROR_INVALID_ARGS|,
125 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
126 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
127 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius7b777472016-10-07 13:15:59 -0700128 */
Roshan Pius1f9073c2016-10-10 10:32:22 -0700129 installApfPacketFilter(CommandId cmdId, vec<uint8_t> program)
Roshan Piusa52dc732016-10-10 11:53:07 -0700130 generates (WifiStatus status);
Roshan Pius7b777472016-10-07 13:15:59 -0700131
132 /**
Roshan Pius18680b72016-10-12 08:25:48 -0700133 * Used to query additional information about the chip's Background Scan capabilities.
134 * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set.
Roshan Pius7b777472016-10-07 13:15:59 -0700135 *
Roshan Piusa52dc732016-10-10 11:53:07 -0700136 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700137 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -0700138 * |WifiStatusCode.SUCCESS|,
139 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
140 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
141 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
142 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius5e254662016-10-26 10:10:48 -0700143 * @return capabilities Instance of |StaBackgroundScanCapabilities|.
Roshan Pius7b777472016-10-07 13:15:59 -0700144 */
145 getBackgroundScanCapabilities()
Roshan Pius5e254662016-10-26 10:10:48 -0700146 generates (WifiStatus status, StaBackgroundScanCapabilities capabilities);
Roshan Pius7b777472016-10-07 13:15:59 -0700147
148 /**
Roshan Pius18680b72016-10-12 08:25:48 -0700149 * Used to query the list of valid frequencies (depending on country code set)
150 * for the provided band. These channels may be specifed in the
151 * |BackgroundScanBucketParameters.frequenciesInMhz| for a background scan
152 * request.
153 * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set.
154 *
Roshan Pius5e254662016-10-26 10:10:48 -0700155 * @param band Band for which the frequency list is being generated.
Roshan Pius18680b72016-10-12 08:25:48 -0700156 * @return status WifiStatus of the operation.
157 * Possible status codes:
158 * |WifiStatusCode.SUCCESS|,
159 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
160 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
161 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
162 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius120f94c2016-10-13 11:48:42 -0700163 * @return frequencies vector of valid frequencies for the provided band.
Roshan Pius18680b72016-10-12 08:25:48 -0700164 */
Roshan Pius5e254662016-10-26 10:10:48 -0700165 getValidFrequenciesForBackgroundScan(StaBackgroundScanBand band)
Roshan Pius120f94c2016-10-13 11:48:42 -0700166 generates (WifiStatus status, vec<WifiChannelInMhz> frequencies);
Roshan Pius18680b72016-10-12 08:25:48 -0700167
168 /**
Roshan Pius7b777472016-10-07 13:15:59 -0700169 * Start a background scan using the given cmdId as an identifier. Only one
170 * active background scan need be supported.
Roshan Pius18680b72016-10-12 08:25:48 -0700171 * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set.
Roshan Pius7b777472016-10-07 13:15:59 -0700172 *
173 * When this is called all requested buckets must be scanned, starting the
174 * beginning of the cycle.
175 *
176 * For example:
177 * If there are two buckets specified
178 * - Bucket 1: period=10s
179 * - Bucket 2: period=20s
180 * - Bucket 3: period=30s
181 * Then the following scans must occur
182 * - t=0 buckets 1, 2, and 3 are scanned
183 * - t=10 bucket 1 is scanned
184 * - t=20 bucket 1 and 2 are scanned
185 * - t=30 bucket 1 and 3 are scanned
186 * - t=40 bucket 1 and 2 are scanned
187 * - t=50 bucket 1 is scanned
188 * - t=60 buckets 1, 2, and 3 are scanned
189 * - and the patter repeats
190 *
191 * If any scan does not occur or is incomplete (error, interrupted, etc) then
192 * a cached scan result must still be recorded with the
193 * WIFI_SCAN_FLAG_INTERRUPTED flag set.
194 *
195 * @param cmdId command Id to use for this invocation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700196 * @params Background scan parameters.
Roshan Piusa52dc732016-10-10 11:53:07 -0700197 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700198 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -0700199 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
200 * |WifiStatusCode.ERROR_INVALID_ARGS|,
201 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
202 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
203 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius7b777472016-10-07 13:15:59 -0700204 */
Roshan Pius5e254662016-10-26 10:10:48 -0700205 startBackgroundScan(CommandId cmdId, StaBackgroundScanParameters params)
Roshan Piusa52dc732016-10-10 11:53:07 -0700206 generates (WifiStatus status);
Roshan Pius7b777472016-10-07 13:15:59 -0700207
208 /**
209 * Stop the background scan started.
Roshan Pius18680b72016-10-12 08:25:48 -0700210 * Must fail if |StaIfaceCapabilityMask.BACKGROUND_SCAN| is not set.
Roshan Pius7b777472016-10-07 13:15:59 -0700211 *
212 * @param cmdId command Id corresponding to the request.
Roshan Piusa52dc732016-10-10 11:53:07 -0700213 * @return status WifiStatus of the operation.
Roshan Pius1f9073c2016-10-10 10:32:22 -0700214 * Possible status codes:
Roshan Piusa52dc732016-10-10 11:53:07 -0700215 * |WifiStatusCode.SUCCESS|,
216 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
217 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
Roshan Piusfe9ad362016-10-19 16:45:12 -0700218 * |WifiStatusCode.ERROR_NOT_STARTED|,
Roshan Piusa52dc732016-10-10 11:53:07 -0700219 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
220 * |WifiStatusCode.ERROR_UNKNOWN|
Roshan Pius7b777472016-10-07 13:15:59 -0700221 */
Roshan Piusa52dc732016-10-10 11:53:07 -0700222 stopBackgroundScan(CommandId cmdId) generates (WifiStatus status);
Roshan Pius18680b72016-10-12 08:25:48 -0700223
224 /**
225 * Enable link layer stats collection.
226 * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set.
227 *
228 * Radio statistics (once started) must not stop until disabled.
229 * Iface statistics (once started) reset and start afresh after each
230 * connection until disabled.
231 *
232 * @param debug Set for field debug mode. Driver must collect all
233 * statistics regardless of performance impact.
234 * @return status WifiStatus of the operation.
235 * Possible status codes:
236 * |WifiStatusCode.SUCCESS|,
237 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
238 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
239 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
240 * |WifiStatusCode.ERROR_UNKNOWN|
241 */
242 enableLinkLayerStatsCollection(bool debug)
243 generates (WifiStatus status);
244
245 /**
246 * Disable link layer stats collection.
247 * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set.
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 Piusfe9ad362016-10-19 16:45:12 -0700254 * |WifiStatusCode.ERROR_NOT_STARTED|,
Roshan Pius18680b72016-10-12 08:25:48 -0700255 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
256 * |WifiStatusCode.ERROR_UNKNOWN|
257 */
258 disableLinkLayerStatsCollection() generates (WifiStatus status);
259
260 /**
261 * Retrieve the latest link layer stats.
262 * Must fail if |StaIfaceCapabilityMask.LINK_LAYER_STATS| is not set or if
263 * link layer stats collection hasn't been explicitly enabled.
264 *
265 * @return status WifiStatus of the operation.
266 * Possible status codes:
267 * |WifiStatusCode.SUCCESS|,
268 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
269 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
Roshan Piusfe9ad362016-10-19 16:45:12 -0700270 * |WifiStatusCode.ERROR_NOT_STARTED|,
Roshan Pius18680b72016-10-12 08:25:48 -0700271 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
272 * |WifiStatusCode.ERROR_UNKNOWN|
273 * @return stats Instance of |LinkLayerStats|.
274 */
Roshan Pius5e254662016-10-26 10:10:48 -0700275 getLinkLayerStats() generates (WifiStatus status, StaLinkLayerStats stats);
Roshan Piusfe9ad362016-10-19 16:45:12 -0700276
277 /**
Roshan Piusd4767542016-12-06 10:04:05 -0800278 * Start RSSI monitoring on the currently connected access point.
279 * Once the monitoring is enabled,
280 * |IWifiStaIfaceEventCallback.onRssiThresholdBreached| callback must be
281 * invoked to indicate if the RSSI goes above |maxRssi| or below |minRssi|.
282 * Must fail if |StaIfaceCapabilityMask.RSSI_MONITOR| is not set.
283 *
284 * @param cmdId command Id to use for this invocation.
285 * @param maxRssi Maximum RSSI threshold.
286 * @param minRssi Minimum RSSI threshold.
287 * @return status WifiStatus of the operation.
288 * Possible status codes:
289 * |WifiStatusCode.SUCCESS|,
290 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
291 * |WifiStatusCode.ERROR_ARGS_INVALID|,
292 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
293 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
294 * |WifiStatusCode.ERROR_UNKNOWN|
295 */
296 startRssiMonitoring(CommandId cmdId, Rssi maxRssi, Rssi minRssi)
297 generates (WifiStatus status);
298
299 /**
300 * Stop RSSI monitoring.
301 * Must fail if |StaIfaceCapabilityMask.RSSI_MONITOR| is not set.
302 *
303 * @param cmdId command Id corresponding to the request.
304 * @return status WifiStatus of the operation.
305 * Possible status codes:
306 * |WifiStatusCode.SUCCESS|,
307 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
308 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
309 * |WifiStatusCode.ERROR_NOT_STARTED|,
310 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
311 * |WifiStatusCode.ERROR_UNKNOWN|
312 */
313 stopRssiMonitoring(CommandId cmdId) generates (WifiStatus status);
314
315 /**
Roshan Pius26801cb2016-12-13 14:25:45 -0800316 * Get roaming control capabilities.
317 * Must fail if |StaIfaceCapabilityMask.CONTROL_ROAMING| is not set.
318 *
319 * @return status WifiStatus of the operation.
320 * Possible status codes:
321 * |WifiStatusCode.SUCCESS|,
322 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
323 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
324 * |WifiStatusCode.ERROR_UNKNOWN|
325 * @return caps Instance of |StaRoamingCapabilities|.
326 */
327 getRoamingCapabilities()
328 generates (WifiStatus status, StaRoamingCapabilities caps);
329
330 /**
331 * Configure roaming control parameters.
332 * Must fail if |StaIfaceCapabilityMask.CONTROL_ROAMING| is not set.
333 *
334 * @param config Instance of |StaRoamingConfig|.
335 * @return status WifiStatus of the operation.
336 * Possible status codes:
337 * |WifiStatusCode.SUCCESS|,
338 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
339 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
340 * |WifiStatusCode.ERROR_UNKNOWN|
341 */
342 configureRoaming(StaRoamingConfig config) generates (WifiStatus status);
343
344 /**
345 * Set the roaming control state with the parameters configured
346 * using |configureRoaming|. Depending on the roaming state set, the
347 * driver/firmware would enable/disable control over roaming decisions.
348 * Must fail if |StaIfaceCapabilityMask.CONTROL_ROAMING| is not set.
349 *
350 * @param state State of the roaming control.
351 * @return status WifiStatus of the operation.
352 * Possible status codes:
353 * |WifiStatusCode.SUCCESS|,
354 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
355 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
356 * |WifiStatusCode.ERROR_BUSY|,
357 * |WifiStatusCode.ERROR_UNKNOWN|
358 */
359 setRoamingState(StaRoamingState state) generates (WifiStatus status);
360
361 /**
Roshan Piusfe9ad362016-10-19 16:45:12 -0700362 * API to start packet fate monitoring.
363 * - Once stared, monitoring must remain active until HAL is unloaded.
364 * - When HAL is unloaded, all packet fate buffers must be cleared.
365 * - The packet fates are used to monitor the state of packets transmitted/
366 * received during association.
367 *
368 * @return status WifiStatus of the operation.
369 * Possible status codes:
370 * |WifiStatusCode.SUCCESS|,
371 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
372 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
373 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
374 * |WifiStatusCode.ERROR_UNKNOWN|
375 */
376 startDebugPacketFateMonitoring() generates (WifiStatus status);
377
378 /**
379 * API to stop packet fate monitoring.
380 *
381 * @return status WifiStatus of the operation.
382 * Possible status codes:
383 * |WifiStatusCode.SUCCESS|,
384 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
385 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
386 * |WifiStatusCode.ERROR_NOT_STARTED|,
387 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
388 * |WifiStatusCode.ERROR_UNKNOWN|
389 */
390 stopDebugPacketFateMonitoring() generates (WifiStatus status);
391
392 /**
393 * API to retrieve fates of outbound packets.
394 * - HAL implementation must return the fates of
395 * all the frames transmitted for the most recent association.
396 * The fate reports must follow the same order as their respective
397 * packets.
398 * - HAL implementation may choose (but is not required) to include
399 * reports for management frames.
400 * - Packets reported by firmware, but not recognized by driver,
401 * must be included. However, the ordering of the corresponding
402 * reports is at the discretion of HAL implementation.
403 * - Framework must be able to call this API multiple times for the same
404 * association.
405 *
406 * @return status WifiStatus of the operation.
407 * Possible status codes:
408 * |WifiStatusCode.SUCCESS|,
409 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
410 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
411 * |WifiStatusCode.ERROR_NOT_STARTED|,
412 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
413 * |WifiStatusCode.ERROR_UNKNOWN|
414 * @return fates Vector of |WifiDebugTxPacketFateReport| instances corresponding
415 * to the packet fates.
416 */
417 getDebugTxPacketFates()
418 generates (WifiStatus status, vec<WifiDebugTxPacketFateReport> fates);
419
420 /**
421 * API to retrieve fates of inbound packets.
422 * - HAL implementation must return the fates of
423 * all the frames received for the most recent association.
424 * The fate reports must follow the same order as their respective
425 * packets.
426 * - HAL implementation may choose (but is not required) to include
427 * reports for management frames.
428 * - Packets reported by firmware, but not recognized by driver,
429 * must be included. However, the ordering of the corresponding
430 * reports is at the discretion of HAL implementation.
431 * - Framework must be able to call this API multiple times for the same
432 * association.
433 *
434 * @return status WifiStatus of the operation.
435 * Possible status codes:
436 * |WifiStatusCode.SUCCESS|,
437 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|,
438 * |WifiStatusCode.ERROR_NOT_SUPPORTED|,
439 * |WifiStatusCode.ERROR_NOT_STARTED|,
440 * |WifiStatusCode.ERROR_NOT_AVAILABLE|,
441 * |WifiStatusCode.ERROR_UNKNOWN|
442 * @return fates Vector of |WifiDebugRxPacketFateReport| instances corresponding
443 * to the packet fates.
444 */
445 getDebugRxPacketFates()
446 generates (WifiStatus status, vec<WifiDebugRxPacketFateReport> fates);
Roshan Piusadcfba42016-10-05 10:19:06 -0700447};