qcacld-3.0: Refine ready event processing

1) Use correct typecast in function wma_process_fw_event_mc_thread_ctx
2) Change log level to debug and refine logs in
 wma_process_fw_event_handler

CRs-Fixed: 2281191
Change-Id: I4e67143d028867b193e42ec51f6f7562287eba82
This commit is contained in:
Amar Singhal 2018-07-18 12:31:06 -07:00 • committed by nshrivas
commit 0cb9a5c808

View file

@ -1724,7 +1724,7 @@ static int wma_process_fw_event_mc_thread_ctx(void *ctx, void *ev)
}
params_buf->wmi_handle = (struct wmi_unified *)ctx;
params_buf->evt_buf = (wmi_buf_t *)ev;
params_buf->evt_buf = ev;
wma = cds_get_context(QDF_MODULE_ID_WMA);
event_id = WMI_GET_FIELD(qdf_nbuf_data(params_buf->evt_buf),
@ -1777,8 +1777,7 @@ int wma_process_fw_event_handler(void *ctx, void *htc_packet, uint8_t rx_ctx)
return err;
}
tgt_hdl = (struct target_psoc_info *)wlan_psoc_get_tgt_if_handle(
psoc);
tgt_hdl = wlan_psoc_get_tgt_if_handle(psoc);
if (!tgt_hdl) {
WMA_LOGE("target_psoc_info is null");
return err;
@ -1786,8 +1785,8 @@ int wma_process_fw_event_handler(void *ctx, void *htc_packet, uint8_t rx_ctx)
is_wmi_ready = target_psoc_get_wmi_ready(tgt_hdl);
if (!is_wmi_ready) {
WMA_LOGW("wmi event recvd before wmi_ready_event is fully processed");
WMA_LOGW("therefore use worker thread");
WMA_LOGD("fw event recvd before ready event processed");
WMA_LOGD("therefore use worker thread");
wmi_process_fw_event_worker_thread_ctx(ctx, htc_packet);
return err;
}