diff options
author | Lior David <liord@codeaurora.org> | 2019-08-21 15:06:16 +0300 |
---|---|---|
committer | Lior David <liord@codeaurora.org> | 2019-11-05 08:52:49 +0200 |
commit | 740898603296f86af373bb5e8b5a74305497d21c (patch) | |
tree | e8a9c807242c410baee2922c07245e3c7fac4715 /fstman/1.0/IFstManager.hal | |
parent | f5d86d2a6771454221d740689b2c4246464974a5 (diff) | |
download | android_vendor_qcom_opensource_interfaces-740898603296f86af373bb5e8b5a74305497d21c.tar.gz android_vendor_qcom_opensource_interfaces-740898603296f86af373bb5e8b5a74305497d21c.tar.bz2 android_vendor_qcom_opensource_interfaces-740898603296f86af373bb5e8b5a74305497d21c.zip |
fstman: add HAL version 1.0
Add version 1.0 of the fstman HAL.
This HAL is served by the fst-manager daemon,
and allows the WIFI framework to control the
FST session and support features such as:
- Dynamic enslave of both master interface (wlan0)
and rate upgrade interface (wigig0). This allows
auto-detection and switching to FST connection
without special UI and disable/enable WIFI.
- Support renaming of group interfaces, this is
needed because the WIFI framework can assign
different names to the client interface (such
as wlan0/wlan1).
- Infrastructure for supporting fst-manager for
SoftAP in parallel with STA fst-manager.
- Support FST and WIFI SON modes.
Change-Id: I51b5c5eda9bdc401e25e915b295efa4abf2d50f1
Diffstat (limited to 'fstman/1.0/IFstManager.hal')
-rw-r--r-- | fstman/1.0/IFstManager.hal | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/fstman/1.0/IFstManager.hal b/fstman/1.0/IFstManager.hal new file mode 100644 index 0000000..3909703 --- /dev/null +++ b/fstman/1.0/IFstManager.hal @@ -0,0 +1,118 @@ +/* Copyright (c) 2019, 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.fstman@1.0; + +import IFstGroup; + +/** + * interface for communicating with fst-manager + */ +interface IFstManager { + + /** + * Debug levels for the fst-manager. + * Only log messages with a level greater than the set level + * (via |setDebugParams|) will be logged. + */ + enum DebugLevel : uint32_t { + EXCESSIVE = 0, + MSGDUMP = 1, + DEBUG = 2, + INFO = 3, + WARNING = 4, + ERROR = 5 + }; + + /** + * Gets a HIDL interface object for the group corresponding to group + * name which the fst-manager already controls. + * + * @param groupName The group name. + * @return status Status of the operation. + * Possible status codes: + * |FstManagerStatusCode.SUCCESS|, + * |FstManagerStatusCode.FAILURE_UNKNOWN|, + * |FstManagerStatusCode.FAILURE_GROUP_UNKOWN| + * @return group HIDL interface object representing the group if + * successful, null otherwise. + */ + getGroup(string groupName) + generates (FstManagerStatus status, IFstGroup group); + + /** + * Retrieve a list of all the groups controlled by the fst-manager. + * + * The corresponding |IFstGroup| object for any group can be + * retrieved using |getGroup| method. + * + * @return status Status of the operation. + * Possible status codes: + * |FstManagerStatusCode.SUCCESS|, + * |FstManagerStatusCode.FAILURE_UNKNOWN| + * @return groupNames List of all group names controlled by the fst-manager. + */ + listGroups() generates (FstManagerStatus status, vec<string> groupNames); + + /** + * Set debug parameters for the fst-manager. + * + * @param level Debug logging level for the fst-manager. + * (one of |DebugLevel| values). + * @param timestamp Determines whether to show timestamps in logs or + * not. + * @return status Status of the operation. + * Possible status codes: + * |FstManagerStatusCode.SUCCESS|, + * |FstManagerStatusCode.FAILURE_UNKNOWN| + */ + setDebugParams(DebugLevel level, bool showTimestamp) + generates (FstManagerStatus status); + + /** + * Get the debug level set. + * + * @return level one of |DebugLevel| values. + */ + getDebugLevel() generates (DebugLevel level); + + /** + * Get whether the timestamps are shown in the debug logs or not. + * + * @return enabled true if set, false otherwise. + */ + isDebugShowTimestampEnabled() generates (bool enabled); + + /** + * Terminate the service. + * This must de-register the service and clear all state. If this HAL + * supports the lazy HAL protocol, then this may trigger daemon to exit and + * wait to be restarted. + */ + oneway terminate(); +}; |