diff options
Diffstat (limited to 'src/inet.c')
-rw-r--r-- | src/inet.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -451,8 +451,15 @@ 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: - addr = index2addr(index); - ident = index2ident(index, NULL); + 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); break; case CONNMAN_DEVICE_TYPE_CELLULAR: ident = index2ident(index, NULL); |