IClientInterface.aidl revision b52f635f890b0370349014890fcb6bc49ebabd66
1/*
2 * Copyright (C) 2016 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.net.wifi;
18
19// IClientInterface represents a network interface that can be used to connect
20// to access points and obtain internet connectivity.
21interface IClientInterface {
22
23  // Enable a wpa_supplicant instance running against this interface.
24  // Returns true if supplicant was successfully enabled, or is already enabled.
25  boolean enableSupplicant();
26
27  // Remove this interface from wpa_supplicant's control.
28  // Returns true if removal was successful.
29  boolean disableSupplicant();
30
31  // Get packet counters for this interface.
32  // First element in array is the number of successfully transmitted packets.
33  // Second element in array is the number of tramsmission failure.
34  // This call is valid only when interface is associated with an AP, otherwise
35  // it returns an empty array.
36  int[] getPacketCounters();
37
38  // Do signal poll for this interface.
39  // First element in array is the RSSI value in dBM.
40  // Second element in array is the transmission bit rate in Mbps.
41  // This call is valid only when interface is associated with an AP, otherwise
42  // it returns an empty array.
43  int[] signalPoll();
44
45  // Get the MAC address of this interface.
46  byte[] getMacAddress();
47}
48