1/* 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.0::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.4. 28 */ 29interface IWifiApIface extends @1.0::IWifiApIface { 30 /** 31 * Changes the MAC address of the interface to the given MAC address. 32 * 33 * @param mac MAC address to change to. 34 * @return status WifiStatus of the operation. 35 * Possible status codes: 36 * |WifiStatusCode.SUCCESS|, 37 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, 38 * |WifiStatusCode.ERROR_UNKNOWN| 39 */ 40 setMacAddress(MacAddress mac) generates (WifiStatus status); 41 42 /** 43 * Gets the factory MAC address of the interface. 44 * 45 * @return status WifiStatus of the operation 46 * Possible status codes: 47 * |WifiStatusCode.SUCCESS|, 48 * |WifiStatusCode.ERROR_WIFI_IFACE_INVALID|, 49 * |WifiStatusCode.ERROR_UNKNOWN| 50 * @return mac factory MAC address of the interface 51 */ 52 getFactoryMacAddress() generates (WifiStatus status, MacAddress mac); 53}; 54