From 6f23ee81c621a063ea92af3cda1cd1c9e23585c7 Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Fri, 7 Jul 2017 15:26:53 +0530 Subject: [PATCH] Connecting popup issue when previous profile closed Description: Get fresh ethernet profile before checking wired network status. It causes issue when trying to get profile state using old profile which has been closed. Due to this connecting popup appeared continuously. Signed-off-by: Abhishek Sansanwal Change-Id: I7a4b6a936f6d013c31f858f464b7b176e5359194 --- src/layout/layout_network.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/layout/layout_network.c b/src/layout/layout_network.c index 170a06b..45c9c25 100644 --- a/src/layout/layout_network.c +++ b/src/layout/layout_network.c @@ -768,6 +768,10 @@ void _popup_no_network_cable_status(struct _priv *priv) static void _update_wired_network_status(struct _priv *priv) { + if (!get_ethernet_profile(priv->wired)) { + _ERR("Failed to get ethernet profile !!"); + } + int res = get_wired_network_status(priv->wired); SETTING_TRACE("Wired network status updated [%d]", res); -- 2.7.4