3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

device: Move device_get_address out of wiphy.c

This commit is contained in:
Denis Kenzior 2016-06-14 12:11:16 -05:00
parent c18cf173c3
commit b2d8616ca4
2 changed files with 5 additions and 5 deletions

View File

@ -150,6 +150,11 @@ uint32_t device_get_ifindex(struct device *device)
return device->index;
}
const uint8_t *device_get_address(struct device *device)
{
return netdev_get_address(device->netdev);
}
void device_disassociated(struct device *device)
{
struct network *network = device->connected_network;

View File

@ -207,11 +207,6 @@ static void network_free(void *data)
network_remove(network, -ESHUTDOWN);
}
const uint8_t *device_get_address(struct device *device)
{
return netdev_get_address(device->netdev);
}
void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data)
{
const struct l_queue_entry *device_entry;