aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-08-28 13:34:38 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-28 13:34:38 (GMT)
commitbb119228b02786c3d05d0d8c6be41544a769d24d (patch)
tree4e70211a6fe544a27f9d1c7fe592cbc9561a030b /src
parent43f49c3788fc6cdc6d4f96c7d9c9c2b4ff10f297 (diff)
downloadhostap-bb119228b02786c3d05d0d8c6be41544a769d24d.zip
hostap-bb119228b02786c3d05d0d8c6be41544a769d24d.tar.gz
hostap-bb119228b02786c3d05d0d8c6be41544a769d24d.tar.bz2
Remove unnecessary enum typedef from wpa_auth_sm_event()
This is more consistent with the expected coding style. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/wpa_auth.c2
-rw-r--r--src/ap/wpa_auth.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
index 5ebfe5e..2760a3f 100644
--- a/src/ap/wpa_auth.c
+++ b/src/ap/wpa_auth.c
@@ -1671,7 +1671,7 @@ void wpa_remove_ptk(struct wpa_state_machine *sm)
}
-int wpa_auth_sm_event(struct wpa_state_machine *sm, wpa_event event)
+int wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event)
{
int remove_ptk = 1;
diff --git a/src/ap/wpa_auth.h b/src/ap/wpa_auth.h
index 7c76700..fd04f16 100644
--- a/src/ap/wpa_auth.h
+++ b/src/ap/wpa_auth.h
@@ -256,12 +256,12 @@ void wpa_auth_sta_deinit(struct wpa_state_machine *sm);
void wpa_receive(struct wpa_authenticator *wpa_auth,
struct wpa_state_machine *sm,
u8 *data, size_t data_len);
-typedef enum {
+enum wpa_event {
WPA_AUTH, WPA_ASSOC, WPA_DISASSOC, WPA_DEAUTH, WPA_REAUTH,
WPA_REAUTH_EAPOL, WPA_ASSOC_FT
-} wpa_event;
+};
void wpa_remove_ptk(struct wpa_state_machine *sm);
-int wpa_auth_sm_event(struct wpa_state_machine *sm, wpa_event event);
+int wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event);
void wpa_auth_sm_notify(struct wpa_state_machine *sm);
void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen);