diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-08-26 21:12:47 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-08-26 21:12:47 +0300 |
commit | 97a7a0b50445ecae82f5d1ba29b6e2e4d5f53d55 (patch) | |
tree | 5aa5d6f68b9a3a9fa9013297ed7fde80d54ffcb5 /src/ap/beacon.c | |
parent | b11d1d64393c132cda180bb4738d42dd6417caa0 (diff) | |
download | external_wpa_supplicant_8_ti-97a7a0b50445ecae82f5d1ba29b6e2e4d5f53d55.zip external_wpa_supplicant_8_ti-97a7a0b50445ecae82f5d1ba29b6e2e4d5f53d55.tar.gz external_wpa_supplicant_8_ti-97a7a0b50445ecae82f5d1ba29b6e2e4d5f53d55.tar.bz2 |
Add support for setting SSID hiding mode through set_ap()
Diffstat (limited to 'src/ap/beacon.c')
-rw-r--r-- | src/ap/beacon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index aed91a2..8fa5aef 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -530,6 +530,17 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd) (hapd->conf->ieee802_1x && (hapd->conf->default_wep_key_len || hapd->conf->individual_wep_key_len)); + switch (hapd->conf->ignore_broadcast_ssid) { + case 0: + params.hide_ssid = NO_SSID_HIDING; + break; + case 1: + params.hide_ssid = HIDDEN_SSID_ZERO_LEN; + break; + case 2: + params.hide_ssid = HIDDEN_SSID_ZERO_CONTENTS; + break; + } if (hostapd_drv_set_ap(hapd, ¶ms)) wpa_printf(MSG_ERROR, "Failed to set beacon parameters"); |