Add SSID as a separate item in AP mode Beacon setup

This makes it easier for drivers that need the SSID to get it from the
Beacon setup operation without having to parse the Beacon IEs.
This commit is contained in:
Jouni Malinen 2011-08-10 13:29:32 +03:00 committed by Jouni Malinen
parent 19c3b56685
commit ccb941e6da
3 changed files with 14 additions and 0 deletions

View file

@ -518,6 +518,8 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
params.tail_len = tail_len;
params.dtim_period = hapd->conf->dtim_period;
params.beacon_int = hapd->iconf->beacon_int;
params.ssid = (u8 *) hapd->conf->ssid.ssid;
params.ssid_len = hapd->conf->ssid.ssid_len;
if (hostapd_drv_set_ap(hapd, &params))
wpa_printf(MSG_ERROR, "Failed to set beacon parameters");