mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
qcacld-3.0: Fix compilation issues
Fix compilation issues. Change-Id: I629acbb0c9ec1e36a3e6a13e3709dd4327003557 CRs-Fixed: 1094633
This commit is contained in:
parent
9f0a7f8d26
commit
9aecfee377
3 changed files with 12 additions and 10 deletions
|
|
@ -179,13 +179,6 @@ static void cds_cdp_cfg_attach(struct cds_config_info *cds_cfg)
|
|||
struct txrx_pdev_cfg_param_t cdp_cfg = {0};
|
||||
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
||||
|
||||
gp_cds_context->cfg_ctx = cdp_cfg_attach(soc, gp_cds_context->qdf_ctx,
|
||||
(void *)(&cdp_cfg));
|
||||
if (!gp_cds_context->cfg_ctx) {
|
||||
WMA_LOGP("%s: failed to init cfg handle", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
cdp_cfg.is_uc_offload_enabled = cds_cfg->uc_offload_enabled;
|
||||
cdp_cfg.uc_tx_buffer_count = cds_cfg->uc_txbuf_count;
|
||||
cdp_cfg.uc_tx_buffer_size = cds_cfg->uc_txbuf_size;
|
||||
|
|
@ -196,6 +189,13 @@ static void cds_cdp_cfg_attach(struct cds_config_info *cds_cfg)
|
|||
cds_cfg->ip_tcp_udp_checksum_offload;
|
||||
cdp_cfg.ce_classify_enabled = cds_cfg->ce_classify_enabled;
|
||||
|
||||
gp_cds_context->cfg_ctx = cdp_cfg_attach(soc, gp_cds_context->qdf_ctx,
|
||||
(void *)(&cdp_cfg));
|
||||
if (!gp_cds_context->cfg_ctx) {
|
||||
WMA_LOGP("%s: failed to init cfg handle", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Configure Receive flow steering */
|
||||
cdp_cfg_set_flow_steering(soc, &gp_cds_context->cfg_ctx,
|
||||
cds_cfg->flow_steering_enabled);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ unsigned int vow_config = 0;
|
|||
void ol_tx_set_flow_control_parameters(struct txrx_pdev_cfg_t *cfg_ctx,
|
||||
struct txrx_pdev_cfg_param_t *cfg_param)
|
||||
{
|
||||
struct txrx_pdev_cfg_t *cfg_ctx = pcfg_ctx;
|
||||
cfg_ctx->tx_flow_start_queue_offset =
|
||||
cfg_param->tx_flow_start_queue_offset;
|
||||
cfg_ctx->tx_flow_stop_queue_th =
|
||||
|
|
|
|||
|
|
@ -527,6 +527,7 @@ static void *hdd_init_lro_mgr(void)
|
|||
*/
|
||||
int hdd_lro_enable(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
|
||||
{
|
||||
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
||||
|
||||
if (!hdd_ctx->config->lro_enable ||
|
||||
QDF_STA_MODE != adapter->device_mode) {
|
||||
|
|
@ -535,7 +536,7 @@ int hdd_lro_enable(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
|
|||
}
|
||||
|
||||
/* Register the flush callback */
|
||||
cdp_register_lro_flush_cb(hdd_lro_flush, hdd_init_lro_mgr);
|
||||
cdp_register_lro_flush_cb(soc, hdd_lro_flush, hdd_init_lro_mgr);
|
||||
adapter->dev->features |= NETIF_F_LRO;
|
||||
|
||||
hdd_info("LRO Enabled");
|
||||
|
|
@ -563,12 +564,14 @@ void hdd_deinit_lro_mgr(void *lro_info)
|
|||
*/
|
||||
void hdd_lro_disable(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
|
||||
{
|
||||
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
||||
|
||||
if (!hdd_ctx->config->lro_enable ||
|
||||
QDF_STA_MODE != adapter->device_mode)
|
||||
return;
|
||||
|
||||
/* Deregister the flush callback */
|
||||
cdp_deregister_lro_flush_cb(hdd_deinit_lro_mgr);
|
||||
cdp_deregister_lro_flush_cb(soc, hdd_deinit_lro_mgr);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue