/* 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 */
}
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;
}