From 031d49a2bb1df3b3022359da7c64e18c2e6a0ae3 Mon Sep 17 00:00:00 2001 From: Li Jingyi Date: Fri, 24 Jul 2020 19:34:46 +0800 Subject: [PATCH] feat(wpa_supplicant): revert eap struct to stay the same with lib --- components/wpa_supplicant/src/eap_peer/eap_i.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/components/wpa_supplicant/src/eap_peer/eap_i.h b/components/wpa_supplicant/src/eap_peer/eap_i.h index a55a8ae3..5d76db61 100644 --- a/components/wpa_supplicant/src/eap_peer/eap_i.h +++ b/components/wpa_supplicant/src/eap_peer/eap_i.h @@ -98,13 +98,6 @@ struct eap_method { #define BLOB_NAME_LEN 3 #define BLOB_NUM 3 -enum SIG_WPA2 { - SIG_WPA2_START = 0, - SIG_WPA2_RX, - SIG_WPA2_TASK_DEL, - SIG_WPA2_MAX, -}; - /** * struct eap_sm - EAP state machine data */ @@ -121,7 +114,8 @@ struct eap_sm { u8 current_identifier; u8 ownaddr[ETH_ALEN]; #ifdef USE_WPA2_TASK - u8 wpa2_sig_cnt[SIG_WPA2_MAX]; +#define SIG_WPA2_NUM 2 + u8 wpa2_sig_cnt[SIG_WPA2_NUM]; #endif u8 finish_state;