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
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);