qcacmn: Propagate config parameters to datapath
Provide an API to accept the config parameters from the upper layer and store them in wlan_cfg_ctx. Enable/Disable the datapath features based on these parameters. Change-Id: Icbdc835a51a6fea87c06174e9fc63d5d007aec1d CRs-Fixed: 2097229
This commit is contained in:

committed by
snandini

父節點
cfbb8952ff
當前提交
3e8add86bb
@@ -100,7 +100,7 @@ static inline struct cdp_pdev *cdp_pdev_attach
|
||||
{
|
||||
if (soc->ops->cmn_drv_ops->txrx_pdev_attach)
|
||||
return soc->ops->cmn_drv_ops->txrx_pdev_attach(soc, ctrl_pdev,
|
||||
htc_pdev, osdev, pdev_id);
|
||||
htc_pdev, osdev, pdev_id);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -559,4 +559,24 @@ static inline int cdp_set_pn_check(ol_txrx_soc_handle soc,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* cdp_update_config_parameters(): function to propagate configuration
|
||||
* parameters to datapath
|
||||
* @soc: opaque soc handle
|
||||
* @cfg: configuration handle
|
||||
*
|
||||
* Return: status: 0 - Success, non-zero: Failure
|
||||
*/
|
||||
static inline
|
||||
QDF_STATUS cdp_update_config_parameters(ol_txrx_soc_handle soc,
|
||||
struct cdp_config_params *cfg)
|
||||
{
|
||||
struct cdp_soc *psoc = (struct cdp_soc *)soc;
|
||||
|
||||
if (soc->ops->cmn_drv_ops->update_config_parameters)
|
||||
return soc->ops->cmn_drv_ops->update_config_parameters(psoc,
|
||||
cfg);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* _CDP_TXRX_CMN_H_ */
|
||||
|
Reference in New Issue
Block a user