From 9c43a47af046283d7f589c3d7a661fb758cd908a Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 12 Nov 2019 12:51:02 -0800 Subject: [PATCH] qcacmn: Clean up channel number usage for CDP API For cdp_hl_fc_set_td_limit() API, use channel frequency instead of channel number. Change-Id: I852f1fc192374a4b603e615664d7fb27ea984f5f CRs-fixed: 2565737 --- dp/inc/cdp_txrx_flow_ctrl_legacy.h | 6 +++--- dp/inc/cdp_txrx_ops.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dp/inc/cdp_txrx_flow_ctrl_legacy.h b/dp/inc/cdp_txrx_flow_ctrl_legacy.h index f014ff030e..b00b905d3a 100644 --- a/dp/inc/cdp_txrx_flow_ctrl_legacy.h +++ b/dp/inc/cdp_txrx_flow_ctrl_legacy.h @@ -58,13 +58,13 @@ cdp_hl_fc_register(ol_txrx_soc_handle soc, uint8_t pdev_id, } static inline int cdp_hl_fc_set_td_limit(ol_txrx_soc_handle soc, - uint8_t vdev_id, uint8_t chan) + uint8_t vdev_id, uint32_t chan_freq) { if (!soc->ops->l_flowctl_ops->set_vdev_tx_desc_limit) return 0; return soc->ops->l_flowctl_ops->set_vdev_tx_desc_limit(soc, vdev_id, - chan); + chan_freq); } static inline int cdp_hl_fc_set_os_queue_status(ol_txrx_soc_handle soc, @@ -87,7 +87,7 @@ cdp_hl_fc_register(ol_txrx_soc_handle soc, uint8_t pdev_id, } static inline int cdp_hl_fc_set_td_limit(ol_txrx_soc_handle soc, - uint8_t vdev_id, uint8_t chan) + uint8_t vdev_id, uint32_t chan_freq) { return 0; } diff --git a/dp/inc/cdp_txrx_ops.h b/dp/inc/cdp_txrx_ops.h index c662b34384..f5e5a5bc23 100644 --- a/dp/inc/cdp_txrx_ops.h +++ b/dp/inc/cdp_txrx_ops.h @@ -1401,7 +1401,7 @@ struct cdp_lflowctl_ops { uint8_t pdev_id, tx_pause_callback flowcontrol); int (*set_vdev_tx_desc_limit)(struct cdp_soc_t *soc_hdl, - uint8_t vdev_id, uint8_t chan); + uint8_t vdev_id, uint32_t chan_freq); int (*set_vdev_os_queue_status)(struct cdp_soc_t *soc_hdl, uint8_t vdev_id, enum netif_action_type action);