mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 09:29:22 +01:00
netdev: Move NETDEV_STATE enum to netdev.h
This commit is contained in:
parent
50cc76e227
commit
907b7d1e07
@ -24,6 +24,14 @@
|
||||
|
||||
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,
|
||||
uint8_t linkmode, uint8_t operstate,
|
||||
netdev_command_func_t cb, void *user_data);
|
||||
|
@ -65,14 +65,6 @@ struct network {
|
||||
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 {
|
||||
uint32_t index;
|
||||
char name[IFNAMSIZ];
|
||||
|
Loading…
Reference in New Issue
Block a user