WPS: Fix WPS IE update in Beacon frames for nl80211
authorJouni Malinen <j@w1.fi>
Tue, 6 Apr 2010 15:04:30 +0000 (18:04 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 6 Apr 2010 15:04:30 +0000 (18:04 +0300)
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).

src/ap/wps_hostapd.c

index cc05813..86ce10f 100644 (file)
@@ -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);
 }