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_ifindex out of wiphy.c

This commit is contained in:
Denis Kenzior 2016-06-14 12:10:44 -05:00
parent 74c8af9180
commit c18cf173c3
2 changed files with 5 additions and 5 deletions

View File

@ -145,6 +145,11 @@ struct wiphy *device_get_wiphy(struct device *device)
return device->wiphy; return device->wiphy;
} }
uint32_t device_get_ifindex(struct device *device)
{
return device->index;
}
void device_disassociated(struct device *device) void device_disassociated(struct device *device)
{ {
struct network *network = device->connected_network; struct network *network = device->connected_network;

View File

@ -212,11 +212,6 @@ const uint8_t *device_get_address(struct device *device)
return netdev_get_address(device->netdev); return netdev_get_address(device->netdev);
} }
uint32_t device_get_ifindex(struct device *device)
{
return device->index;
}
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;