1/* 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@1.5; 18 19import @1.4::IWifiApIface; 20import @1.0::MacAddress; 21import @1.0::WifiStatus; 22 23/** 24 * Represents a network interface in AP mode. 25 * 26 * This can be obtained through @1.0::IWifiChip.getApIface() and casting 27 * IWifiApIface up to 1.5. 28 */ 29interface IWifiApIface extends @1.4::IWifiApIface { 30 /** 31 * Reset all of the AP interfaces MAC address to the factory MAC address. 32 * 33 * @return status WifiStatus of the operation 34 * Possible status codes: 35 * |WifiStatusCode.SUCCESS|, 36 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, 37 * |WifiStatusCode.ERROR_UNKNOWN| 38 */ 39 resetToFactoryMacAddress() generates (WifiStatus status); 40 41 /** 42 * Get the names of the bridged AP instances. 43 * 44 * @return status WifiStatus of the operation 45 * Possible status codes: 46 * |WifiStatusCode.SUCCESS|, 47 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, 48 * |WifiStatusCode.ERROR_UNKNOWN| 49 * 50 * @return instances A vector which contains the names of the bridged AP 51 * instances. Note: Returns an empty vector for a non-bridged AP. 52 */ 53 getBridgedInstances() generates (WifiStatus status, vec<string> instances); 54}; 55