mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
WPS: Fix WPS IE update in Beacon frames for nl80211
Call ieee802_11_set_beacon() in addition to set_ap_wps_ie() when processing WPS IE updates. This is needed with drivers that use set_beacon() instead of set_ap_wps_ie() (i.e., nl80211).
This commit is contained in:
parent
2c657c8dcd
commit
643743e215
@ -28,6 +28,7 @@
|
||||
#include "wps/wps_dev_attr.h"
|
||||
#include "hostapd.h"
|
||||
#include "ap_config.h"
|
||||
#include "beacon.h"
|
||||
#include "sta_info.h"
|
||||
#include "wps_hostapd.h"
|
||||
|
||||
@ -98,6 +99,7 @@ static int hostapd_wps_set_ie_cb(void *ctx, struct wpabuf *beacon_ie,
|
||||
hapd->wps_beacon_ie = beacon_ie;
|
||||
wpabuf_free(hapd->wps_probe_resp_ie);
|
||||
hapd->wps_probe_resp_ie = probe_resp_ie;
|
||||
ieee802_11_set_beacon(hapd);
|
||||
return hapd->drv.set_ap_wps_ie(hapd, hapd->wps_beacon_ie,
|
||||
hapd->wps_probe_resp_ie);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user