123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- * Copyright (c) 2020 The Linux Foundation. All rights reserved.
- * Copyright (c) 2022-2023 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.
- */
- #ifndef _HAL_6450_TX_H_
- #define _HAL_6450_TX_H_
- #include "tcl_data_cmd.h"
- #include "phyrx_rssi_legacy.h"
- #include "hal_internal.h"
- #include "cdp_txrx_mon_struct.h"
- #include "qdf_trace.h"
- #include "hal_rx.h"
- #include "hal_tx.h"
- #include "dp_types.h"
- #include "hal_api_mon.h"
- /**
- * hal_tx_desc_set_lmac_id_6450 - Set the lmac_id value
- * @desc: Handle to Tx Descriptor
- * @lmac_id: mac Id to ast matching
- * b00 – mac 0
- * b01 – mac 1
- * b10 – mac 2
- * b11 – all macs (legacy HK way)
- *
- * Return: void
- */
- static void hal_tx_desc_set_lmac_id_6450(void *desc, uint8_t lmac_id)
- {
- HAL_SET_FLD(desc, TCL_DATA_CMD_4, LMAC_ID) |=
- HAL_TX_SM(TCL_DATA_CMD_4, LMAC_ID, lmac_id);
- }
- /**
- * hal_tx_desc_set_mesh_en_6450 - Set mesh_enable flag in Tx descriptor
- * @desc: Handle to Tx Descriptor
- * @en: For raw WiFi frames, this indicates transmission to a mesh STA,
- * enabling the interpretation of the 'Mesh Control Present' bit
- * (bit 8) of QoS Control (otherwise this bit is ignored),
- * For native WiFi frames, this indicates that a 'Mesh Control' field
- * is present between the header and the LLC.
- *
- * Return: void
- */
- static inline
- void hal_tx_desc_set_mesh_en_6450(void *desc, uint8_t en)
- {
- HAL_SET_FLD(desc, TCL_DATA_CMD_5, MESH_ENABLE) |=
- HAL_TX_SM(TCL_DATA_CMD_5, MESH_ENABLE, en);
- }
- #endif
|