diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2010-10-19 19:57:01 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-10-19 19:57:01 +0300 |
commit | 2c8a4eef418a585735f940a27e7705d55476208b (patch) | |
tree | b36997fb3517a5f3edda5d28ed6d8af96c3d9f22 /src/ap/wps_hostapd.c | |
parent | 2af1c18735a8dd9cf71abe4f457bf9e402371c16 (diff) | |
download | external_wpa_supplicant_8_ti-2c8a4eef418a585735f940a27e7705d55476208b.zip external_wpa_supplicant_8_ti-2c8a4eef418a585735f940a27e7705d55476208b.tar.gz external_wpa_supplicant_8_ti-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 'src/ap/wps_hostapd.c')
-rw-r--r-- | src/ap/wps_hostapd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index b2f6a78..7ff9aa0 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -1272,3 +1272,17 @@ int hostapd_wps_ap_pin_set(struct hostapd_data *hapd, const char *pin, data.timeout = timeout; return hostapd_wps_for_each(hapd, wps_ap_pin_set, &data); } + + +static int wps_update_ie(struct hostapd_data *hapd, void *ctx) +{ + if (hapd->wps) + wps_registrar_update_ie(hapd->wps->registrar); + return 0; +} + + +void hostapd_wps_update_ie(struct hostapd_data *hapd) +{ + return hostapd_wps_for_each(hapd, wps_update_ie, NULL); +} |