Use the last updated MAC address before turning on wifi
[platform/upstream/connman.git] / src / inet.c
index 4814546..e0ef7db 100644 (file)
@@ -451,15 +451,8 @@ void connman_inet_update_device_ident(struct connman_device *device)
        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);