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:
parent
f90ceeaabf
commit
b3db190fa2
5 changed files with 28 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue