const char *ident)
{
#ifdef TIZEN_EXT
- if (device->ident)
+ if (device->ident && device->powered)
return;
else
#endif
if (g_str_equal(key, "Address")) {
#ifdef TIZEN_EXT
- if (device->address)
+ if (device->address && device->powered)
return 0;
else
#endif
case CONNMAN_DEVICE_TYPE_ETHERNET:
case CONNMAN_DEVICE_TYPE_GADGET:
case CONNMAN_DEVICE_TYPE_WIFI:
-#if defined TIZEN_EXT
- if (type == CONNMAN_DEVICE_TYPE_WIFI)
- name = _get_wifi_ident();
- if (!name)
-#endif
name = index2ident(index, "");
-#if defined TIZEN_EXT
- if (type == CONNMAN_DEVICE_TYPE_WIFI)
- addr = _get_wifi_addr();
- if (!addr)
-#endif
addr = index2addr(index);
break;
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
ident = index2ident(index, NULL);
break;
case CONNMAN_DEVICE_TYPE_WIFI:
-#if defined TIZEN_EXT
- ident = _get_wifi_ident();
- if (!ident)
-#endif
ident = index2ident(index, NULL);
break;
case CONNMAN_DEVICE_TYPE_BLUETOOTH:
case CONNMAN_DEVICE_TYPE_ETHERNET:
case CONNMAN_DEVICE_TYPE_GADGET:
case CONNMAN_DEVICE_TYPE_WIFI:
- if (type == CONNMAN_DEVICE_TYPE_WIFI)
- addr = _get_wifi_addr();
- if (!addr)
- addr = index2addr(index);
-
- if (type == CONNMAN_DEVICE_TYPE_WIFI)
- ident = _get_wifi_ident();
- if (!ident)
- ident = index2ident(index, NULL);
+ addr = index2addr(index);
+ ident = index2ident(index, NULL);
break;
case CONNMAN_DEVICE_TYPE_CELLULAR:
ident = index2ident(index, NULL);