From: Jouni Malinen Date: Tue, 6 Apr 2010 15:04:30 +0000 (+0300) Subject: WPS: Fix WPS IE update in Beacon frames for nl80211 X-Git-Tag: hostap_0_7_2~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=643743e2156eb15dbf7e312201ddbbb36bf27945;p=thirdparty%2Fhostap.git 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). --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index cc05813fb..86ce10f30 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -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); }