summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-12-09 13:46:30 +0000
committerOlivier Blin <oblin@mandriva.com>2008-12-09 13:46:30 +0000
commit39cac86a40c1480d1b57b6d0dadfc942798b61d6 (patch)
tree0925241ac2f16a202f211a3c337aba4bd11ae4fa
parentb6f9a0cb8dafefd67c991ca54b401789d9f75172 (diff)
downloadmandi-39cac86a40c1480d1b57b6d0dadfc942798b61d6.tar
mandi-39cac86a40c1480d1b57b6d0dadfc942798b61d6.tar.gz
mandi-39cac86a40c1480d1b57b6d0dadfc942798b61d6.tar.bz2
mandi-39cac86a40c1480d1b57b6d0dadfc942798b61d6.tar.xz
mandi-39cac86a40c1480d1b57b6d0dadfc942798b61d6.zip
attach to wpa control socket to receive events
-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;