mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
device: Add device_get_connected_network()
This commit is contained in:
parent
08d72cd213
commit
23fe106cc5
@ -35,5 +35,7 @@ bool device_watch_remove(uint32_t id);
|
|||||||
void __device_watch_call_added(struct netdev *device);
|
void __device_watch_call_added(struct netdev *device);
|
||||||
void __device_watch_call_removed(struct netdev *device);
|
void __device_watch_call_removed(struct netdev *device);
|
||||||
|
|
||||||
|
struct network *device_get_connected_network(struct netdev *device);
|
||||||
|
|
||||||
bool device_init(void);
|
bool device_init(void);
|
||||||
bool device_exit(void);
|
bool device_exit(void);
|
||||||
|
@ -194,6 +194,11 @@ const uint8_t *netdev_get_address(struct netdev *netdev)
|
|||||||
return netdev->addr;
|
return netdev->addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct network *device_get_connected_network(struct netdev *device)
|
||||||
|
{
|
||||||
|
return device->connected_network;
|
||||||
|
}
|
||||||
|
|
||||||
static void netdev_enter_state(struct netdev *netdev, enum device_state state)
|
static void netdev_enter_state(struct netdev *netdev, enum device_state state)
|
||||||
{
|
{
|
||||||
l_debug("Old State: %s, new state: %s",
|
l_debug("Old State: %s, new state: %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user