aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-03-15 13:02:08 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-22 15:41:37 (GMT)
commit45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe (patch)
treeb677bf535bb04be1ee42a7fcce53613ded9104cd /hostapd/main.c
parent90377029c6805b339dfa3307263118986295796a (diff)
downloadhostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.zip
hostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.tar.gz
hostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.tar.bz2
Find correct driver for interface additions/removals
Interface additions/removals are not guaranteed to be for the driver listening to the kernel events. As such, send the events to wpa_supplicant_event_global() which can then pick the correct interface registered with wpa_supplicant to send the event to. Signed-off-by: Roy Marples <roy@marples.name>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 25dc20b..1d9e63e 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -171,7 +171,8 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
if (global.drv_priv[i] == NULL &&
wpa_drivers[i]->global_init) {
- global.drv_priv[i] = wpa_drivers[i]->global_init();
+ global.drv_priv[i] =
+ wpa_drivers[i]->global_init(iface->interfaces);
if (global.drv_priv[i] == NULL) {
wpa_printf(MSG_ERROR, "Failed to initialize "
"driver '%s'",