blob: 98cde67f71c7b799ea1790ba488e2b49f17ddc62 [file] [log] [blame]
lesldf75bc12020-08-04 17:04:57 +08001/*
2 * Copyright 2020 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.hostapd@1.3;
18
19import @1.1::IHostapdCallback;
lesld91c5402020-08-10 13:23:29 +080020import @1.2::MacAddress;
lesl4aee25f2020-08-17 17:55:59 +080021import Bandwidth;
lesldf75bc12020-08-04 17:04:57 +080022import Generation;
23
24/**
25 * Top-level callback object for managing SoftAPs.
26 */
27interface IHostapdCallback extends @1.1::IHostapdCallback {
lesl4aee25f2020-08-17 17:55:59 +080028 /**
29 * Invoked when information changes for one of the AP instances.
30 *
31 * @param ifaceName Name of the interface which was added via
32 * |IHostapd.addAccessPoint|.
33 * @param apIfaceInstance The identity of the AP instance. The interface
34 * will have two instances (e.q. 2.4 Ghz AP and 5 GHz AP) in dual AP mode.
35 * The apIfaceInstance can be used to identify which instance the callback
36 * is from.
37 * Note: The apIfaceInstance must be same as ifaceName in single AP mode.
38 * @param freq The operational frequency of the AP.
39 * @param bandwidth The operational bandwidth of the AP.
40 * @param generation The operational mode of the AP (e.g. 11ac, 11ax).
41 */
42 oneway onApInstanceInfoChanged(string ifaceName, string apIfaceInstance, uint32_t freq,
43 Bandwidth bandwidth, Generation generation);
lesld91c5402020-08-10 13:23:29 +080044
45 /**
46 * Invoked when a client connects/disconnects from the hotspot.
47 *
lesl4aee25f2020-08-17 17:55:59 +080048 * @param ifaceName Name of the interface which was added via
lesld91c5402020-08-10 13:23:29 +080049 * |IHostapd.addAccessPoint|.
50 * @param apIfaceInstance The identity of the AP instance. The interface
51 * will have two instances in dual AP mode. The apIfaceInstance can be used
52 * to identify which instance the callback is from.
53 * Note: The apIfaceInstance must be same as ifaceName in single AP mode.
54 * @param clientAddress Mac Address of hotspot client.
55 * @param isConnected true when client connected, false when client
56 * disconnected.
57 */
58 oneway onConnectedClientsChanged(string ifaceName, string apIfaceInstance,
59 MacAddress clientAddress, bool isConnected);
lesldf75bc12020-08-04 17:04:57 +080060};