DBG("device %p", device);
type = __connman_device_get_service_type(device);
- __connman_notifier_register(type);
technology = technology_get(type);
if (technology == NULL)
DBG("device %p", device);
type = __connman_device_get_service_type(device);
- __connman_notifier_unregister(type);
technology = technology_find(type);
if (technology == NULL)
return -ENXIO;
if (__sync_fetch_and_add(&technology->enabled, 1) == 0) {
- __connman_notifier_enable(type);
technology->state = CONNMAN_TECHNOLOGY_STATE_ENABLED;
state_changed(technology);
powered_changed(technology);
if (__sync_fetch_and_sub(&technology->enabled, 1) != 1)
return 0;
- __connman_notifier_disable(type);
technology->state = CONNMAN_TECHNOLOGY_STATE_OFFLINE;
state_changed(technology);
powered_changed(technology);
if (rfkill == NULL)
return -ENOMEM;
- __connman_notifier_register(type);
-
rfkill->index = index;
rfkill->type = type;
rfkill->softblock = softblock;