Connecting popup issue when previous profile closed 39/137739/1
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Fri, 7 Jul 2017 09:56:53 +0000 (15:26 +0530)
committerAbhishek Sansanwal <abhishek.s94@samsung.com>
Fri, 7 Jul 2017 10:03:01 +0000 (15:33 +0530)
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 <abhishek.s94@samsung.com>
Change-Id: I7a4b6a936f6d013c31f858f464b7b176e5359194

src/layout/layout_network.c

index 170a06b075ab2293739e1cf2142193b5b66c6dbd..45c9c25ce44a84e2e175764d2003ee3c56ac4cf0 100644 (file)
@@ -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);