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);