aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-01-07 04:33:35 (GMT)
committerJouni Malinen <j@w1.fi>2008-01-07 04:33:35 (GMT)
commit02ba1130819b2d60ea036af4e85a9bc01b5c820a (patch)
treed307876cd7d0e43ce221d95cec7ba43ef6e0de58 /hostapd
parenta55261fbc5529abab8ec88a99b55ec8fea36dae8 (diff)
downloadhostap-history-02ba1130819b2d60ea036af4e85a9bc01b5c820a.zip
hostap-history-02ba1130819b2d60ea036af4e85a9bc01b5c820a.tar.gz
hostap-history-02ba1130819b2d60ea036af4e85a9bc01b5c820a.tar.bz2
WPS: Initialize WPS Registrar before IEEE 802.1X to fix EAPOL ctx pointer
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/hostapd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 2351c0a..cce6047 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1274,6 +1274,9 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
printf("ACL initialization failed.\n");
return -1;
}
+ if (hostapd_init_wps(hapd, conf))
+ return -1;
+
if (ieee802_1x_init(hapd)) {
printf("IEEE 802.1X initialization failed.\n");
return -1;
@@ -1313,9 +1316,6 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
}
#endif /* CONFIG_IEEE80211R */
- if (hostapd_init_wps(hapd, conf))
- return -1;
-
ieee802_11_set_beacon(hapd);
if (conf->radius_server_clients &&