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: I9336cac686bfb875cea242685a122ec98acdf8c2
CRs-Fixed: 2097229
This commit is contained in:
Venkata Sharath Chandra Manchala
2017-07-10 11:59:54 -07:00
committad av Gerrit - the friendly Code Review server
förälder bd20096931
incheckning 5a02b1f053
6 ändrade filer med 163 tillägg och 55 borttagningar

Visa fil

@@ -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_ */