Net-config is implemented assuming that the DeviceChanged signal comes before the service PropertyChanged signal.
Therefore, the event order has been adjusted accordingly.
Change-Id: I134ec7152a0e40bbfe317c704a91ca81fc01dc1c
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
searchdomain_remove_all(service);
service->state = new_state;
searchdomain_remove_all(service);
service->state = new_state;
+#if defined TIZEN_EXT
+ if (!is_connected(old_state) && is_connected(new_state))
+ connman_device_send_connected_signal(
+ connman_network_get_device(service->network), true);
+ else if (is_connected(old_state) && !is_connected(new_state))
+ connman_device_send_connected_signal(
+ connman_network_get_device(service->network), false);
+#endif
state_changed(service);
if (!is_connected(old_state) && is_connected(new_state))
state_changed(service);
if (!is_connected(old_state) && is_connected(new_state))
#if defined TIZEN_EXT
if (service->type == CONNMAN_SERVICE_TYPE_WIFI)
set_priority_connected_service();
#if defined TIZEN_EXT
if (service->type == CONNMAN_SERVICE_TYPE_WIFI)
set_priority_connected_service();
-
- if (!is_connected(old_state))
- connman_device_send_connected_signal(
- connman_network_get_device(service->network), true);
(old_state == CONNMAN_SERVICE_STATE_READY &&
new_state != CONNMAN_SERVICE_STATE_ONLINE)) {
__connman_notifier_disconnect(service->type);
(old_state == CONNMAN_SERVICE_STATE_READY &&
new_state != CONNMAN_SERVICE_STATE_ONLINE)) {
__connman_notifier_disconnect(service->type);
-#if defined TIZEN_EXT
- connman_device_send_connected_signal(
- connman_network_get_device(service->network), false);
-#endif
}
if (new_state == CONNMAN_SERVICE_STATE_ONLINE) {
}
if (new_state == CONNMAN_SERVICE_STATE_ONLINE) {