qcacld-3.0: Reduce the info level logs in STA/SAP
qcacld-2.0 to qcacld-3.0 propagation
Reduce the info level logs in STA/SAP
Change-Id: I5918ea8e9dd2f7654e5a994ad366f92d2ca3cd77
CRs-Fixed: 988195
diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c
index ded6f9b..9ac7f00 100644
--- a/core/hdd/src/wlan_hdd_ioctl.c
+++ b/core/hdd/src/wlan_hdd_ioctl.c
@@ -1856,10 +1856,8 @@
int rc;
rc = wlan_hdd_validate_context(hdd_ctx);
- if (0 != rc) {
- hdd_err("HDD context is not valid");
+ if (rc)
return;
- }
hdd_ctx->ext_wow_should_suspend = is_success;
complete(&hdd_ctx->ready_to_extwow);
}
@@ -1930,10 +1928,8 @@
int rc;
rc = wlan_hdd_validate_context(hdd_ctx);
- if (0 != rc) {
- hdd_err("HDD context is not valid");
- return -EINVAL;
- }
+ if (rc)
+ return rc;
if (value < EXT_WOW_TYPE_APP_TYPE1 ||
value > EXT_WOW_TYPE_APP_TYPE1_2) {
@@ -1993,10 +1989,8 @@
int rc;
rc = wlan_hdd_validate_context(hdd_ctx);
- if (0 != rc) {
- hdd_err("HDD context is not valid");
- return -EINVAL;
- }
+ if (rc)
+ return rc;
if (2 != sscanf(arg, "%8s %16s", id, password)) {
hdd_err("Invalid Number of arguments");
@@ -2049,10 +2043,8 @@
int ret;
ret = wlan_hdd_validate_context(hdd_ctx);
- if (0 != ret) {
- hdd_err("HDD context is not valid");
- return -EINVAL;
- }
+ if (ret)
+ return ret;
memset(¶ms, 0, sizeof(tSirAppType2Params));
@@ -4682,10 +4674,8 @@
uint8_t *value;
pHddCtx = WLAN_HDD_GET_CTX(adapter);
- if (0 != wlan_hdd_validate_context(pHddCtx)) {
- hdd_err("pHddCtx is not valid, Unable to set miracast mode");
+ if (wlan_hdd_validate_context(pHddCtx))
return -EINVAL;
- }
hHal = pHddCtx->hHal;
value = command + 9;