[PATCH BlueZ 3/3] maemo6: mce: Fix listening for signals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We should listen for signals only on MCE bus name.
---
 plugins/maemo6.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/maemo6.c b/plugins/maemo6.c
index 4819af4..a8c9bed 100644
--- a/plugins/maemo6.c
+++ b/plugins/maemo6.c
@@ -224,12 +224,13 @@ static int mce_probe(struct btd_adapter *adapter)
 
 	DBG("path %s", adapter_get_path(adapter));
 
-	watch_id = g_dbus_add_signal_watch(conn, NULL, MCE_SIGNAL_PATH,
+	watch_id = g_dbus_add_signal_watch(conn, MCE_SERVICE, MCE_SIGNAL_PATH,
 					MCE_SIGNAL_IF, MCE_RADIO_STATES_SIG,
 					mce_signal_callback, adapter, NULL);
 
-	tklock_watch_id = g_dbus_add_signal_watch(conn, NULL, MCE_SIGNAL_PATH,
-					MCE_SIGNAL_IF, MCE_TKLOCK_MODE_SIG,
+	tklock_watch_id = g_dbus_add_signal_watch(conn, MCE_SERVICE,
+					MCE_SIGNAL_PATH, MCE_SIGNAL_IF,
+					MCE_TKLOCK_MODE_SIG,
 					mce_tklock_mode_cb, adapter, NULL);
 
 	btd_adapter_register_powered_callback(adapter, adapter_powered);
-- 
1.7.11

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux