aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-19 16:57:01 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-19 16:57:01 (GMT)
commit2c8a4eef418a585735f940a27e7705d55476208b (patch)
treeb36997fb3517a5f3edda5d28ed6d8af96c3d9f22 /hostapd
parent2af1c18735a8dd9cf71abe4f457bf9e402371c16 (diff)
downloadhostap-2c8a4eef418a585735f940a27e7705d55476208b.zip
hostap-2c8a4eef418a585735f940a27e7705d55476208b.tar.gz
hostap-2c8a4eef418a585735f940a27e7705d55476208b.tar.bz2
WPS: Update Beacon/ProbeResp IE on wps_version_number changes
This test command is supposed to change the WPS version number in all places immediately, so make sure that the IEs used in management frames get updated immediately.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index af83b8d..2cdcdc1 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -661,7 +661,7 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd,
}
-static int hostapd_ctrl_iface_set(struct hostapd_data *wpa_s, char *cmd)
+static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd)
{
char *value;
int ret = 0;
@@ -687,6 +687,7 @@ static int hostapd_ctrl_iface_set(struct hostapd_data *wpa_s, char *cmd)
"version %u.%u",
(wps_version_number & 0xf0) >> 4,
wps_version_number & 0x0f);
+ hostapd_wps_update_ie(hapd);
}
} else if (os_strcasecmp(cmd, "wps_testing_dummy_cred") == 0) {
wps_testing_dummy_cred = atoi(value);