1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /*
- * Copyright (c) 2016-2021 The Linux Foundation. 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.
- */
- /**
- * @file cdp_txrx_mon.h
- * @brief Define the monitor mode API functions
- * called by the host control SW and the OS interface module
- */
- #ifndef _CDP_TXRX_MON_H_
- #define _CDP_TXRX_MON_H_
- #include "cdp_txrx_handle.h"
- #include <cdp_txrx_cmn.h>
- static inline QDF_STATUS cdp_reset_monitor_mode(ol_txrx_soc_handle soc,
- uint8_t pdev_id,
- u_int8_t smart_monitor)
- {
- if (!soc || !soc->ops) {
- dp_cdp_debug("Invalid Instance");
- QDF_BUG(0);
- return 0;
- }
- if (!soc->ops->mon_ops ||
- !soc->ops->mon_ops->txrx_reset_monitor_mode)
- return 0;
- return soc->ops->mon_ops->txrx_reset_monitor_mode(soc, pdev_id,
- smart_monitor);
- }
- /**
- * cdp_deliver_tx_mgmt() - Deliver mgmt frame for tx capture
- * @soc: Datapath SOC handle
- * @pdev_id: id of datapath PDEV handle
- * @nbuf: Management frame buffer
- */
- static inline QDF_STATUS
- cdp_deliver_tx_mgmt(ol_txrx_soc_handle soc, uint8_t pdev_id,
- qdf_nbuf_t nbuf)
- {
- if (!soc || !soc->ops) {
- dp_cdp_debug("Invalid Instance");
- QDF_BUG(0);
- return QDF_STATUS_E_FAILURE;
- }
- if (!soc->ops->mon_ops ||
- !soc->ops->mon_ops->txrx_deliver_tx_mgmt)
- return QDF_STATUS_E_FAILURE;
- return soc->ops->mon_ops->txrx_deliver_tx_mgmt(soc, pdev_id, nbuf);
- }
- #endif
|