blob: d16448d074f5529f45db42597d13083bf317de7c [file] [log] [blame]
lesldf75bc12020-08-04 17:04:57 +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.hostapd@1.3;
18
19import @1.2::IHostapd;
20import @1.2::HostapdStatus;
lesldf75bc12020-08-04 17:04:57 +080021import IHostapdCallback;
lesld91c5402020-08-10 13:23:29 +080022
lesldf75bc12020-08-04 17:04:57 +080023/**
24 * Top-level object for managing SoftAPs.
25 */
26interface IHostapd extends @1.2::IHostapd {
27 /**
28 * Register for callbacks from the hostapd service.
29 *
30 * These callbacks are invoked for global events that are not specific
31 * to any interface or network. Registration of multiple callback
32 * objects is supported. These objects must be deleted when the corresponding
33 * client process is dead.
34 *
35 * @param callback An instance of the |IHostapdCallback| HIDL interface
36 * object.
37 * @return status Status of the operation.
38 * Possible status codes:
39 * |HostapdStatusCode.SUCCESS|,
40 * |HostapdStatusCode.FAILURE_UNKNOWN|
41 */
lesld91c5402020-08-10 13:23:29 +080042 registerCallback_1_3(IHostapdCallback callback) generates (HostapdStatus status);
lesldf75bc12020-08-04 17:04:57 +080043};