123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
-
- #ifndef _CDP_TXRX_CFG_H_
- #define _CDP_TXRX_CFG_H_
- static inline void
- cdp_cfg_set_rx_fwd_disabled(ol_txrx_soc_handle soc, void *pdev,
- uint8_t disable_rx_fwd)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->set_cfg_rx_fwd_disabled)
- return soc->ops->cfg_ops->set_cfg_rx_fwd_disabled(pdev,
- disable_rx_fwd);
- }
- static inline void
- cdp_cfg_set_packet_log_enabled(ol_txrx_soc_handle soc,
- void *pdev, uint8_t val)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->set_cfg_packet_log_enabled)
- return soc->ops->cfg_ops->set_cfg_packet_log_enabled(pdev,
- val);
- }
- static inline void
- *cdp_cfg_attach(ol_txrx_soc_handle soc,
- qdf_device_t osdev, void *cfg_param)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return NULL;
- }
- if (soc->ops->cfg_ops->cfg_attach)
- return soc->ops->cfg_ops->cfg_attach(osdev, cfg_param);
- return NULL;
- }
- static inline void
- cdp_cfg_vdev_rx_set_intrabss_fwd(ol_txrx_soc_handle soc, void *vdev, bool val)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->vdev_rx_set_intrabss_fwd)
- return soc->ops->cfg_ops->vdev_rx_set_intrabss_fwd(vdev, val);
- }
- static inline uint8_t
- cdp_cfg_is_rx_fwd_disabled(ol_txrx_soc_handle soc, void *vdev)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->cfg_ops->is_rx_fwd_disabled)
- return soc->ops->cfg_ops->is_rx_fwd_disabled(vdev);
- return 0;
- }
- static inline void
- cdp_cfg_tx_set_is_mgmt_over_wmi_enabled(ol_txrx_soc_handle soc,
- uint8_t value)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->tx_set_is_mgmt_over_wmi_enabled)
- return soc->ops->cfg_ops->tx_set_is_mgmt_over_wmi_enabled(
- value);
- }
- static inline int
- cdp_cfg_is_high_latency(ol_txrx_soc_handle soc, void *pdev)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return 0;
- }
- if (soc->ops->cfg_ops->is_high_latency)
- return soc->ops->cfg_ops->is_high_latency(pdev);
- return 0;
- }
- static inline void
- cdp_cfg_set_flow_control_parameters(ol_txrx_soc_handle soc,
- void *cfg, void *param)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->set_flow_control_parameters)
- return soc->ops->cfg_ops->set_flow_control_parameters(cfg,
- param);
- return;
- }
- static inline void cdp_cfg_set_flow_steering(ol_txrx_soc_handle soc,
- void *pdev, uint8_t val)
- {
- if (!soc || !soc->ops || !soc->ops->cfg_ops) {
- QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
- "%s invalid instance", __func__);
- return;
- }
- if (soc->ops->cfg_ops->set_flow_steering)
- return soc->ops->cfg_ops->set_flow_steering(pdev, val);
- return;
- }
- #endif
|