|
@@ -134,16 +134,14 @@ uint8_t cds_get_datapath_handles(void **soc, struct cdp_pdev **pdev,
|
|
|
(*soc) = cds_get_context(QDF_MODULE_ID_SOC);
|
|
|
|
|
|
if (!(*soc)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "soc handle is invalid");
|
|
|
+ cds_err("soc handle is invalid");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
(*pdev) = cds_get_context(QDF_MODULE_ID_TXRX);
|
|
|
|
|
|
if (!(*pdev)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "pdev handle is invalid");
|
|
|
+ cds_err("pdev handle is invalid");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
@@ -151,8 +149,7 @@ uint8_t cds_get_datapath_handles(void **soc, struct cdp_pdev **pdev,
|
|
|
sessionId);
|
|
|
|
|
|
if (!(*vdev)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "vdev handle is invalid");
|
|
|
+ cds_err("vdev handle is invalid");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
return 0;
|
|
@@ -426,8 +423,7 @@ cds_set_ac_specs_params(struct cds_config_info *cds_cfg)
|
|
|
cds_ctx = cds_get_context(QDF_MODULE_ID_QDF);
|
|
|
|
|
|
if (!cds_ctx) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "Invalid CDS Context");
|
|
|
+ cds_err("Invalid CDS Context");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -463,13 +459,11 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
struct hdd_context *hdd_ctx;
|
|
|
struct cds_context *cds_ctx;
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO_HIGH,
|
|
|
- "%s: Opening CDS", __func__);
|
|
|
+ cds_debug("Opening CDS");
|
|
|
|
|
|
cds_ctx = cds_get_context(QDF_MODULE_ID_QDF);
|
|
|
if (!cds_ctx) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Trying to open CDS without a PreOpen", __func__);
|
|
|
+ cds_alert("Trying to open CDS without a PreOpen");
|
|
|
QDF_ASSERT(0);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
@@ -482,8 +476,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
status = qdf_event_create(&gp_cds_context->wma_complete_event);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Unable to init wma_complete_event", __func__);
|
|
|
+ cds_alert("Unable to init wma_complete_event");
|
|
|
QDF_ASSERT(0);
|
|
|
return status;
|
|
|
}
|
|
@@ -517,8 +510,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
scn = cds_get_context(QDF_MODULE_ID_HIF);
|
|
|
if (!scn) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: scn is null!", __func__);
|
|
|
+ cds_alert("scn is null!");
|
|
|
|
|
|
status = QDF_STATUS_E_FAILURE;
|
|
|
goto err_sched_close;
|
|
@@ -539,8 +531,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
ol_ctx = cds_get_context(QDF_MODULE_ID_BMI);
|
|
|
status = bmi_download_firmware(ol_ctx);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "BMI FIALED status:%d", status);
|
|
|
+ cds_alert("BMI FIALED status:%d", status);
|
|
|
goto err_bmi_close;
|
|
|
}
|
|
|
|
|
@@ -558,8 +549,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
gp_cds_context->htc_ctx =
|
|
|
htc_create(scn, &htcInfo, qdf_ctx, cds_get_conparam());
|
|
|
if (!gp_cds_context->htc_ctx) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to Create HTC", __func__);
|
|
|
+ cds_alert("Failed to Create HTC");
|
|
|
|
|
|
status = QDF_STATUS_E_FAILURE;
|
|
|
goto err_bmi_close;
|
|
@@ -568,8 +558,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
status = bmi_done(ol_ctx);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to complete BMI phase", __func__);
|
|
|
+ cds_alert("Failed to complete BMI phase");
|
|
|
goto err_htc_close;
|
|
|
}
|
|
|
|
|
@@ -578,8 +567,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
hdd_ctx->target_type);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
/* Critical Error ... Cannot proceed further */
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to open WMA module", __func__);
|
|
|
+ cds_alert("Failed to open WMA module");
|
|
|
QDF_ASSERT(0);
|
|
|
goto err_htc_close;
|
|
|
}
|
|
@@ -598,8 +586,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
HTCHandle = cds_get_context(QDF_MODULE_ID_HTC);
|
|
|
if (!HTCHandle) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: HTCHandle is null!", __func__);
|
|
|
+ cds_alert("HTCHandle is null!");
|
|
|
|
|
|
status = QDF_STATUS_E_FAILURE;
|
|
|
goto err_wma_close;
|
|
@@ -615,10 +602,8 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
goto err_wma_close;
|
|
|
}
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
|
|
|
- "%s: target_type %d 8074:%d 6290:%d",
|
|
|
- __func__, hdd_ctx->target_type,
|
|
|
- TARGET_TYPE_QCA8074, TARGET_TYPE_QCA6290);
|
|
|
+ cds_debug("target_type %d 8074:%d 6290:%d", hdd_ctx->target_type,
|
|
|
+ TARGET_TYPE_QCA8074, TARGET_TYPE_QCA6290);
|
|
|
|
|
|
if (TARGET_TYPE_QCA6290 == hdd_ctx->target_type)
|
|
|
gp_cds_context->dp_soc = cdp_soc_attach(LITHIUM_DP,
|
|
@@ -653,8 +638,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
if (eSIR_SUCCESS != sirStatus) {
|
|
|
/* Critical Error ... Cannot proceed further */
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to open MAC", __func__);
|
|
|
+ cds_alert("Failed to open MAC");
|
|
|
QDF_ASSERT(0);
|
|
|
|
|
|
status = QDF_STATUS_E_FAILURE;
|
|
@@ -665,8 +649,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
|
|
|
status = sme_open(gp_cds_context->mac_context);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
/* Critical Error ... Cannot proceed further */
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to open SME", __func__);
|
|
|
+ cds_alert("Failed to open SME");
|
|
|
QDF_ASSERT(0);
|
|
|
goto err_mac_close;
|
|
|
}
|
|
@@ -717,8 +700,7 @@ QDF_STATUS cds_dp_open(struct wlan_objmgr_psoc *psoc)
|
|
|
{
|
|
|
if (cdp_txrx_intr_attach(gp_cds_context->dp_soc)
|
|
|
!= QDF_STATUS_SUCCESS) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to attach interrupts", __func__);
|
|
|
+ cds_alert("Failed to attach interrupts");
|
|
|
goto close;
|
|
|
}
|
|
|
|
|
@@ -729,8 +711,7 @@ QDF_STATUS cds_dp_open(struct wlan_objmgr_psoc *psoc)
|
|
|
gp_cds_context->qdf_ctx, 0));
|
|
|
if (!gp_cds_context->pdev_txrx_ctx) {
|
|
|
/* Critical Error ... Cannot proceed further */
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to open TXRX", __func__);
|
|
|
+ cds_alert("Failed to open TXRX");
|
|
|
QDF_ASSERT(0);
|
|
|
goto intr_close;
|
|
|
}
|
|
@@ -738,8 +719,7 @@ QDF_STATUS cds_dp_open(struct wlan_objmgr_psoc *psoc)
|
|
|
pmo_ucfg_psoc_set_txrx_handle(psoc, gp_cds_context->pdev_txrx_ctx);
|
|
|
ucfg_ocb_set_txrx_handle(psoc, gp_cds_context->pdev_txrx_ctx);
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO_HIGH,
|
|
|
- "%s: CDS successfully Opened", __func__);
|
|
|
+ cds_debug("CDS successfully Opened");
|
|
|
|
|
|
return 0;
|
|
|
|
|
@@ -856,19 +836,16 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
/* We support only one instance for now ... */
|
|
|
if (!gp_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Invalid CDS context", __func__);
|
|
|
+ cds_err("Invalid CDS context");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
if ((!gp_cds_context->wma_context) ||
|
|
|
(gp_cds_context->mac_context == NULL)) {
|
|
|
if (!gp_cds_context->wma_context)
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: WMA NULL context", __func__);
|
|
|
+ cds_err("WMA NULL context");
|
|
|
else
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: MAC NULL context", __func__);
|
|
|
+ cds_err("MAC NULL context");
|
|
|
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
@@ -876,12 +853,10 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc)
|
|
|
/* Start the wma */
|
|
|
qdf_status = wma_start();
|
|
|
if (qdf_status != QDF_STATUS_SUCCESS) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to start wma", __func__);
|
|
|
+ cds_err("Failed to start wma");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
|
|
|
- "%s: wma correctly started", __func__);
|
|
|
+ cds_info("wma correctly started");
|
|
|
|
|
|
/* Start the MAC */
|
|
|
qdf_mem_zero(&halStartParams,
|
|
@@ -892,46 +867,38 @@ QDF_STATUS cds_enable(struct wlan_objmgr_psoc *psoc)
|
|
|
mac_start(gp_cds_context->mac_context, &halStartParams);
|
|
|
|
|
|
if (eSIR_SUCCESS != sirStatus) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to start MAC", __func__);
|
|
|
+ cds_alert("Failed to start MAC");
|
|
|
goto err_wma_stop;
|
|
|
}
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
|
|
|
- "%s: MAC correctly started", __func__);
|
|
|
+ cds_info("MAC correctly started");
|
|
|
|
|
|
/* START SME */
|
|
|
qdf_status = sme_start(gp_cds_context->mac_context);
|
|
|
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to start SME", __func__);
|
|
|
+ cds_alert("Failed to start SME");
|
|
|
goto err_mac_stop;
|
|
|
}
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
|
|
|
- "%s: SME correctly started", __func__);
|
|
|
+ cds_info("SME correctly started");
|
|
|
|
|
|
if (cdp_soc_attach_target(cds_get_context(QDF_MODULE_ID_SOC))) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to attach soc target", __func__);
|
|
|
+ cds_alert("Failed to attach soc target");
|
|
|
goto err_sme_stop;
|
|
|
}
|
|
|
|
|
|
if (cdp_pdev_attach_target(cds_get_context(QDF_MODULE_ID_SOC),
|
|
|
(struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX))) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Failed to attach pdev target", __func__);
|
|
|
+ cds_alert("Failed to attach pdev target");
|
|
|
goto err_soc_target_detach;
|
|
|
}
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
|
|
|
- "%s: CDS Start is successful!!", __func__);
|
|
|
+ cds_info("CDS Start is successful!!");
|
|
|
|
|
|
qdf_status = dispatcher_psoc_enable(psoc);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: dispatcher_psoc_enable failed", __func__);
|
|
|
+ cds_alert("dispatcher_psoc_enable failed");
|
|
|
goto err_soc_target_detach;
|
|
|
}
|
|
|
|
|
@@ -953,8 +920,7 @@ err_wma_stop:
|
|
|
qdf_event_reset(&gp_cds_context->wma_complete_event);
|
|
|
qdf_status = wma_stop(HAL_STOP_TYPE_RF_KILL);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to stop wma", __func__);
|
|
|
+ cds_err("Failed to stop wma");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
wma_setneedshutdown();
|
|
|
} else {
|
|
@@ -964,15 +930,9 @@ err_wma_stop:
|
|
|
CDS_WMA_TIMEOUT);
|
|
|
if (qdf_status != QDF_STATUS_SUCCESS) {
|
|
|
if (qdf_status == QDF_STATUS_E_TIMEOUT) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF,
|
|
|
- QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Timeout occurred before WMA_stop complete",
|
|
|
- __func__);
|
|
|
+ cds_alert("Timeout occurred before WMA_stop complete");
|
|
|
} else {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF,
|
|
|
- QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: WMA_stop reporting other error",
|
|
|
- __func__);
|
|
|
+ cds_alert("WMA_stop reporting other error");
|
|
|
}
|
|
|
QDF_ASSERT(0);
|
|
|
wma_setneedshutdown();
|
|
@@ -1126,8 +1086,7 @@ QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
qdf_status = wma_wmi_work_close();
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to close wma_wmi_work", __func__);
|
|
|
+ cds_err("Failed to close wma_wmi_work");
|
|
|
QDF_ASSERT(0);
|
|
|
}
|
|
|
|
|
@@ -1139,15 +1098,13 @@ QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc)
|
|
|
|
|
|
qdf_status = sme_close(gp_cds_context->mac_context);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to close SME", __func__);
|
|
|
+ cds_err("Failed to close SME");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
}
|
|
|
|
|
|
qdf_status = mac_close(gp_cds_context->mac_context);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to close MAC", __func__);
|
|
|
+ cds_err("Failed to close MAC");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
}
|
|
|
|
|
@@ -1160,28 +1117,24 @@ QDF_STATUS cds_close(struct wlan_objmgr_psoc *psoc)
|
|
|
cds_shutdown_notifier_purge();
|
|
|
|
|
|
if (true == wma_needshutdown()) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to shutdown wma", __func__);
|
|
|
+ cds_err("Failed to shutdown wma");
|
|
|
} else {
|
|
|
qdf_status = wma_close();
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to close wma", __func__);
|
|
|
+ cds_err("Failed to close wma");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
qdf_status = wma_wmi_service_close();
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to close wma_wmi_service", __func__);
|
|
|
+ cds_err("Failed to close wma_wmi_service");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
}
|
|
|
|
|
|
qdf_status = qdf_event_destroy(&gp_cds_context->wma_complete_event);
|
|
|
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: failed to destroy wma_complete_event", __func__);
|
|
|
+ cds_err("failed to destroy wma_complete_event");
|
|
|
QDF_ASSERT(QDF_IS_STATUS_SUCCESS(qdf_status));
|
|
|
}
|
|
|
|
|
@@ -1226,8 +1179,7 @@ void *cds_get_context(QDF_MODULE_ID module_id)
|
|
|
void *context = NULL;
|
|
|
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context pointer is null", __func__);
|
|
|
+ cds_err("cds context pointer is null");
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
@@ -1304,18 +1256,15 @@ void *cds_get_context(QDF_MODULE_ID module_id)
|
|
|
|
|
|
default:
|
|
|
{
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i does not have its context maintained by CDS",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i does not have its context maintained by CDS",
|
|
|
+ module_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return NULL;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!context)
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i context is Null", __func__,
|
|
|
- module_id);
|
|
|
+ cds_err("Module ID %i context is Null", module_id);
|
|
|
|
|
|
return context;
|
|
|
} /* cds_get_context() */
|
|
@@ -1352,8 +1301,7 @@ void *cds_get_global_context(void)
|
|
|
enum cds_driver_state cds_get_driver_state(void)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL", __func__);
|
|
|
+ cds_err("global cds context is NULL");
|
|
|
|
|
|
return CDS_DRIVER_STATE_UNINITIALIZED;
|
|
|
}
|
|
@@ -1374,9 +1322,7 @@ enum cds_driver_state cds_get_driver_state(void)
|
|
|
void cds_set_driver_state(enum cds_driver_state state)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL: %x", __func__,
|
|
|
- state);
|
|
|
+ cds_err("global cds context is NULL: %x", state);
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1396,9 +1342,7 @@ void cds_set_driver_state(enum cds_driver_state state)
|
|
|
void cds_clear_driver_state(enum cds_driver_state state)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL: %x", __func__,
|
|
|
- state);
|
|
|
+ cds_err("global cds context is NULL: %x", state);
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1409,8 +1353,7 @@ void cds_clear_driver_state(enum cds_driver_state state)
|
|
|
enum cds_fw_state cds_get_fw_state(void)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL", __func__);
|
|
|
+ cds_err("global cds context is NULL");
|
|
|
|
|
|
return CDS_FW_STATE_UNINITIALIZED;
|
|
|
}
|
|
@@ -1421,9 +1364,7 @@ enum cds_fw_state cds_get_fw_state(void)
|
|
|
void cds_set_fw_state(enum cds_fw_state state)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL: %d", __func__,
|
|
|
- state);
|
|
|
+ cds_err("global cds context is NULL: %d", state);
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1434,9 +1375,7 @@ void cds_set_fw_state(enum cds_fw_state state)
|
|
|
void cds_clear_fw_state(enum cds_fw_state state)
|
|
|
{
|
|
|
if (gp_cds_context == NULL) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: global cds context is NULL: %d", __func__,
|
|
|
- state);
|
|
|
+ cds_err("global cds context is NULL: %d", state);
|
|
|
|
|
|
return;
|
|
|
}
|
|
@@ -1463,15 +1402,12 @@ QDF_STATUS cds_alloc_context(QDF_MODULE_ID module_id,
|
|
|
void **cds_mod_context = NULL;
|
|
|
|
|
|
if (!gp_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is null", __func__);
|
|
|
+ cds_err("cds context is null");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
if (!module_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: null param passed",
|
|
|
- __func__);
|
|
|
+ cds_err("null param passed");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
@@ -1489,9 +1425,8 @@ QDF_STATUS cds_alloc_context(QDF_MODULE_ID module_id,
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i does not have its context allocated by CDS",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i does not have its context allocated by CDS",
|
|
|
+ module_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
@@ -1500,9 +1435,8 @@ QDF_STATUS cds_alloc_context(QDF_MODULE_ID module_id,
|
|
|
/* Context has already been allocated!
|
|
|
* Prevent double allocation
|
|
|
*/
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i context has already been allocated",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i context has already been allocated",
|
|
|
+ module_id);
|
|
|
return QDF_STATUS_E_EXISTS;
|
|
|
}
|
|
|
|
|
@@ -1511,9 +1445,8 @@ QDF_STATUS cds_alloc_context(QDF_MODULE_ID module_id,
|
|
|
*module_context = qdf_mem_malloc(size);
|
|
|
|
|
|
if (!*module_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to allocate Context for module ID %i",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Failed to allocate Context for module ID %i",
|
|
|
+ module_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return QDF_STATUS_E_NOMEM;
|
|
|
}
|
|
@@ -1537,8 +1470,7 @@ QDF_STATUS cds_set_context(QDF_MODULE_ID module_id, void *context)
|
|
|
struct cds_context *p_cds_context = cds_get_global_context();
|
|
|
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "cds context is Invalid");
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return QDF_STATUS_NOT_INITIALIZED;
|
|
|
}
|
|
|
|
|
@@ -1553,9 +1485,8 @@ QDF_STATUS cds_set_context(QDF_MODULE_ID module_id, void *context)
|
|
|
p_cds_context->hif_context = context;
|
|
|
break;
|
|
|
default:
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i does not have its context managed by CDS",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i does not have its context managed by CDS",
|
|
|
+ module_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
@@ -1579,14 +1510,12 @@ QDF_STATUS cds_free_context(QDF_MODULE_ID module_id, void *module_context)
|
|
|
void **cds_mod_context = NULL;
|
|
|
|
|
|
if (!gp_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is null", __func__);
|
|
|
+ cds_err("cds context is null");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
if (!module_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Null param", __func__);
|
|
|
+ cds_err("Null param");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
@@ -1608,25 +1537,21 @@ QDF_STATUS cds_free_context(QDF_MODULE_ID module_id, void *module_context)
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i "
|
|
|
- "does not have its context allocated by CDS",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i does not have its context allocated by CDS",
|
|
|
+ module_id);
|
|
|
QDF_ASSERT(0);
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
if (!*cds_mod_context) {
|
|
|
/* Context has not been allocated or freed already! */
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Module ID %i context has not been allocated or freed already",
|
|
|
- __func__, module_id);
|
|
|
+ cds_err("Module ID %i context has not been allocated or freed already",
|
|
|
+ module_id);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
if (*cds_mod_context != module_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds_mod_context != module_context", __func__);
|
|
|
+ cds_err("cds_mod_context != module_context");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
@@ -1645,15 +1570,13 @@ QDF_STATUS cds_free_context(QDF_MODULE_ID module_id, void *module_context)
|
|
|
void cds_wma_complete_cback(void)
|
|
|
{
|
|
|
if (!gp_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: invalid gp_cds_context", __func__);
|
|
|
+ cds_err("invalid gp_cds_context");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (qdf_event_set(&gp_cds_context->wma_complete_event) !=
|
|
|
QDF_STATUS_SUCCESS) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: qdf_event_set failed", __func__);
|
|
|
+ cds_err("qdf_event_set failed");
|
|
|
return;
|
|
|
}
|
|
|
} /* cds_wma_complete_cback() */
|
|
@@ -1705,8 +1628,7 @@ QDF_STATUS cds_get_vdev_types(enum QDF_OPMODE mode, uint32_t *type,
|
|
|
*type = WMI_VDEV_TYPE_NDI;
|
|
|
break;
|
|
|
default:
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "Invalid device mode %d", mode);
|
|
|
+ cds_err("Invalid device mode %d", mode);
|
|
|
status = QDF_STATUS_E_INVAL;
|
|
|
break;
|
|
|
}
|
|
@@ -1746,8 +1668,7 @@ bool cds_is_packet_log_enabled(void)
|
|
|
|
|
|
hdd_ctx = gp_cds_context->hdd_context;
|
|
|
if ((NULL == hdd_ctx) || (NULL == hdd_ctx->config)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
|
|
|
- "%s: Hdd Context is Null", __func__);
|
|
|
+ cds_alert("Hdd Context is Null");
|
|
|
return false;
|
|
|
}
|
|
|
return hdd_ctx->config->enablePacketLog;
|
|
@@ -1975,8 +1896,7 @@ void cds_set_wakelock_logging(bool value)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "cds context is Invald");
|
|
|
+ cds_err("cds context is Invald");
|
|
|
return;
|
|
|
}
|
|
|
p_cds_context->is_wakelock_log_enabled = value;
|
|
@@ -1996,8 +1916,7 @@ bool cds_is_wakelock_enabled(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "cds context is Invald");
|
|
|
+ cds_err("cds context is Invald");
|
|
|
return false;
|
|
|
}
|
|
|
return p_cds_context->is_wakelock_log_enabled;
|
|
@@ -2020,8 +1939,7 @@ void cds_set_ring_log_level(uint32_t ring_id, uint32_t log_level)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invald", __func__);
|
|
|
+ cds_err("cds context is Invald");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -2073,8 +1991,7 @@ enum wifi_driver_log_level cds_get_ring_log_level(uint32_t ring_id)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invald", __func__);
|
|
|
+ cds_err("cds context is Invald");
|
|
|
return WLAN_LOG_LEVEL_OFF;
|
|
|
}
|
|
|
|
|
@@ -2135,8 +2052,7 @@ void cds_init_log_completion(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -2167,8 +2083,7 @@ QDF_STATUS cds_set_log_completion(uint32_t is_fatal,
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
@@ -2179,9 +2094,8 @@ QDF_STATUS cds_set_log_completion(uint32_t is_fatal,
|
|
|
p_cds_context->log_complete.recovery_needed = recovery_needed;
|
|
|
p_cds_context->log_complete.is_report_in_progress = true;
|
|
|
qdf_spinlock_release(&p_cds_context->bug_report_lock);
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
|
|
|
- "%s: is_fatal %d ind %d reasn_code %d recovery needed %d",
|
|
|
- __func__, is_fatal, indicator, reason_code, recovery_needed);
|
|
|
+ cds_debug("is_fatal %d indicator %d reason_code %d recovery needed %d",
|
|
|
+ is_fatal, indicator, reason_code, recovery_needed);
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -2206,8 +2120,7 @@ void cds_get_and_reset_log_completion(uint32_t *is_fatal,
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -2239,8 +2152,7 @@ bool cds_is_log_report_in_progress(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return true;
|
|
|
}
|
|
|
return p_cds_context->log_complete.is_report_in_progress;
|
|
@@ -2257,8 +2169,7 @@ bool cds_is_fatal_event_enabled(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -2274,15 +2185,13 @@ bool cds_is_ptp_rx_opt_enabled(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
hdd_ctx = (struct hdd_context *)(p_cds_context->hdd_context);
|
|
|
if ((NULL == hdd_ctx) || (NULL == hdd_ctx->config)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Hdd Context is Null", __func__);
|
|
|
+ cds_err("Hdd Context is Null");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -2296,15 +2205,13 @@ bool cds_is_ptp_tx_opt_enabled(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
hdd_ctx = (struct hdd_context *)(p_cds_context->hdd_context);
|
|
|
if ((NULL == hdd_ctx) || (NULL == hdd_ctx->config)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Hdd Context is Null", __func__);
|
|
|
+ cds_err("Hdd Context is Null");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -2326,8 +2233,7 @@ uint32_t cds_get_log_indicator(void)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return WLAN_LOG_INDICATOR_UNUSED;
|
|
|
}
|
|
|
|
|
@@ -2383,40 +2289,34 @@ QDF_STATUS cds_flush_logs(uint32_t is_fatal,
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
if (!p_cds_context->enable_fatal_event) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Fatal event not enabled", __func__);
|
|
|
+ cds_err("Fatal event not enabled");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
if (cds_is_load_or_unload_in_progress() ||
|
|
|
cds_is_driver_recovering() || cds_is_driver_in_bad_state()) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: un/Load/SSR in progress", __func__);
|
|
|
+ cds_err("un/Load/SSR in progress");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
- if (cds_is_log_report_in_progress() == true) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Bug report already in progress - dropping! type:%d, indicator=%d reason_code=%d",
|
|
|
- __func__, is_fatal, indicator, reason_code);
|
|
|
+ if (cds_is_log_report_in_progress()) {
|
|
|
+ cds_err("Bug report already in progress - dropping! type:%d, indicator=%d reason_code=%d",
|
|
|
+ is_fatal, indicator, reason_code);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
status = cds_set_log_completion(is_fatal, indicator,
|
|
|
reason_code, recovery_needed);
|
|
|
if (QDF_STATUS_SUCCESS != status) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to set log trigger params", __func__);
|
|
|
+ cds_err("Failed to set log trigger params");
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
|
|
|
- "%s: Triggering bug report: type:%d, indicator=%d reason_code=%d",
|
|
|
- __func__, is_fatal, indicator, reason_code);
|
|
|
+ cds_info("Triggering bug report: type:%d, indicator=%d reason_code=%d",
|
|
|
+ is_fatal, indicator, reason_code);
|
|
|
|
|
|
if (dump_mac_trace)
|
|
|
qdf_trace_dump_all(p_cds_context->mac_context, 0, 0, 500, 0);
|
|
@@ -2428,8 +2328,7 @@ QDF_STATUS cds_flush_logs(uint32_t is_fatal,
|
|
|
|
|
|
ret = sme_send_flush_logs_cmd_to_fw(p_cds_context->mac_context);
|
|
|
if (0 != ret) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: Failed to send flush FW log", __func__);
|
|
|
+ cds_err("Failed to send flush FW log");
|
|
|
cds_init_log_completion();
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
@@ -2463,8 +2362,7 @@ void cds_set_fatal_event(bool value)
|
|
|
|
|
|
p_cds_context = cds_get_global_context();
|
|
|
if (!p_cds_context) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "%s: cds context is Invalid", __func__);
|
|
|
+ cds_err("cds context is Invalid");
|
|
|
return;
|
|
|
}
|
|
|
p_cds_context->enable_fatal_event = value;
|
|
@@ -2728,9 +2626,8 @@ uint32_t cds_get_connectivity_stats_pkt_bitmap(void *context)
|
|
|
|
|
|
adapter = (struct hdd_adapter *)context;
|
|
|
if (unlikely(adapter->magic != WLAN_HDD_ADAPTER_MAGIC)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "Magic cookie(%x) for adapter sanity verification is invalid",
|
|
|
- adapter->magic);
|
|
|
+ cds_err("Magic cookie(%x) for adapter sanity verification is invalid",
|
|
|
+ adapter->magic);
|
|
|
return QDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
return adapter->pkt_type_bitmap;
|
|
@@ -2751,9 +2648,8 @@ uint32_t cds_get_arp_stats_gw_ip(void *context)
|
|
|
adapter = (struct hdd_adapter *)context;
|
|
|
|
|
|
if (unlikely(adapter->magic != WLAN_HDD_ADAPTER_MAGIC)) {
|
|
|
- QDF_TRACE(QDF_MODULE_ID_HDD_DATA, QDF_TRACE_LEVEL_ERROR,
|
|
|
- "Magic cookie(%x) for adapter sanity verification is invalid",
|
|
|
- adapter->magic);
|
|
|
+ cds_err("Magic cookie(%x) for adapter sanity verification is invalid",
|
|
|
+ adapter->magic);
|
|
|
return 0;
|
|
|
}
|
|
|
|