wifi: Introduce Hostapd Vendor hal.
This adds vendor hal for hostapd interactions, which would be used for additional (feature) changes for hostapd. This also provides interface to make calls to QSAP library APIs via setHostapdParams(). Change-Id: Ia6386dc3da6744f4b989f03bb6e97fe2fcf635c6 CRs-Fixed: 2227634
This commit is contained in:
100
wifi/hostapd/1.0/IHostapdVendor.hal
Normal file
100
wifi/hostapd/1.0/IHostapdVendor.hal
Normal file
@@ -0,0 +1,100 @@
|
||||
|
||||
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are
|
||||
* met:
|
||||
* * Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials provided
|
||||
* with the distribution.
|
||||
* * Neither the name of The Linux Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
*/
|
||||
|
||||
package vendor.qti.hardware.wifi.hostapd@1.0;
|
||||
|
||||
import android.hardware.wifi.hostapd@1.0::IHostapd;
|
||||
import android.hardware.wifi.hostapd@1.0::types;
|
||||
|
||||
/**
|
||||
* Vendor Interface exposed by the hostapd HIDL service registered
|
||||
* with the hardware service manager.
|
||||
* This is the root level object for any vendor specific hostapd interactions.
|
||||
*/
|
||||
interface IHostapdVendor {
|
||||
|
||||
/**
|
||||
* Parameters to use for setting up the access point interface.
|
||||
*/
|
||||
struct VendorIfaceParams {
|
||||
/** Country code */
|
||||
string countryCode;
|
||||
/** Name of the bridge interface */
|
||||
string bridgeIfaceName;
|
||||
/** Iface param @IHostapd */
|
||||
IfaceParams ifaceParams;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a new access point for hostapd to control.
|
||||
*
|
||||
* This should trigger the setup of an access point with the specified
|
||||
* interface and network params.
|
||||
*
|
||||
* @param ifaceParams AccessPoint Params for the access point.
|
||||
* @param nwParams Network Params for the access point.
|
||||
* @return status Status of the operation.
|
||||
* Possible status codes:
|
||||
* |HostapdStatusCode.SUCCESS|,
|
||||
* |HostapdStatusCode.FAILURE_ARGS_INVALID|,
|
||||
* |HostapdStatusCode.FAILURE_UNKNOWN|,
|
||||
* |HostapdStatusCode.FAILURE_IFACE_EXISTS|
|
||||
*/
|
||||
addVendorAccessPoint(VendorIfaceParams ifaceParams, NetworkParams nwParams)
|
||||
generates(HostapdStatus status);
|
||||
|
||||
/**
|
||||
* Removes an existing access point from hostapd.
|
||||
*
|
||||
* This should bring down the access point previously setup on the
|
||||
* interface.
|
||||
*
|
||||
* @param ifaceName Name of the interface.
|
||||
* @return status Status of the operation.
|
||||
* Possible status codes:
|
||||
* |HostapdStatusCode.SUCCESS|,
|
||||
* |HostapdStatusCode.FAILURE_UNKNOWN|,
|
||||
* |HostapdStatusCode.FAILURE_IFACE_UNKNOWN|
|
||||
*/
|
||||
removeVendorAccessPoint(string ifaceName) generates(HostapdStatus status);
|
||||
|
||||
/**
|
||||
* Set hostapd parameters via QSAP command.
|
||||
*
|
||||
* This would call QSAP library APIs via hostapd hidl.
|
||||
*
|
||||
* @param cmd QSAP command.
|
||||
* @return status Status of the operation.
|
||||
* Possible status codes:
|
||||
* |HostapdStatusCode.SUCCESS|,
|
||||
* |HostapdStatusCode.FAILURE_UNKNOWN|,
|
||||
*/
|
||||
setHostapdParams(string cmd) generates(HostapdStatus status);
|
||||
};
|
||||
Reference in New Issue
Block a user