From: Shan Palanisamy Date: Thu, 16 Feb 2012 17:48:48 +0000 (+0200) Subject: Clear WEP configuration on interface deinit X-Git-Tag: hostap_2_0~865 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03c3069ba085936880ec64430f544db14b56120;p=thirdparty%2Fhostap.git Clear WEP configuration on interface deinit Signed-hostap: Jouni Malinen --- diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index aae2563b4..8e072d37b 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -326,6 +326,15 @@ static void hostapd_cleanup_iface(struct hostapd_iface *iface) } +static void hostapd_clear_wep(struct hostapd_data *hapd) +{ + if (hapd->drv_priv) { + hostapd_set_privacy(hapd, 0); + hostapd_broadcast_wep_clear(hapd); + } +} + + static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd) { int i; @@ -904,6 +913,7 @@ void hostapd_interface_deinit(struct hostapd_iface *iface) struct hostapd_data *hapd = iface->bss[j]; hostapd_free_stas(hapd); hostapd_flush_old_stations(hapd); + hostapd_clear_wep(hapd); hostapd_cleanup(hapd); } }