device: Move device_get_address out of wiphy.c
This commit is contained in:
parent
c18cf173c3
commit
b2d8616ca4
|
@ -150,6 +150,11 @@ uint32_t device_get_ifindex(struct device *device)
|
||||||
return device->index;
|
return device->index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const uint8_t *device_get_address(struct device *device)
|
||||||
|
{
|
||||||
|
return netdev_get_address(device->netdev);
|
||||||
|
}
|
||||||
|
|
||||||
void device_disassociated(struct device *device)
|
void device_disassociated(struct device *device)
|
||||||
{
|
{
|
||||||
struct network *network = device->connected_network;
|
struct network *network = device->connected_network;
|
||||||
|
|
|
@ -207,11 +207,6 @@ static void network_free(void *data)
|
||||||
network_remove(network, -ESHUTDOWN);
|
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)
|
void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data)
|
||||||
{
|
{
|
||||||
const struct l_queue_entry *device_entry;
|
const struct l_queue_entry *device_entry;
|
||||||
|
|
Loading…
Reference in New Issue