wiphy: Move netdev_state enum

This commit is contained in:
Denis Kenzior 2016-05-05 11:40:54 -05:00
parent 08decb340e
commit 0e3495488f
2 changed files with 8 additions and 8 deletions

View File

@ -29,14 +29,6 @@ typedef void (*netdev_destroy_func_t)(void *userdata);
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

@ -64,6 +64,14 @@ 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];