WPS: Set correct Selected Registrar Config Methods attribute
authorMasashi Honma <honma@ictec.co.jp>
Mon, 9 Feb 2009 17:50:52 +0000 (19:50 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 9 Feb 2009 17:50:52 +0000 (19:50 +0200)
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.

src/wps/wps_registrar.c

index 949f540..f7eebdd 100644 (file)
@@ -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);