mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
ap: Reorder authsrv_init() to fix IEEE 802.1X initialization
This patch moves the authentication server setup before IEEE 802.1X initialization. It's because 802.1X already needs to have a valid SSL context. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
This commit is contained in:
parent
dff0f701d0
commit
43a7fe2e0e
@ -564,6 +564,9 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
|
||||
if (hostapd_init_wps(hapd, conf))
|
||||
return -1;
|
||||
|
||||
if (authsrv_init(hapd) < 0)
|
||||
return -1;
|
||||
|
||||
if (ieee802_1x_init(hapd)) {
|
||||
wpa_printf(MSG_ERROR, "IEEE 802.1X initialization failed.");
|
||||
return -1;
|
||||
@ -597,9 +600,6 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
|
||||
|
||||
ieee802_11_set_beacon(hapd);
|
||||
|
||||
if (authsrv_init(hapd) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user