[patch] Set WPS/WSC IE for ProbeRequests via WEXT driver wrapper
Andriy Tkachuk
andriy.v.tkachuk
Thu Sep 22 08:53:06 PDT 2011
Hi folks,
The following patch set the WPS/WSC IE for ProbeRequests (as required
by WPS spec) via WEXT driver wrapper.
diff --git a/src/drivers/driver_wext.c b/src/drivers/driver_wext.c
index e731101..85b6ef6 100644
--- a/src/drivers/driver_wext.c
+++ b/src/drivers/driver_wext.c
@@ -43,6 +43,7 @@ static int wpa_driver_wext_get_range(void *priv);
static int wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv);
static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv);
static int wpa_driver_wext_set_auth_alg(void *priv, int auth_alg);
+static int wpa_driver_wext_set_gen_ie(void *priv, const u8 *ie, size_t ie_len);
int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv,
@@ -989,6 +990,8 @@ int wpa_driver_wext_scan(void *priv, struct
wpa_driver_scan_params *params)
os_memset(&iwr, 0, sizeof(iwr));
os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
+ wpa_driver_wext_set_gen_ie(priv, params->extra_ies,
+ params->extra_ies_len);
if (ssid && ssid_len) {
os_memset(&req, 0, sizeof(req));
req.essid_len = ssid_len;
Regards,
? Andriy
More information about the Hostap
mailing list