blob: 4e59ffc1c62e6a10e69e2b4590d19dee226fabcb [file] [log] [blame]
Roshan Piusc6dd6012018-08-17 08:32:07 -07001/*
2 * Copyright 2018 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.1;
18
19import @1.0::IHostapd;
20import @1.0::HostapdStatus;
21
22import IHostapdCallback;
23
24/**
25 * Top-level object for managing SoftAPs.
26 */
27interface IHostapd extends @1.0::IHostapd {
28 /**
29 * Register for callbacks from the hostapd service.
30 *
31 * These callbacks are invoked for global events that are not specific
32 * to any interface or network. Registration of multiple callback
33 * objects is supported. These objects must be deleted when the corresponding
34 * client process is dead.
35 *
36 * @param callback An instance of the |IHostapdCallback| HIDL interface
37 * object.
38 * @return status Status of the operation.
39 * Possible status codes:
40 * |HostapdStatusCode.SUCCESS|,
41 * |HostapdStatusCode.FAILURE_UNKNOWN|
42 */
43 registerCallback(IHostapdCallback callback)
44 generates (HostapdStatus status);
45};