mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
device: Add device_get_state
This commit is contained in:
parent
1585ccc897
commit
ecacdd88e4
@ -432,6 +432,11 @@ const uint8_t *device_get_address(struct device *device)
|
|||||||
return netdev_get_address(device->netdev);
|
return netdev_get_address(device->netdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum device_state device_get_state(struct device *device)
|
||||||
|
{
|
||||||
|
return device->state;
|
||||||
|
}
|
||||||
|
|
||||||
static void periodic_scan_trigger(int err, void *user_data)
|
static void periodic_scan_trigger(int err, void *user_data)
|
||||||
{
|
{
|
||||||
struct device *device = user_data;
|
struct device *device = user_data;
|
||||||
|
@ -59,6 +59,7 @@ struct wiphy *device_get_wiphy(struct device *device);
|
|||||||
struct netdev *device_get_netdev(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);
|
||||||
|
enum device_state device_get_state(struct device *device);
|
||||||
|
|
||||||
uint32_t device_add_state_watch(struct device *device,
|
uint32_t device_add_state_watch(struct device *device,
|
||||||
device_state_watch_func_t func,
|
device_state_watch_func_t func,
|
||||||
|
Loading…
Reference in New Issue
Block a user