summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/wireless/plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/wireless/plugin.c b/src/plugins/wireless/plugin.c
index 14eab42..74c0ef4 100644
--- a/src/plugins/wireless/plugin.c
+++ b/src/plugins/wireless/plugin.c
@@ -47,6 +47,7 @@ static int init(plugin_t *plugin, DBusConnection *connection) {
if (ctrl_conn != NULL) {
plugin->fd = wpa_ctrl_get_fd(ctrl_conn);
+ wpa_ctrl_attach(ctrl_conn);
} else {
/* do not fail, the plugin will try to re-init when needed */
plugin->fd = -1;