Skip to content

Commit

Permalink
wifi chache value changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuhammedrafi committed Aug 30, 2024
1 parent 1d06c6f commit 96d9ff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NetworkManagerRDKProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ namespace WPEFramework
const float signalStrengthThresholdFair = -67.0f;
NetworkManagerImplementation* _instance = nullptr;

Cache<Exchange::INetworkManager::WiFiState> WiFiStateCache;
Cache<Exchange::INetworkManager::WiFiState> WiFiStateCache = Exchange::INetworkManager::WIFI_STATE_DISCONNECTED;
Cache<Exchange::INetworkManager::IPAddressInfo> ipv4Cache;
Cache<Exchange::INetworkManager::IPAddressInfo> ipv6Cache;
Cache<std::string> activeIfaceCache;
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 96d9ff0

Please sign in to comment.