df75bc1dfb
1. Upgrade hostapd HIDL to 1.3 2. Add new callback register in 1.3 3. Update 1.1 vts to ignore register callback test 4. Add Wifi generation define. sinca 1.3 support the new callback Test: Manuel Test. Hotspot works normally. Test: atest VtsHalWifiHostapdV1_0TargetTest Test: atest VtsHalWifiHostapdV1_1TargetTest Test: atest VtsHalWifiHostapdV1_2TargetTest Bug: 151189102 Change-Id: I21b81ce21b8bd22b4ffe70c9b69d36810b1f925f
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
/*
|
|
* Copyright 2020 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.hardware.wifi.hostapd@1.3;
|
|
|
|
import @1.2::IHostapd;
|
|
import @1.2::HostapdStatus;
|
|
|
|
import IHostapdCallback;
|
|
/**
|
|
* Top-level object for managing SoftAPs.
|
|
*/
|
|
interface IHostapd extends @1.2::IHostapd {
|
|
/**
|
|
* Register for callbacks from the hostapd service.
|
|
*
|
|
* These callbacks are invoked for global events that are not specific
|
|
* to any interface or network. Registration of multiple callback
|
|
* objects is supported. These objects must be deleted when the corresponding
|
|
* client process is dead.
|
|
*
|
|
* @param callback An instance of the |IHostapdCallback| HIDL interface
|
|
* object.
|
|
* @return status Status of the operation.
|
|
* Possible status codes:
|
|
* |HostapdStatusCode.SUCCESS|,
|
|
* |HostapdStatusCode.FAILURE_UNKNOWN|
|
|
*/
|
|
registerCallback_1_3(IHostapdCallback callback)
|
|
generates (HostapdStatus status);
|
|
};
|