qcacmn: Clean CONFIG_MCL for send_flush_completion_to_user

The aim is to remove CONFIG_MCL or CONFIG_WIN from
cmn component.

This change takes care send_flush_completion_to_user.
Cleaning up cmn code by replacing the CONFIG_MCL
with macro FEATURE_WLAN_DIAG_SUPPORT.

CRs-Fixed: 2397824
Change-Id: I57a82fec17210b49f778a950034ca442d11eb511
This commit is contained in:
Paul Zhang
2019-02-13 16:12:59 +08:00
committed by nshrivas
parent b692339f5a
commit 9c8c20f6c0

View File

@@ -736,7 +736,7 @@ void wlan_report_log_completion(uint32_t is_fatal,
}
#endif
#ifdef CONFIG_MCL
#ifdef FEATURE_WLAN_DIAG_SUPPORT
/**
* send_flush_completion_to_user() - Indicate flush completion to the user
* @ring_id: Ring id of logging entities
@@ -823,7 +823,7 @@ static int wlan_logging_thread(void *Arg)
ret = send_filled_buffers_to_user();
if (-ENOMEM == ret)
msleep(200);
#ifdef CONFIG_MCL
#ifdef FEATURE_WLAN_DIAG_SUPPORT
if (WLAN_LOG_INDICATOR_HOST_ONLY ==
cds_get_log_indicator()) {
send_flush_completion_to_user(
@@ -848,7 +848,7 @@ static int wlan_logging_thread(void *Arg)
*/
if (gwlan_logging.is_flush_complete == true) {
gwlan_logging.is_flush_complete = false;
#ifdef CONFIG_MCL
#ifdef FEATURE_WLAN_DIAG_SUPPORT
send_flush_completion_to_user(
RING_ID_DRIVER_DEBUG);
#endif