wmesh-manager: Add support to get softAP station info
[platform/core/connectivity/wifi-mesh-manager.git] / src / wmesh-peer-monitor.c
index a95b399..6949eb5 100644 (file)
@@ -85,7 +85,7 @@ static int _get_station_info(void *pdata)
                /* Found this in th existing station infomation list. */
                if (item->inactive_time > item->beacon_interval * MESH_MAXIMUM_BEACON_LOST_COUNT) {
                        /* Remove this node from station list in kernel */
-                       wmesh_netlink_del_station_info(info->mesh_interface, item->bssid);
+                       wmesh_gdbus_mesh_remove_peer(service, item->bssid);
                        /* Remove current linked list */
                        sta_list = g_list_remove(iter, item);
                        /* Send existing node disjoined */
@@ -259,5 +259,10 @@ int wmesh_stop_monitor_service(void *pdata)
        }
 
        WMESH_LOGD("Peer Monitoring Service Stopped");
+
+       /* After mesh interface is removed then ethernet is disabled when ethernet
+        * interface is bridged, so try to enable ethernet again */
+       WMESH_LOGD("Enable ethernet interface");
+       wmesh_gdbus_enable_ethernet_interface(service, true);
        return ret;
 }