WPS: Set Probe Request config methods based on configuration
Instead of hardcoding the Config Methods attribute value in Probe Request frames, set this based on the configured parameter config_methods to allow correct set of methods to be advertised.
This commit is contained in:
parent
6fb6d842bb
commit
a9355fac5f
3 changed files with 3 additions and 28 deletions
|
@ -1142,6 +1142,7 @@ int wpas_wps_init(struct wpa_supplicant *wpa_s)
|
|||
return -1;
|
||||
}
|
||||
wps->config_methods = wps_fix_config_methods(wps->config_methods);
|
||||
wps->dev.config_methods = wps->config_methods;
|
||||
os_memcpy(wps->dev.pri_dev_type, wpa_s->conf->device_type,
|
||||
WPS_DEV_TYPE_LEN);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue