mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +01:00
device: add device_get_netdev
This commit is contained in:
parent
959ebd505b
commit
a3fdb88a9a
@ -406,6 +406,11 @@ struct wiphy *device_get_wiphy(struct device *device)
|
|||||||
return device->wiphy;
|
return device->wiphy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct netdev *device_get_netdev(struct device *device)
|
||||||
|
{
|
||||||
|
return device->netdev;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t device_get_ifindex(struct device *device)
|
uint32_t device_get_ifindex(struct device *device)
|
||||||
{
|
{
|
||||||
return device->index;
|
return device->index;
|
||||||
|
@ -55,6 +55,7 @@ struct network *device_get_connected_network(struct device *device);
|
|||||||
const char *device_get_path(struct device *device);
|
const char *device_get_path(struct device *device);
|
||||||
bool device_is_busy(struct device *device);
|
bool device_is_busy(struct device *device);
|
||||||
struct wiphy *device_get_wiphy(struct device *device);
|
struct wiphy *device_get_wiphy(struct device *device);
|
||||||
|
struct netdev *device_get_netdev(struct device *device);
|
||||||
uint32_t device_get_ifindex(struct device *device);
|
uint32_t device_get_ifindex(struct device *device);
|
||||||
const uint8_t *device_get_address(struct device *device);
|
const uint8_t *device_get_address(struct device *device);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user