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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user