blob: 79f6d2a7648ce275e89f1ba971b49cf538b526bf [file] [log] [blame]
Mitchell Wills5443a9f2016-08-18 11:44:58 -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
19interface IWifiChipEventCallback {
20 /**
21 * Callback indicating that the chip has been reconfigured successfully. At
22 * this point the interfaces available in the mode must be able to be
23 * configured. When this is called any previous interface indexes will be
24 * considered invalid.
25 *
26 * @param modeId The mode that the chip switched to, corresponding to the id
27 * property of the target ChipMode.
28 */
29 oneway onChipReconfigured(ChipModeId modeId);
30
31 /**
32 * If this happens then the chips is now in an undefined state and
33 * configureChip must be called again. Any interface indexes will be
34 * assumed to be invalid.
35 *
36 * @param modeId The mode that the chip failed switched to, corresponding to
37 * the id property of the target ChipMode.
38 */
39 oneway onChipReconfigureFailure(ChipModeId modeId, FailureReason reason);
40
41 /**
42 * Information about the version of the driver and firmware running this chip.
43 *
44 * This information is vendor specific and does not need to take any
45 * particular format. It will be dumped as part of the bug report.
46 */
47 struct ChipDebugInfo {
48 string driverDescription;
49 string firmwareDescription;
50 };
51
52 /**
53 * Callback with debug information about this chip
54 */
55 oneway onChipDebugInfoAvailable(ChipDebugInfo info);
56
57 /**
58 * Callback with a vendor specific debug blob from the driver.
59 * This blob will be dumped as part of the bug report.
60 */
61 oneway onDriverDebugDumpAvailable(vec<uint8_t> blob);
62
63 /**
64 * Callback with a vendor specific debug blob from the driver.
65 * This blob will be dumped as part of the bug report.
66 */
67 oneway onFirmwareDebugDumpAvailable(vec<uint8_t> blob);
68};