Use a single define for maximum number of EAP methods
This cleans up the code a bit by not having to deal with theoretical possibility of maximum number of EAP methods to be different between various components in hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
895c643407
commit
e9447a94c0
6 changed files with 9 additions and 15 deletions
|
@ -104,7 +104,6 @@ struct hostapd_wpa_psk {
|
|||
u8 addr[ETH_ALEN];
|
||||
};
|
||||
|
||||
#define EAP_USER_MAX_METHODS 8
|
||||
struct hostapd_eap_user {
|
||||
struct hostapd_eap_user *next;
|
||||
u8 *identity;
|
||||
|
@ -112,7 +111,7 @@ struct hostapd_eap_user {
|
|||
struct {
|
||||
int vendor;
|
||||
u32 method;
|
||||
} methods[EAP_USER_MAX_METHODS];
|
||||
} methods[EAP_MAX_METHODS];
|
||||
u8 *password;
|
||||
size_t password_len;
|
||||
int phase2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue