aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-01-06 05:44:37 (GMT)
committerJouni Malinen <j@w1.fi>2008-01-06 05:44:37 (GMT)
commitdbc2d266b68c8eca3572e37ee123534ddf439485 (patch)
treec1a5bb89701b3f2cf4d7942a613aa3e743fd0520 /hostapd
parente0b1596a7a36ab7136dbb43b102d8a3e01bcbe59 (diff)
downloadhostap-history-dbc2d266b68c8eca3572e37ee123534ddf439485.zip
hostap-history-dbc2d266b68c8eca3572e37ee123534ddf439485.tar.gz
hostap-history-dbc2d266b68c8eca3572e37ee123534ddf439485.tar.bz2
WPS: Configure SSID from hostapd.conf to WPS Registrar
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/hostapd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index a6d3126..1511ea8 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -1286,6 +1286,8 @@ static int hostapd_setup_bss(struct hostapd_data *hapd, int first)
os_memset(&cfg, 0, sizeof(cfg));
cfg.wps_state = hapd->conf->wps_state;
cfg.uuid = hapd->conf->uuid;
+ cfg.ssid = (const u8 *) hapd->conf->ssid.ssid;
+ cfg.ssid_len = hapd->conf->ssid.ssid_len;
hapd->wps_registrar = wps_registrar_init(&cfg);
if (hapd->wps_registrar == NULL) {
printf("Failed to initialize WPS Registrar\n");