mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
wiphy: Move netdev_state enum
This commit is contained in:
parent
08decb340e
commit
0e3495488f
@ -29,14 +29,6 @@ typedef void (*netdev_destroy_func_t)(void *userdata);
|
|||||||
|
|
||||||
typedef void (*netdev_command_func_t) (bool result, void *user_data);
|
typedef void (*netdev_command_func_t) (bool result, void *user_data);
|
||||||
|
|
||||||
enum netdev_state {
|
|
||||||
NETDEV_STATE_DISCONNECTED = 0, /* Disconnected, no auto-connect */
|
|
||||||
NETDEV_STATE_AUTOCONNECT, /* Disconnected, try auto-connect */
|
|
||||||
NETDEV_STATE_CONNECTING, /* Connecting */
|
|
||||||
NETDEV_STATE_CONNECTED,
|
|
||||||
NETDEV_STATE_DISCONNECTING,
|
|
||||||
};
|
|
||||||
|
|
||||||
void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
||||||
uint8_t linkmode, uint8_t operstate,
|
uint8_t linkmode, uint8_t operstate,
|
||||||
netdev_command_func_t cb, void *user_data);
|
netdev_command_func_t cb, void *user_data);
|
||||||
|
@ -64,6 +64,14 @@ struct network {
|
|||||||
bool ask_psk:1; /* Whether we should force-ask agent for PSK */
|
bool ask_psk:1; /* Whether we should force-ask agent for PSK */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum netdev_state {
|
||||||
|
NETDEV_STATE_DISCONNECTED = 0, /* Disconnected, no auto-connect */
|
||||||
|
NETDEV_STATE_AUTOCONNECT, /* Disconnected, try auto-connect */
|
||||||
|
NETDEV_STATE_CONNECTING, /* Connecting */
|
||||||
|
NETDEV_STATE_CONNECTED,
|
||||||
|
NETDEV_STATE_DISCONNECTING,
|
||||||
|
};
|
||||||
|
|
||||||
struct netdev {
|
struct netdev {
|
||||||
uint32_t index;
|
uint32_t index;
|
||||||
char name[IFNAMSIZ];
|
char name[IFNAMSIZ];
|
||||||
|
Loading…
Reference in New Issue
Block a user