qcacld-3.0: wlan: Cleanup North-Bound load/unload logs
qcacld-2.0 to qcacld-3.0 propagation
If IOCTLs or CFG callbacks are issued continuously during driver
load/unload or during SSR, observing stability issues because of
excessive logging.
Hence move log level to INFO from ERROR in wlan_hdd_validate_context
function and don't print return status in its caller functions.
Change-Id: I8fd9b25e0c774e1e12b01128eb86783c9dec2ab7
CRs-Fixed: 800631
diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c
index b587d60..1b73597 100644
--- a/core/hdd/src/wlan_hdd_scan.c
+++ b/core/hdd/src/wlan_hdd_scan.c
@@ -723,9 +723,6 @@
if (0 != ret)
return ret;
- CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_INFO, "%s: enter !!!",
- __func__);
-
/* Block All Scan during DFS operation and send null scan result */
con_sap_adapter = hdd_get_con_sap_adapter(pAdapter, true);
if (con_sap_adapter) {
@@ -850,8 +847,6 @@
if ((wrqu->data.flags & IW_SCAN_THIS_ESSID) && (scanReq->essid_len))
cdf_mem_free(scanRequest.SSIDs.SSIDList);
EXIT();
- CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_INFO, "%s: exit !!!",
- __func__);
return status;
}
@@ -950,9 +945,9 @@
sme_scan_result_purge(hHal, pResult);
- EXIT();
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_INFO,
"%s: exit total %d BSS reported !!!", __func__, i);
+ EXIT();
return status;
}
@@ -1266,10 +1261,8 @@
status = wlan_hdd_validate_context(pHddCtx);
- if (0 != status) {
- hddLog(LOGE, FL("HDD context is not valid"));
+ if (0 != status)
return status;
- }
cfg_param = pHddCtx->config;
pScanInfo = &pAdapter->scan_info;
@@ -2043,6 +2036,8 @@
struct hdd_config *config = NULL;
uint32_t num_ignore_dfs_ch = 0;
+ ENTER();
+
if (CDF_FTM_MODE == hdd_get_conparam()) {
hddLog(LOGE, FL("Command not allowed in FTM mode"));
return -EINVAL;
@@ -2051,10 +2046,8 @@
pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
ret = wlan_hdd_validate_context(pHddCtx);
- if (0 != ret) {
- hddLog(LOGE, FL("HDD context is not valid"));
+ if (0 != ret)
return ret;
- }
config = pHddCtx->config;
hHal = WLAN_HDD_GET_HAL_CTX(pAdapter);
@@ -2294,6 +2287,7 @@
error:
cdf_mem_free(pPnoRequest);
+ EXIT();
return ret;
}