aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-30 00:13:11 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 14:17:21 (GMT)
commit1c9cb49fe95d5083cb3bae9ab80ead550dcc9640 (patch)
tree0b15199e25449ec375bf2c6f9bd5f076d11f8ceb /wpa_supplicant/wps_supplicant.c
parent0e14267a318b35df036536e497005c48acf9dbbb (diff)
downloadhostap-1c9cb49fe95d5083cb3bae9ab80ead550dcc9640.zip
hostap-1c9cb49fe95d5083cb3bae9ab80ead550dcc9640.tar.gz
hostap-1c9cb49fe95d5083cb3bae9ab80ead550dcc9640.tar.bz2
Trigger WPS configuration update on string changes
Previously, only Device Name string was handled, but similar trigger is needed on Manufacturer, Model Name, Model Number, and Serial Number changes.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 9ded028..c955e9f 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1387,7 +1387,8 @@ void wpas_wps_update_config(struct wpa_supplicant *wpa_s)
os_memcpy(wps->uuid, wpa_s->conf->uuid, WPS_UUID_LEN);
}
- if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_NAME) {
+ if (wpa_s->conf->changed_parameters &
+ (CFG_CHANGED_DEVICE_NAME | CFG_CHANGED_WPS_STRING)) {
/* Update pointers to make sure they refer current values */
wps->dev.device_name = wpa_s->conf->device_name;
wps->dev.manufacturer = wpa_s->conf->manufacturer;