From b4da5e84c6d8e387d1b86022a12ac135e199859f Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Thu, 2 Apr 2020 12:14:37 +0530 Subject: [PATCH] qcacld-3.0: Fix logs of Start BSS failure If start bss fail in logs it indicate start BSS timeout, so fix the logs to indicate proper logs. Change-Id: Ie470550a1606a1cddd6577f0945386e8c1a5cc13 CRs-Fixed: 2655836 --- core/hdd/src/wlan_hdd_hostapd.c | 12 ++++++++---- core/sme/src/common/sme_api.c | 8 ++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 4835b62e593e7..805d980ad708e 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -5715,11 +5715,15 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter, wlansap_reset_sap_config_add_ie(config, eUPDATE_IE_ALL); - if (!QDF_IS_STATUS_SUCCESS(qdf_status) || - !QDF_IS_STATUS_SUCCESS(hostapd_state->qdf_status)) { + if (QDF_IS_STATUS_ERROR(qdf_status) || + QDF_IS_STATUS_ERROR(hostapd_state->qdf_status)) { mutex_unlock(&hdd_ctx->sap_lock); - - hdd_err("qdf wait for single_event failed!!"); + if (QDF_IS_STATUS_ERROR(qdf_status)) + hdd_err("Wait for start BSS failed status %d", + qdf_status); + else + hdd_err("Start BSS failed status %d", + hostapd_state->qdf_status); hdd_set_connection_in_progress(false); sme_get_command_q_status(mac_handle); wlansap_stop_bss(WLAN_HDD_GET_SAP_CTX_PTR(adapter)); diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index ab4795e18ec32..cbfab3685eeae 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -8308,8 +8308,8 @@ void sme_get_command_q_status(mac_handle_t mac_handle) if (pEntry) pTempCmd = GET_BASE_ADDR(pEntry, tSmeCmd, Link); - sme_err("WLAN_BUG_RCA: Currently smeCmdActiveList has command (0x%X)", - (pTempCmd) ? pTempCmd->command : eSmeNoCommand); + sme_info("smeCmdActiveList has command (0x%X)", + (pTempCmd) ? pTempCmd->command : eSmeNoCommand); if (pTempCmd) { if (eSmeCsrCommandMask & pTempCmd->command) /* CSR command is stuck. See what the reason code is @@ -8318,8 +8318,8 @@ void sme_get_command_q_status(mac_handle_t mac_handle) dump_csr_command_info(mac, pTempCmd); } /* if(pTempCmd) */ - sme_err("Currently smeCmdPendingList has %d commands", - wlan_serialization_get_pending_list_count(mac->psoc, false)); + sme_info("smeCmdPendingList has %d commands", + wlan_serialization_get_pending_list_count(mac->psoc, false)); }