aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd.c
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/hostapd.c')
-rw-r--r--hostapd/hostapd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/hostapd.c b/hostapd/hostapd.c
index 1bfa6c9..6f65660 100644
--- a/hostapd/hostapd.c
+++ b/hostapd/hostapd.c
@@ -354,6 +354,7 @@ static void hostapd_cleanup(hostapd *hapd)
close(hapd->sock);
if (hapd->ioctl_sock >= 0)
close(hapd->ioctl_sock);
+ hostapd_wireless_event_deinit(hapd);
hostapd_config_free(hapd->conf);
hapd->conf = NULL;
@@ -472,6 +473,9 @@ static int hostapd_setup_interface(hostapd *hapd)
return -1;
}
+ if (hostapd_wireless_event_init(hapd) < 0)
+ return -1;
+
if (hapd->default_wep_key && hostapd_setup_encryption(hapd))
return -1;