mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-29 02:38:22 -05:00
Fix WPS IE in Probe Response frame to include proper Config Methods values
This attribute is supposed to indicate which methods the AP supports as an Enrollee for adding external Registrars. It was left to 0 when the AP code did not yet support external Registrars and was forgotten when the ER support was added.
This commit is contained in:
parent
a7918ec749
commit
bdda27eb17
@ -402,7 +402,11 @@ static int wps_build_probe_config_methods(struct wps_registrar *reg,
|
|||||||
struct wpabuf *msg)
|
struct wpabuf *msg)
|
||||||
{
|
{
|
||||||
u16 methods;
|
u16 methods;
|
||||||
methods = 0;
|
/*
|
||||||
|
* These are the methods that the AP supports as an Enrollee for adding
|
||||||
|
* external Registrars.
|
||||||
|
*/
|
||||||
|
methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
|
||||||
wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods);
|
wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods);
|
||||||
wpabuf_put_be16(msg, ATTR_CONFIG_METHODS);
|
wpabuf_put_be16(msg, ATTR_CONFIG_METHODS);
|
||||||
wpabuf_put_be16(msg, 2);
|
wpabuf_put_be16(msg, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user