aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorMichael Braun <michael-dev@fami-braun.de>2016-10-21 11:11:56 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 21:55:49 (GMT)
commita1047f55b8a56bddf46c064c9e328fe3e30321b3 (patch)
treec29fd125ab240bb39d0bd0ad25b2957cb36cb6fb /hostapd
parent3765c9705ce54427aed0adb91f48a53671b59e40 (diff)
downloadhostap-a1047f55b8a56bddf46c064c9e328fe3e30321b3.zip
hostap-a1047f55b8a56bddf46c064c9e328fe3e30321b3.tar.gz
hostap-a1047f55b8a56bddf46c064c9e328fe3e30321b3.tar.bz2
Remove duplicate dl_list_init() for global_ctrl_dst
Commit 56885eecf4026b0199d5ba75bd50395a17d323cc ('hostapd: Add UDP support for ctrl_iface') added dl_list_init() for global_ctrl_dst to hostapd_global_ctrl_iface_init(). Though, hostapd_global_ctrl_iface_init() is only called from main.c:main(), which already initializes global_ctrl_dst unconditionally before. Same with global_ctrl_sock. Remove this duplicate initialization. Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index d563831..dadc4b7 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -3506,8 +3506,6 @@ int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface)
}
}
- dl_list_init(&interface->global_ctrl_dst);
- interface->global_ctrl_sock = -1;
os_get_random(gcookie, COOKIE_LEN);
#ifdef CONFIG_CTRL_IFACE_UDP_REMOTE