[PATCH] WPS:Setting correct Selected Registrar Config Methods attribute
Masashi Honma
honma
Mon Feb 9 01:14:19 PST 2009
Hello.
I tried PBC with the hostapd registrar.
I pushed the button with "hostap_cli WPS_PBC".
But hostapd registrar always sends Selected Registrar Config Methods
attribute=0x0000 in beacon/probe response.
Below patch will solve this.
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
index 949f540..f7eebdd 100644
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -375,6 +375,7 @@ wps_registrar_init(struct wps_context *wps,
}
reg->disable_auto_conf = cfg->disable_auto_conf;
reg->sel_reg_dev_password_id_override = -1;
+ reg->sel_reg_config_methods_override = -1;
if (wps_set_ie(reg)) {
wps_registrar_deinit(reg);
Regards,
Masashi Honma.
More information about the Hostap
mailing list