Update WPS IE on hostapd reconfiguration
This is needed to handle cases where WPS state may have changed and hostapd is reloading its configuration.
This commit is contained in:
parent
1491f8a785
commit
6deb41e73f
3 changed files with 17 additions and 0 deletions
|
@ -686,6 +686,17 @@ void hostapd_deinit_wps(struct hostapd_data *hapd)
|
|||
}
|
||||
|
||||
|
||||
void hostapd_update_wps(struct hostapd_data *hapd)
|
||||
{
|
||||
if (hapd->wps == NULL)
|
||||
return;
|
||||
if (hapd->conf->wps_state)
|
||||
wps_registrar_update_ie(hapd->wps->registrar);
|
||||
else
|
||||
hostapd_deinit_wps(hapd);
|
||||
}
|
||||
|
||||
|
||||
int hostapd_wps_add_pin(struct hostapd_data *hapd, const char *uuid,
|
||||
const char *pin, int timeout)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue