Browse Source

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).
Jouni Malinen 15 years ago
parent
commit
643743e215
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ap/wps_hostapd.c

+ 2 - 0
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);
 }