diff options
author | Shan Palanisamy <shanp@qca.qualcomm.com> | 2012-02-16 19:48:48 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 19:48:48 +0200 |
commit | e03c3069ba085936880ec64430f544db14b56120 (patch) | |
tree | 9d5606b65d0b0e4fa044639a4dbbcd9d4ce6bf15 | |
parent | 4b8a59e40e98ee0a698b3fe5b3d0bf724d2188fe (diff) | |
download | external_wpa_supplicant_8_ti-e03c3069ba085936880ec64430f544db14b56120.zip external_wpa_supplicant_8_ti-e03c3069ba085936880ec64430f544db14b56120.tar.gz external_wpa_supplicant_8_ti-e03c3069ba085936880ec64430f544db14b56120.tar.bz2 |
Clear WEP configuration on interface deinit
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r-- | src/ap/hostapd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index aae2563..8e072d3 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); } } |