summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@qti.qualcomm.com>2016-03-07 11:35:42 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-03-09 15:38:48 +0530
commit208e708e94f57c18a952727abffdc6212a88055b (patch)
tree9f127aa24940e5f1ede8012a4ff49948b9d3786a
parent9f781896a5de7d0a7764a7c94d851b4a28702e22 (diff)
qcacld-2.0: Remove unnecessary error logs
prima to qcacld-2.0 propagation Remove frequently seen unnecessary error logs in kmesg from driver. Change-Id: I708c11fc40fc3e7ca7fb71bf83f994f08463108d CRs-Fixed: 971507
-rw-r--r--CORE/HDD/src/wlan_hdd_main.c6
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c6
-rw-r--r--CORE/SME/src/pmc/pmc.c10
-rw-r--r--CORE/VOSS/src/vos_nvitem.c12
-rw-r--r--CORE/VOSS/src/vos_sched.c15
5 files changed, 28 insertions, 21 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 44f3dab3bdb6..cb319348cc82 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -6727,15 +6727,13 @@ static int hdd_driver_command(hdd_adapter_t *pAdapter,
else if (strncmp(command, "SCAN-ACTIVE", 11) == 0)
{
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
- VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- FL("making default scan to ACTIVE"));
+ hddLog(LOG1, FL("making default scan to ACTIVE"));
pHddCtx->ioctl_scan_mode = eSIR_ACTIVE_SCAN;
}
else if (strncmp(command, "SCAN-PASSIVE", 12) == 0)
{
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
- VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- FL("making default scan to PASSIVE"));
+ hddLog(LOG1, FL("making default scan to PASSIVE"));
pHddCtx->ioctl_scan_mode = eSIR_PASSIVE_SCAN;
}
else if (strncmp(command, "GETDWELLTIME", 12) == 0)
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index 2988a7b8d969..5bfacefc0b95 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -4368,16 +4368,14 @@ static int __iw_set_priv(struct net_device *dev, struct iw_request_info *info,
else if (strcasecmp(cmd, "scan-active") == 0)
{
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
- hddLog(VOS_TRACE_LEVEL_ERROR,
- FL("making default scan to active"));
+ hddLog(LOG1, FL("making default scan to active"));
pHddCtx->ioctl_scan_mode = eSIR_ACTIVE_SCAN;
ret = snprintf(cmd, cmd_len, "OK");
}
else if (strcasecmp(cmd, "scan-passive") == 0)
{
hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
- hddLog(VOS_TRACE_LEVEL_ERROR,
- FL("making default scan to active"));
+ hddLog(LOG1, FL("making default scan to active"));
pHddCtx->ioctl_scan_mode = eSIR_PASSIVE_SCAN;
ret = snprintf(cmd, cmd_len, "OK");
}
diff --git a/CORE/SME/src/pmc/pmc.c b/CORE/SME/src/pmc/pmc.c
index a3d7d37f588a..6a0ae87af7ca 100644
--- a/CORE/SME/src/pmc/pmc.c
+++ b/CORE/SME/src/pmc/pmc.c
@@ -654,7 +654,7 @@ tANI_BOOLEAN pmcPowerSaveCheck (tHalHandle hHal)
{
if (!checkRoutine(pPowerSaveCheckEntry->checkContext))
{
- pmcLog(pMac, LOGE, FL("pmcPowerSaveCheck fail!"));
+ pmcLog(pMac, LOG1, FL("pmcPowerSaveCheck fail!"));
bResult = FALSE;
break;
}
@@ -1029,8 +1029,12 @@ void pmcTrafficTimerExpired (tHalHandle hHal)
}
else
{
- /*Some module voted against Power Save. So timer should be restarted again to retry BMPS */
- pmcLog(pMac, LOGE, FL("Power Save check failed. Retry BMPS again later"));
+ /*
+ * Some module voted against Power Save.
+ * So timer should be restarted again to retry BMPS
+ */
+ pmcLog(pMac, LOGW,
+ FL("Power Save check failed. Retry BMPS again later"));
//Since hTrafficTimer is a vos_timer now, we need to restart the timer here
vosStatus = vos_timer_start(&pMac->pmc.hTrafficTimer, pMac->pmc.bmpsConfig.trafficMeasurePeriod);
if ( !VOS_IS_STATUS_SUCCESS(vosStatus) && (VOS_STATUS_E_ALREADY != vosStatus) )
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index 2f98fcef663a..7d09491c5600 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -1207,11 +1207,13 @@ VOS_STATUS vos_nv_getRegDomainFromCountryCode( v_REGDOMAIN_t *pRegDomain,
if (REGDOMAIN_COUNT == temp_reg_domain) {
- /* the country was not found in the driver database */
- /* so we will return the REGDOMAIN_WORLD to SME/CSR */
-
- VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR,
- ("Country does not map to any Regulatory domain"));
+ /*
+ * The country was not found in the driver database
+ * so we will return the REGDOMAIN_WORLD to SME/CSR
+ */
+ VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_INFO,
+ ("Country %c%c does not map to any Regulatory domain"),
+ country_code[0], country_code[1]);
temp_reg_domain = REGDOMAIN_WORLD;
}
diff --git a/CORE/VOSS/src/vos_sched.c b/CORE/VOSS/src/vos_sched.c
index 0a85919d9e0e..a15a6acba23b 100644
--- a/CORE/VOSS/src/vos_sched.c
+++ b/CORE/VOSS/src/vos_sched.c
@@ -1125,6 +1125,16 @@ VosWDThread
clear_bit(WD_POST_EVENT_MASK, &pWdContext->wdEventFlag);
while(1)
{
+ /* Post Msg to detect thread stuck */
+ if (test_and_clear_bit(WD_WLAN_DETECT_THREAD_STUCK_MASK,
+ &pWdContext->wdEventFlag)) {
+ vos_wd_detect_thread_stuck();
+ /*
+ * Process here and return without processing any SSR
+ * related logic.
+ */
+ break;
+ }
/* Check for any Active Entry Points
* If active, delay SSR until no entry point is active or
* delay until count is decremented to ZERO
@@ -1208,11 +1218,6 @@ VosWDThread
}
pWdContext->resetInProgress = false;
}
- /* Post Msg to detect thread stuck */
- else if (test_and_clear_bit(WD_WLAN_DETECT_THREAD_STUCK_MASK,
- &pWdContext->wdEventFlag)) {
- vos_wd_detect_thread_stuck();
- }
else
{
//Unnecessary wakeup - Should never happen!!