/* * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /** * DOC: declare WIFI POS ucfg APIs exposed by the mlme component */ #include "wifi_pos_ucfg_api.h" #include "wifi_pos_utils_i.h" #include "os_if_wifi_pos_utils.h" #if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT) QDF_STATUS ucfg_wifi_pos_psoc_open(struct wlan_objmgr_psoc *psoc) { QDF_STATUS status; status = osif_wifi_pos_register_ops(psoc); if (QDF_IS_STATUS_ERROR(status)) wifi_pos_err("Register OSIF ops failed"); status = wifi_pos_register_legacy_ops(psoc); if (QDF_IS_STATUS_ERROR(status)) wifi_pos_err("Set legacy ops failed"); return status; } QDF_STATUS ucfg_wifi_pos_psoc_close(struct wlan_objmgr_psoc *psoc) { QDF_STATUS status; status = wifi_pos_deregister_legacy_ops(psoc); if (QDF_IS_STATUS_ERROR(status)) wifi_pos_err("Set legacy ops failed"); status = osif_wifi_pos_deregister_ops(psoc); if (QDF_IS_STATUS_ERROR(status)) wifi_pos_err("Register OSIF ops failed"); return status; } #endif /* WIFI_POS_CONVERGED && WLAN_FEATURE_RTT_11AZ_SUPPORT */