Register wpa_msg callback even if only global ctrl_iface is used
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 25 Sep 2013 22:31:32 +0000 (01:31 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 25 Sep 2013 22:31:32 +0000 (01:31 +0300)
commit76fe79ef2dbedb6bc0594ab14bb8ee42a0bfdc1b
treed431833542af7aed9ba50af49632a4a57b265f9d
parentaf96448488136a600633db9b0a31e7e9183c8e9e
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>
wpa_supplicant/ctrl_iface_unix.c