blob: ecd0a44b6f8d7710ac9d33e5eec9374c82ddaba9 [file] [log] [blame]
Ahmed ElArabawyfd809fc2019-11-15 18:19:15 -08001/*
2 * Copyright 2019 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.4;
18
19import @1.2::IWifiChipEventCallback;
20import WifiBand;
21
22/**
23 * Wifi chip event callbacks.
24 */
25interface IWifiChipEventCallback extends @1.2::IWifiChipEventCallback {
26 /**
27 * Struct describing the state of each hardware radio chain (hardware MAC)
28 * on the device.
29 */
30 struct RadioModeInfo {
31 /**
32 * Identifier for this radio chain. This is vendor dependent & used
33 * only for debugging purposes.
34 */
35 uint32_t radioId;
36 /**
37 * List of bands on which this radio chain is operating.
38 * Can be one of:
39 * a) WifiBand.BAND_24GHZ => 2.4Ghz.
40 * b) WifiBand.BAND_5GHZ => 5Ghz.
41 * c) WifiBand.BAND_24GHZ_5GHZ = 2.4Ghz + 5Ghz (Radio is time sharing
42 * across the 2 bands).
43 * d) WifiBand.BAND_6GHZ => 6Ghz.
44 * e) WifiBand.BAND_5GHZ_6GHZ => 5Ghz + 6Ghz (Radio is time sharing
45 * across the 2 bands).
46 * f) WifiBand.BAND_24GHZ_5GHZ_6GHZ => 2.4Ghz + 5Ghz + 6Ghz (Radio is
47 * time sharing across the 3 bands).
48 */
49 WifiBand bandInfo;
50 /** List of interfaces on this radio chain (hardware MAC). */
51 vec<IfaceInfo> ifaceInfos;
52 };
53
54 /**
55 * Asynchronous callback indicating a radio mode change.
56 * Radio mode change could be a result of:
57 * a) Bringing up concurrent interfaces (For ex: STA + AP).
58 * b) Change in operating band of one of the concurrent interfaces (For ex:
59 * STA connection moved from 2.4G to 5G)
60 *
61 * @param radioModeInfos List of RadioModeInfo structures for each
62 * radio chain (hardware MAC) on the device.
63 */
64 oneway onRadioModeChange_1_4(vec<RadioModeInfo> radioModeInfos);
65};