From 303c1f655ecefa7a99719a21e586a96db74fcc26 Mon Sep 17 00:00:00 2001 From: Kiran Venkatappa Date: Fri, 17 Nov 2017 17:01:26 +0530 Subject: [PATCH] qcacmn: Add target_if ops init for offhchan txrx offchan txrx module should query target to know offchan_data_tid support. Add target_if ops for offchan module to query this. Change-Id: I8bca8bbaa5c68eb42daf025235b50a5b512d6911 CRs-Fixed: 2145450 --- target_if/core/src/target_if_main.c | 12 ++++++++++++ .../lmac_if/inc/wlan_lmac_if_def.h | 15 +++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/target_if/core/src/target_if_main.c b/target_if/core/src/target_if_main.c index 13665837cdc7..d49e5c4562a1 100644 --- a/target_if/core/src/target_if_main.c +++ b/target_if/core/src/target_if_main.c @@ -54,6 +54,9 @@ #ifdef QCA_SUPPORT_SON #include #endif +#ifdef WLAN_OFFCHAN_TXRX_ENABLE +#include +#endif static struct target_if_ctx *g_target_if_ctx; @@ -116,6 +119,13 @@ QDF_STATUS target_if_close(void) return QDF_STATUS_SUCCESS; } +#ifndef WLAN_OFFCHAN_TXRX_ENABLE +static void target_if_offchan_txrx_ops_register( + struct wlan_lmac_if_tx_ops *tx_ops) +{ +} +#endif /* WLAN_OFFCHAN_TXRX_ENABLE */ + #ifndef WLAN_ATF_ENABLE static void target_if_atf_tx_ops_register(struct wlan_lmac_if_tx_ops *tx_ops) { @@ -258,6 +268,8 @@ QDF_STATUS target_if_register_umac_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops) target_if_target_tx_ops_register(tx_ops); + target_if_offchan_txrx_ops_register(tx_ops); + /* Converged UMAC components to register their TX-ops here */ return QDF_STATUS_SUCCESS; } diff --git a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h index 8224e0743229..c684ac362be3 100644 --- a/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h +++ b/umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h @@ -497,6 +497,18 @@ struct wlan_lmac_if_target_tx_ops { bool (*tgt_is_tgt_type_qca9888)(uint32_t); }; +#ifdef WLAN_OFFCHAN_TXRX_ENABLE +/** + * struct wlan_lmac_if_offchan_txrx_ops - Function pointers to check target + * capabilities related to offchan txrx. + * @offchan_data_tid_support: To check if target supports seperate tid for + * offchan data tx. + */ +struct wlan_lmac_if_offchan_txrx_ops { + bool (*offchan_data_tid_support)(struct wlan_objmgr_pdev *pdev); +}; +#endif + /** * struct wlan_lmac_if_tx_ops - south bound tx function pointers * @mgmt_txrx_tx_ops: mgmt txrx tx ops @@ -551,6 +563,9 @@ struct wlan_lmac_if_tx_ops { #endif struct wlan_lmac_if_mlme_tx_ops mops; struct wlan_lmac_if_target_tx_ops target_tx_ops; +#ifdef WLAN_OFFCHAN_TXRX_ENABLE + struct wlan_lmac_if_offchan_txrx_ops offchan_txrx_ops; +#endif }; /**