qcacmn: Fix issues in direct buffer rx module

1. Populate number of capabilities after extracting service ready ext param
2. Deinit ring during pdev destroy only if ring is configured
3. Do not allocate module param if no capability is shared for
   the pdev by target

Change-Id: Ie92b7fc882ba8b7755fea150c724459264a0ea79
CRs-Fixed: 2192671
This commit is contained in:
Sathish Kumar
2018-02-27 14:48:20 +05:30
committed by nshrivas
parent 8a8fa10854
commit 6b55904827
2 changed files with 40 additions and 31 deletions

View File

@@ -198,11 +198,6 @@ static int init_deinit_service_ext_ready_event_handler(ol_scn_t scn_handle,
wmi_handle = target_psoc_get_wmi_hdl(tgt_hdl);
info = (&tgt_hdl->info);
err_code = init_deinit_populate_dbr_ring_cap(psoc, wmi_handle,
event, info);
if (err_code)
goto exit;
err_code = init_deinit_populate_service_ready_ext_param(wmi_handle,
event, &(info->service_ext_param));
if (err_code)
@@ -237,6 +232,11 @@ static int init_deinit_service_ext_ready_event_handler(ol_scn_t scn_handle,
goto exit;
}
err_code = init_deinit_populate_dbr_ring_cap(psoc, wmi_handle,
event, info);
if (err_code)
goto exit;
legacy_callback = target_if_get_psoc_legacy_service_ready_cb();
if (legacy_callback)
legacy_callback(wmi_service_ready_ext_event_id,