Started to make set_ap_wps_ie() capable of adding multiple IEs

This mechanism can be used to add various IEs to Beacon and Probe
Response frames and it should be made clear that it is not reserved
only for WPS IE.
This commit is contained in:
Jouni Malinen 2010-04-11 20:16:43 +03:00 committed by Jouni Malinen
parent f90ceeaabf
commit b3db190fa2
5 changed files with 28 additions and 13 deletions

View file

@ -39,13 +39,20 @@ static int hostapd_sta_flags_to_drv(int flags)
}
static int hostapd_set_ap_wps_ie(struct hostapd_data *hapd,
const struct wpabuf *beacon,
const struct wpabuf *proberesp)
static int hostapd_set_ap_wps_ie(struct hostapd_data *hapd)
{
struct wpabuf *beacon, *proberesp;
int ret;
if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL)
return 0;
return hapd->driver->set_ap_wps_ie(hapd->drv_priv, beacon, proberesp);
beacon = hapd->wps_beacon_ie;
proberesp = hapd->wps_probe_resp_ie;
ret = hapd->driver->set_ap_wps_ie(hapd->drv_priv, beacon, proberesp);
return ret;
}