qcacmn: Converge the Spectral feature
Add Spectral TxOps and RxOps interfaces in psoc towards converging the Spectral feature. CRs-Fixed: 2028657 Change-Id: If5b46fb9d71529060df6e5b242fcc8976fce82f8
This commit is contained in:

کامیت شده توسط
snandini

والد
d3bf53a660
کامیت
642201f048
@@ -69,4 +69,17 @@ QDF_STATUS wlan_global_lmac_if_close(struct wlan_objmgr_psoc *psoc);
|
||||
QDF_STATUS wlan_global_lmac_if_set_txops_registration_cb(WLAN_DEV_TYPE dev_type,
|
||||
QDF_STATUS (*handler)(struct wlan_lmac_if_tx_ops *));
|
||||
|
||||
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
||||
/**
|
||||
* wlan_lmac_if_sptrl_set_rx_ops_register_cb ()- Spectral LMAC Rx ops
|
||||
* registration callback assignment
|
||||
* @handler: Handler to be called for spectral LMAC rx ops registration
|
||||
*
|
||||
* API to assign appropriate Spectral LMAC rx ops registration callback handler
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS - in case of success
|
||||
*/
|
||||
QDF_STATUS wlan_lmac_if_sptrl_set_rx_ops_register_cb(void (*handler)
|
||||
(struct wlan_lmac_if_rx_ops *));
|
||||
#endif /* WLAN_CONV_SPECTRAL_ENABLE */
|
||||
#endif /* _WLAN_LMAC_IF_API_H */
|
||||
|
@@ -29,6 +29,43 @@
|
||||
QDF_STATUS (*wlan_global_lmac_if_tx_ops_register[MAX_DEV_TYPE])
|
||||
(struct wlan_lmac_if_tx_ops *tx_ops);
|
||||
|
||||
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
||||
/* Function pointer for spectral rx_ops registration function */
|
||||
void (*wlan_lmac_if_sptrl_rx_ops)(struct wlan_lmac_if_rx_ops *rx_ops);
|
||||
|
||||
QDF_STATUS wlan_lmac_if_sptrl_set_rx_ops_register_cb(void (*handler)
|
||||
(struct wlan_lmac_if_rx_ops *))
|
||||
{
|
||||
wlan_lmac_if_sptrl_rx_ops = handler;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
EXPORT_SYMBOL(wlan_lmac_if_sptrl_set_rx_ops_register_cb);
|
||||
#endif /* WLAN_CONV_SPECTRAL_ENABLE */
|
||||
|
||||
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
||||
/**
|
||||
* wlan_spectral_register_rx_ops() - Register spectral component RX OPS
|
||||
* @rx_ops: lmac if receive ops
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static void wlan_spectral_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
|
||||
{
|
||||
wlan_lmac_if_sptrl_rx_ops(rx_ops);
|
||||
}
|
||||
#else
|
||||
/**
|
||||
* wlan_spectral_register_rx_ops() - Dummy api to register spectral RX OPS
|
||||
* @rx_ops: lmac if receive ops
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
static void wlan_spectral_register_rx_ops(struct wlan_lmac_if_rx_ops *rx_ops)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WLAN_PMO_ENABLE
|
||||
/**
|
||||
* wlan_pmo_register_rx_ops() - Register PMO component RX OPS
|
||||
@@ -79,9 +116,12 @@ wlan_global_lmac_if_rx_ops_register(struct wlan_lmac_if_rx_ops *rx_ops)
|
||||
/* Registeration for UMAC componets */
|
||||
wlan_lmac_if_umac_rx_ops_register(rx_ops);
|
||||
|
||||
/* Registeration for componets outside UMAC */
|
||||
/* Registeration for componets outside UMAC */
|
||||
wlan_pmo_register_rx_ops(rx_ops);
|
||||
|
||||
/* spectral rx_ops registration*/
|
||||
wlan_spectral_register_rx_ops(rx_ops);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user