From 96d9ff00ab2ea9d2bc1dcb3974011f2e90754e87 Mon Sep 17 00:00:00 2001 From: cmuhammedrafi Date: Fri, 30 Aug 2024 14:31:34 +0530 Subject: [PATCH] wifi chache value changes --- NetworkManagerRDKProxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkManagerRDKProxy.cpp b/NetworkManagerRDKProxy.cpp index aa563802..3e305e7e 100644 --- a/NetworkManagerRDKProxy.cpp +++ b/NetworkManagerRDKProxy.cpp @@ -365,7 +365,7 @@ namespace WPEFramework const float signalStrengthThresholdFair = -67.0f; NetworkManagerImplementation* _instance = nullptr; - Cache WiFiStateCache; + Cache WiFiStateCache = Exchange::INetworkManager::WIFI_STATE_DISCONNECTED; Cache ipv4Cache; Cache ipv6Cache; Cache activeIfaceCache; @@ -534,7 +534,7 @@ namespace WPEFramework Exchange::INetworkManager::WiFiState state = errorcode_to_wifi_state(e->data.wifiError.code); NMLOG_INFO("Event IARM_BUS_WIFI_MGR_EVENT_onError received; code=%d", e->data.wifiError.code); ::_instance->ReportWiFiStateChangedEvent(state); - WiFiStateCache.reset(); + WiFiStateCache = state; break; } default: