aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface_unix.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-09-25 22:31:32 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-25 22:31:32 (GMT)
commit76fe79ef2dbedb6bc0594ab14bb8ee42a0bfdc1b (patch)
treed431833542af7aed9ba50af49632a4a57b265f9d /wpa_supplicant/ctrl_iface_unix.c
parentaf96448488136a600633db9b0a31e7e9183c8e9e (diff)
downloadhostap-76fe79ef2dbedb6bc0594ab14bb8ee42a0bfdc1b.zip
hostap-76fe79ef2dbedb6bc0594ab14bb8ee42a0bfdc1b.tar.gz
hostap-76fe79ef2dbedb6bc0594ab14bb8ee42a0bfdc1b.tar.bz2
Register wpa_msg callback even if only global ctrl_iface is used
Previously, wpa_msg_register_cb() was called only from successful completion of per-interface control interface initialization. This would leave the callback unregistered in case only the global control interface is used which would result in not delivering control interface events on the global interface. Fix this by registering the callback handler also from successful initialization of the global control interface. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface_unix.c')
-rw-r--r--wpa_supplicant/ctrl_iface_unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface_unix.c b/wpa_supplicant/ctrl_iface_unix.c
index faa773d..8abf57d 100644
--- a/wpa_supplicant/ctrl_iface_unix.c
+++ b/wpa_supplicant/ctrl_iface_unix.c
@@ -1035,6 +1035,8 @@ wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global)
return NULL;
}
+ wpa_msg_register_cb(wpa_supplicant_ctrl_iface_msg_cb);
+
return priv;
}