From: Yogesh Ashok Powar Date: Tue, 5 Jul 2011 08:39:26 +0000 (+0300) Subject: hostapd: Clear keys configured when hostapd reloads configuration X-Git-Tag: hostap-1-bp~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3e685a04bbe0d97233d46f2a9473c742a3c6bec;p=thirdparty%2Fhostap.git hostapd: Clear keys configured when hostapd reloads configuration Data path is broken when hostapd reloads its configuration disabling the security which was previously enabled (WEP/WPA), using kill -1, as old keys were not cleared. The patch clears the keys configured when hostapd reloads its configuration. Signed-off-by: Yogesh Ashok Powar --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index d8af5713e..f00a5446e 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -40,6 +40,7 @@ static int hostapd_flush_old_stations(struct hostapd_data *hapd); static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); +static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd); extern int wpa_debug_level; @@ -109,6 +110,7 @@ int hostapd_reload_config(struct hostapd_iface *iface) */ for (j = 0; j < iface->num_bss; j++) { hostapd_flush_old_stations(iface->bss[j]); + hostapd_broadcast_wep_clear(iface->bss[j]); #ifndef CONFIG_NO_RADIUS /* TODO: update dynamic data based on changed configuration