| /* |
| * Copyright 2020 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package android.hardware.wifi.hostapd@1.3; |
| |
| import @1.1::IHostapdCallback; |
| import @1.2::MacAddress; |
| import Generation; |
| |
| /** |
| * Top-level callback object for managing SoftAPs. |
| */ |
| interface IHostapdCallback extends @1.1::IHostapdCallback { |
| oneway onInterfaceInfoChanged(string ifaceName, Generation generation); |
| |
| /** |
| * Invoked when a client connects/disconnects from the hotspot. |
| * |
| * @param ifaceName Name of the interface which is added via |
| * |IHostapd.addAccessPoint|. |
| * @param apIfaceInstance The identity of the AP instance. The interface |
| * will have two instances in dual AP mode. The apIfaceInstance can be used |
| * to identify which instance the callback is from. |
| * Note: The apIfaceInstance must be same as ifaceName in single AP mode. |
| * @param clientAddress Mac Address of hotspot client. |
| * @param isConnected true when client connected, false when client |
| * disconnected. |
| */ |
| oneway onConnectedClientsChanged(string ifaceName, string apIfaceInstance, |
| MacAddress clientAddress, bool isConnected); |
| }; |