/* * 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: wlan_twt_tgt_if_rx_api.c * * This file provide definition for APIs registered for LMAC TWT Rx Ops */ #include #include #include #include #include #include "twt/core/src/wlan_twt_common.h" static QDF_STATUS tgt_twt_enable_complete_resp_handler(struct wlan_objmgr_psoc *psoc, struct twt_enable_complete_event_param *event) { return wlan_twt_enable_event_handler(psoc, event); } static QDF_STATUS tgt_twt_disable_complete_resp_handler(struct wlan_objmgr_psoc *psoc, struct twt_disable_complete_event_param *event) { return wlan_twt_disable_event_handler(psoc, event); } void tgt_twt_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops) { struct wlan_lmac_if_twt_rx_ops *twt_rx_ops = &rx_ops->twt_rx_ops; twt_rx_ops->twt_enable_comp_cb = tgt_twt_enable_complete_resp_handler; twt_rx_ops->twt_disable_comp_cb = tgt_twt_disable_complete_resp_handler; tgt_twt_register_ext_rx_ops(rx_ops); }