wlan: correction to logs messages
Log messages getting printed for both error and
working scenario. Hence adding if checks
Change-Id: I6bd95d1522363511a6fa20e5548468b7e06766e6
CRs-Fixed: 471433
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index 6bd9a61..aac265b 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -1368,7 +1368,10 @@
limLog(pMac, LOGP,
FL("unable to deactivate Heartbeat timer"));
}
- limLog(pMac, LOGW, FL("Deactivated heartbeat link monitoring"));
+ else
+ {
+ limLog(pMac, LOGW, FL("Deactivated heartbeat link monitoring"));
+ }
if (wlan_cfgGetInt(pMac, WNI_CFG_BEACON_INTERVAL,
&val) != eSIR_SUCCESS)
@@ -1397,7 +1400,10 @@
limLog(pMac, LOGP,
FL("unable to change HeartBeat timer"));
}
- limLog(pMac, LOGW, FL("HeartBeat timer value is changed = %lu"), val);
+ else
+ {
+ limLog(pMac, LOGW, FL("HeartBeat timer value is changed = %lu"), val);
+ }
break;
case eLIM_PROBE_AFTER_HB_TIMER:
@@ -1409,7 +1415,10 @@
limLog(pMac, LOGP,
FL("unable to deactivate probeAfterHBTimer"));
}
- limLog(pMac, LOGE, FL("Deactivated probe after hb timer"));
+ else
+ {
+ limLog(pMac, LOGE, FL("Deactivated probe after hb timer"));
+ }
if (wlan_cfgGetInt(pMac, WNI_CFG_PROBE_AFTER_HB_FAIL_TIMEOUT,
&val) != eSIR_SUCCESS)
@@ -1433,7 +1442,10 @@
limLog(pMac, LOGP,
FL("unable to change ProbeAfterHBTimer"));
}
- limLog(pMac, LOGW, FL("Probe after HB timer value is changed = %lu"), val);
+ else
+ {
+ limLog(pMac, LOGW, FL("Probe after HB timer value is changed = %lu"), val);
+ }
break;