From ed5890990d4cd229a59fe442dcd5da31983682cc 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetworkManagerRDKProxy.cpp b/NetworkManagerRDKProxy.cpp index aa563802..51a2324c 100644 --- a/NetworkManagerRDKProxy.cpp +++ b/NetworkManagerRDKProxy.cpp @@ -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: @@ -594,6 +594,7 @@ namespace WPEFramework char c; ::_instance = this; + WiFiStateCache = Exchange::INetworkManager::WIFI_STATE_DISCONNECTED; IARM_Result_t res = IARM_Bus_Init("netsrvmgr-thunder"); NMLOG_INFO("IARM_Bus_Init: %d", res);