[RFC] Invoking set_beacon() every time WPS IE is modifed.

Yogesh Ashok Powar yogeshp
Tue Mar 23 03:53:47 PDT 2010


set_ap_wps_ie function can be set to null if kernel driver uses the beacon
template from set_beacon(). Whenever WPS registrar information is changed,
hostapd gives modified WPS IE to the driver through this function. But, this
information is not reflected in the beacons.

Following patch calls set_beacon() every time WPS IE is set or updated.

Signed-off-by:yogeshp at marvell.com
---
 src/ap/ap_drv_ops.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 7a62d73..272b44f 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -22,6 +22,7 @@
 #include "sta_info.h"
 #include "ap_config.h"
 #include "ap_drv_ops.h"
+#include "beacon.h"
 
 
 static int hostapd_sta_flags_to_drv(int flags)
@@ -43,8 +44,10 @@ static int hostapd_set_ap_wps_ie(struct hostapd_data *hapd,
 				 const struct wpabuf *beacon,
 				 const struct wpabuf *proberesp)
 {
-	if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL)
+	if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL) {
+		ieee802_11_set_beacon(hapd);
 		return 0;
+	}
 	return hapd->driver->set_ap_wps_ie(hapd->drv_priv, beacon, proberesp);
 }
 
-- 
1.5.4.3


--=-3gq2q8qim95XCHseaxtD--



More information about the Hostap mailing list