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
This commit is contained in:
Kiran Venkatappa 2017-11-17 17:01:26 +05:30 • committed by snandini
commit 303c1f655e
2 changed files with 27 additions and 0 deletions

View file

@ -54,6 +54,9 @@
#ifdef QCA_SUPPORT_SON
#include <target_if_son.h>
#endif
#ifdef WLAN_OFFCHAN_TXRX_ENABLE
#include <target_if_offchan_txrx_api.h>
#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;
}

View file

@ -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
};
/**