aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-03-27 14:10:14 (GMT)
committerJouni Malinen <j@w1.fi>2009-04-20 09:03:00 (GMT)
commit8b42c3c4a37af2c0abe5a93299288658d812007d (patch)
tree18bd40dee6489a87a068ff0bd8c51d594cde967c
parentb08750afb3b3108e1857e37ae162b52c3ecbe3b3 (diff)
downloadhostap-06-8b42c3c4a37af2c0abe5a93299288658d812007d.zip
hostap-06-8b42c3c4a37af2c0abe5a93299288658d812007d.tar.gz
hostap-06-8b42c3c4a37af2c0abe5a93299288658d812007d.tar.bz2
Update driver SSID and 802.1X/WPA parameters on configuration reload
This is needed for WPS AP reconfiguration with driver wrappers that do not use hostapd MLME. (cherry picked from commit c813b69546eee3ee007c1c4687e1caa64e82952a)
-rw-r--r--hostapd/hostapd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index e62bb9a..cdd16ec 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -378,6 +378,16 @@ int hostapd_reload_config(struct hostapd_iface *iface)
ieee802_11_set_beacon(hapd);
+ if (hapd->conf->ssid.ssid_set &&
+ hostapd_set_ssid(hapd, (u8 *) hapd->conf->ssid.ssid,
+ hapd->conf->ssid.ssid_len)) {
+ wpa_printf(MSG_ERROR, "Could not set SSID for kernel driver");
+ /* try to continue */
+ }
+
+ if (hapd->conf->ieee802_1x || hapd->conf->wpa)
+ hostapd_set_ieee8021x(hapd->conf->iface, hapd, 1);
+
hostapd_config_free(oldconf);
wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface);