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