3
0
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:
Denis Kenzior 2015-09-28 11:32:05 -05:00
parent 50cc76e227
commit 907b7d1e07
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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];