From e48007d55eca93c3675c0d6d92d611ef14c3dc65 Mon Sep 17 00:00:00 2001 From: nivetha1766 Date: Thu, 28 Aug 2025 15:55:49 +0530 Subject: [PATCH 1/2] RDKEMW-7549 : Increase in SYST_WARN_WiFiNotConn marker Reason for change: Skip printing TELEMETRY_WIFI_NOT_CONNECTED for the first time. This reduces false alarm in case of deepsleep resume. Test Procedure: Flash the image and check the presence of SYST_WARN_WiFiNotConn marker after deepsleep resume Risks: Low Priority: P1 Signed-off-by: Nivetha J --- lib/rdk/networkConnectionRecovery.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/rdk/networkConnectionRecovery.sh b/lib/rdk/networkConnectionRecovery.sh index 91a7c96d..4eb0f7f7 100755 --- a/lib/rdk/networkConnectionRecovery.sh +++ b/lib/rdk/networkConnectionRecovery.sh @@ -71,6 +71,7 @@ StoreTotmpFile() echo "IsWifiReset=$IsWifiReset" ; echo "WifiResetTime=$WifiResetTime" ; echo "dnsFailures=$dnsFailures" ; + echo "count=$count" ; } >> "$tmpFile" } @@ -88,6 +89,7 @@ if [ ! -f "$tmpFile" ] ; then IsWifiReset=0 WifiResetTime=0 dnsFailures=0 + count=0 { echo "EthernetLogTimeStamp=$EthernetLogTimeStamp" ; echo "WifiLogTimeStamp=$WifiLogTimeStamp" ; echo "GatewayLogTimeStamp=$GatewayLogTimeStamp" ; @@ -98,6 +100,7 @@ if [ ! -f "$tmpFile" ] ; then echo "IsWifiReset=$IsWifiReset" ; echo "WifiResetTime=$WifiResetTime" ; echo "dnsFailures=$dnsFailures" ; + echo "count=$count" ; } >> "$tmpFile" else @@ -111,6 +114,7 @@ else IsWifiReset=$(grep "IsWifiReset" $tmpFile|awk -F "=" '{print $2}') WifiResetTime=$(grep "WifiResetTime" $tmpFile|awk -F "=" '{print $2}') dnsFailures=$(grep "dnsFailures" $tmpFile|awk -F "=" '{print $2}') + count=$(grep "count" $tmpFile|awk -F "=" '{print $2}') fi } @@ -134,18 +138,26 @@ checkEthernetConnected() if [ $ret -eq 0 ] ; then if [ "$lnfSSIDConnected" = "1" ]; then echo "$(/bin/timestamp) TELEMETRY_WIFI_CONNECTED_LNF" >> "$logsFile" + #Reset count when lnf ssid is connected + count=0 t2CountNotify "SYST_INFO_WIFIConn" else - echo "$(/bin/timestamp) TELEMETRY_WIFI_NOT_CONNECTED" >> "$logsFile" + #Skip printing wifi not connected log for the first time + [ $count -gt 0 ] && echo "$(/bin/timestamp) TELEMETRY_WIFI_NOT_CONNECTED" >> "$logsFile" + count=$((count + 1)) fi return 0 else echo "$(/bin/timestamp) TELEMETRY_WIFI_CONNECTED" >> "$logsFile" + #Reset count when connectivity is good + count=0 t2CountNotify "SYST_INFO_WIFIConn" return 0 fi else echo "$(/bin/timestamp) TELEMETRY_ETHERNET_CONNECTED" >> "$logsFile" + #Reset count when connectivity is good + count=0 t2CountNotify "SYST_INFO_ETHConn" return 1 fi From a4e1dc138c63c8db11a15850a665a6c6ad738cb3 Mon Sep 17 00:00:00 2001 From: nivetha1766 Date: Fri, 12 Sep 2025 10:09:32 +0530 Subject: [PATCH 2/2] Update networkConnectionRecovery.sh --- lib/rdk/networkConnectionRecovery.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/rdk/networkConnectionRecovery.sh b/lib/rdk/networkConnectionRecovery.sh index 4eb0f7f7..8dbf9192 100755 --- a/lib/rdk/networkConnectionRecovery.sh +++ b/lib/rdk/networkConnectionRecovery.sh @@ -71,7 +71,7 @@ StoreTotmpFile() echo "IsWifiReset=$IsWifiReset" ; echo "WifiResetTime=$WifiResetTime" ; echo "dnsFailures=$dnsFailures" ; - echo "count=$count" ; + echo "count=$count" ; } >> "$tmpFile" } @@ -100,7 +100,7 @@ if [ ! -f "$tmpFile" ] ; then echo "IsWifiReset=$IsWifiReset" ; echo "WifiResetTime=$WifiResetTime" ; echo "dnsFailures=$dnsFailures" ; - echo "count=$count" ; + echo "count=$count" ; } >> "$tmpFile" else @@ -138,7 +138,7 @@ checkEthernetConnected() if [ $ret -eq 0 ] ; then if [ "$lnfSSIDConnected" = "1" ]; then echo "$(/bin/timestamp) TELEMETRY_WIFI_CONNECTED_LNF" >> "$logsFile" - #Reset count when lnf ssid is connected + #Reset count when lnf ssid is connected count=0 t2CountNotify "SYST_INFO_WIFIConn" else @@ -149,14 +149,14 @@ checkEthernetConnected() return 0 else echo "$(/bin/timestamp) TELEMETRY_WIFI_CONNECTED" >> "$logsFile" - #Reset count when connectivity is good + #Reset count when connectivity is good count=0 t2CountNotify "SYST_INFO_WIFIConn" return 0 fi else echo "$(/bin/timestamp) TELEMETRY_ETHERNET_CONNECTED" >> "$logsFile" - #Reset count when connectivity is good + #Reset count when connectivity is good count=0 t2CountNotify "SYST_INFO_ETHConn" return 1