[PATCH] Hostapd does not update WPS credentials on SIGHUP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Faced this issue on v2.6, but 2.10 seems to have it too.
Steps to reproduce:
1. Start hostapd with WPS enabled
2. Change passphrase in hostapd.conf
3. Send SIGHUP to hostapd
4. Try to connect client using wps_pbc
5. Client receives old passphrase and cannot connect


Signed-off-by: Dmitry Koroban <dkoroban at oktetlabs.ru>

diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index b37f49f9a..9c78785c6 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -163,6 +163,9 @@ static void hostapd_reload_bss(struct hostapd_data *hapd) wpa_printf(MSG_ERROR, "Could not set SSID for kernel driver");
                /* try to continue */
        }
+       /* Update WPS credentials */
+       hostapd_deinit_wps(hapd);
+       hostapd_init_wps(hapd, hapd->conf);
wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface);
 }

--
Dmitry Koroban
OKTET Labs

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux