blob: 4db470de433e59d16ab0d1e05a12fc6dbc16e793 [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;
lesldf75bc12020-08-04 17:04:57 +080021import Generation;
22
23/**
24 * Top-level callback object for managing SoftAPs.
25 */
26interface IHostapdCallback extends @1.1::IHostapdCallback {
27 oneway onInterfaceInfoChanged(string ifaceName, Generation generation);
lesld91c5402020-08-10 13:23:29 +080028
29 /**
30 * Invoked when a client connects/disconnects from the hotspot.
31 *
32 * @param ifaceName Name of the interface which is added via
33 * |IHostapd.addAccessPoint|.
34 * @param apIfaceInstance The identity of the AP instance. The interface
35 * will have two instances in dual AP mode. The apIfaceInstance can be used
36 * to identify which instance the callback is from.
37 * Note: The apIfaceInstance must be same as ifaceName in single AP mode.
38 * @param clientAddress Mac Address of hotspot client.
39 * @param isConnected true when client connected, false when client
40 * disconnected.
41 */
42 oneway onConnectedClientsChanged(string ifaceName, string apIfaceInstance,
43 MacAddress clientAddress, bool isConnected);
lesldf75bc12020-08-04 17:04:57 +080044};