mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
device: Move device_get_ifindex out of wiphy.c
This commit is contained in:
parent
74c8af9180
commit
c18cf173c3
@ -145,6 +145,11 @@ struct wiphy *device_get_wiphy(struct device *device)
|
||||
return device->wiphy;
|
||||
}
|
||||
|
||||
uint32_t device_get_ifindex(struct device *device)
|
||||
{
|
||||
return device->index;
|
||||
}
|
||||
|
||||
void device_disassociated(struct device *device)
|
||||
{
|
||||
struct network *network = device->connected_network;
|
||||
|
@ -212,11 +212,6 @@ const uint8_t *device_get_address(struct device *device)
|
||||
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)
|
||||
{
|
||||
const struct l_queue_entry *device_entry;
|
||||
|
Loading…
Reference in New Issue
Block a user