]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Register wpa_msg callback even if only global ctrl_iface is used
authorVeerendranath Jakkam <vjakkam@codeaurora.org>
Thu, 21 Nov 2019 13:25:47 +0000 (18:55 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 2 Dec 2019 13:46:32 +0000 (15:46 +0200)
commit3c13af55731c06ca24f7df0734f11b94649a7d39
tree38303d3cb5ab448a240c3ad216050657c6ef39ec
parente9208056856c9acb82ffc9b3d4f7f3e801768771
hostapd: 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-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
hostapd/ctrl_iface.c