3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

device: Add device_get_wiphy()

This commit is contained in:
Denis Kenzior 2016-05-16 12:26:00 -05:00
parent 68a79b23fb
commit 66610f1248
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@
struct netdev;
struct scan_bss;
struct wiphy;
typedef void (*device_watch_func_t)(struct netdev *device, void *userdata);
typedef void (*device_destroy_func_t)(void *userdata);
@ -39,6 +40,7 @@ void __device_watch_call_removed(struct netdev *device);
struct network *device_get_connected_network(struct netdev *device);
const char *device_get_path(struct netdev *device);
bool device_is_busy(struct netdev *device);
struct wiphy *device_get_wiphy(struct netdev *device);
void device_connect_network(struct netdev *device, struct network *network,
struct scan_bss *bss,

View File

@ -193,6 +193,11 @@ bool device_is_busy(struct netdev *device)
return false;
}
struct wiphy *device_get_wiphy(struct netdev *device)
{
return device->wiphy;
}
static void netdev_enter_state(struct netdev *netdev, enum device_state state)
{
l_debug("Old State: %s, new state: %s",