blob: 65c761da80523a0e8b255af2409ad8da13b5f7df [file] [log] [blame]
Jimmy Chen2abc3522020-09-11 17:46:34 +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.supplicant@1.4;
18
19import @1.2::ISupplicantP2pIface;
Jimmy Chen2abc3522020-09-11 17:46:34 +080020
21/**
22 * Interface exposed by the supplicant for each P2P mode network
23 * interface (e.g p2p0) it controls.
24 * To use 1.4 features you must cast specific interfaces returned from the
25 * 1.4 HAL. For example V1_4::ISupplicant::addIface() adds V1_4::ISupplicantIface,
26 * which can be cast to V1_4::ISupplicantP2pIface.
27 */
28interface ISupplicantP2pIface extends @1.2::ISupplicantP2pIface {
29 /**
30 * Set whether to enable EDMG(802.11ay). Only allowed if hw mode is |HOSTAPD_MODE_IEEE80211AD|
31 *
32 * @param enable true to set, false otherwise.
33 * @return status Status of the operation.
34 * Possible status codes:
35 * |SupplicantStatusCode.SUCCESS|,
36 * |SupplicantStatusCode.FAILURE_UNKNOWN|,
37 * |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
38 */
39 setEdmg(bool enable) generates (SupplicantStatus status);
40
41 /**
42 * Get whether EDMG(802.11ay) is enabled for this network.
43 *
44 * @return status Status of the operation.
45 * Possible status codes:
46 * |SupplicantStatusCode.SUCCESS|,
47 * |SupplicantStatusCode.FAILURE_NETWORK_INVALID|
48 * @return enabled true if set, false otherwise.
49 */
50 getEdmg() generates (SupplicantStatus status, bool enabled);
51};