blob: 31ade13ab8a8e1faf0bdffc2377f9be4e3eefa74 [file] [log] [blame]
lesl0bad28f2019-12-02 23:48:58 +08001/*
2 * Copyright 2019 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.2;
18
19import @1.1::IHostapd;
20import HostapdStatus;
21import MacAddress;
22import Ieee80211ReasonCode;
23
24/**
25 * Top-level object for managing SoftAPs.
26 */
27interface IHostapd extends @1.1::IHostapd {
28 /**
29 * force one of the hotspot clients disconnect..
30 *
31 * @param ifaceName Name of the interface.
32 * @param clientAddress Mac Address of the hotspot client.
33 * @param reasonCode One of disconnect reason code which defined by 802.11.
34 * @return status Status of the operation.
35 * Possible status codes:
36 * |HostapdStatusCode.SUCCESS|,
37 * |HostapdStatusCode.FAILURE_IFACE_UNKNOWN|
38 * |HostapdStatusCode.FAILURE_CLIENT_UNKNOWN|
39 */
40 forceClientDisconnect(string ifaceName, MacAddress clientAddress,
41 Ieee80211ReasonCode reasonCode) generates (HostapdStatus status);
42};