mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 20:12:37 +01:00
device: Add device_get_wiphy()
This commit is contained in:
parent
68a79b23fb
commit
66610f1248
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
struct netdev;
|
struct netdev;
|
||||||
struct scan_bss;
|
struct scan_bss;
|
||||||
|
struct wiphy;
|
||||||
|
|
||||||
typedef void (*device_watch_func_t)(struct netdev *device, void *userdata);
|
typedef void (*device_watch_func_t)(struct netdev *device, void *userdata);
|
||||||
typedef void (*device_destroy_func_t)(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);
|
struct network *device_get_connected_network(struct netdev *device);
|
||||||
const char *device_get_path(struct netdev *device);
|
const char *device_get_path(struct netdev *device);
|
||||||
bool device_is_busy(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,
|
void device_connect_network(struct netdev *device, struct network *network,
|
||||||
struct scan_bss *bss,
|
struct scan_bss *bss,
|
||||||
|
@ -193,6 +193,11 @@ bool device_is_busy(struct netdev *device)
|
|||||||
return false;
|
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)
|
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