Config Methods for Probe Response

Takashi Kawamoto tkawamoto
Fri Mar 30 04:47:56 PDT 2012

Dear All,

I have a question for WPS implementation of hostapd.

I can't understand why hostapd gets rid of Push Button related 
attributes from Config Methods when building Probe Response.


static int wps_build_probe_config_methods(struct wps_registrar *reg,
					  struct wpabuf *msg)
	u16 methods;
	 * These are the methods that the AP supports as an Enrollee for adding
	 * external Registrars.
	methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
#ifdef CONFIG_WPS2
#endif /* CONFIG_WPS2 */
	wpa_printf(MSG_DEBUG, "WPS:  * Config Methods (%x)", methods);
	wpabuf_put_be16(msg, ATTR_CONFIG_METHODS);
	wpabuf_put_be16(msg, 2);
	wpabuf_put_be16(msg, methods);
	return 0;


Do anyone know which description in specification this implementation 
conforms to? There seems to be no description which says Probe Response 
should not include WPS IE with Config Methods without these attributes.

Best Regards,
Takashi Kawamoto

 Takashi Kawamoto (E-Mail : tkawamoto at
 silex technology,Inc. 
 Software Engineering Division
 Phone:+81-774-98-3877 FAX:+81-774-98-3678

More information about the Hostap mailing list