summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-23 14:53:43 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:57 +0200
commitddf8f229ecb3bdd556ae6ee27173876f6b0326fe (patch)
tree31ad0c188aaca2693d08bbf4c62d2232ac45b9c8 /audio
parent38b10c59399d67760ac001312765f6f6ca4db9e6 (diff)
Fix receiving of Phone.Net signals
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c
index b3f97c4c..681c9341 100644
--- a/audio/telephony-maemo.c
+++ b/audio/telephony-maemo.c
@@ -874,12 +874,12 @@ static void handle_registration_status_change(DBusMessage *msg)
static void handle_signal_strength_change(DBusMessage *msg)
{
- dbus_uint16_t signals_bar, rssi_in_dbm;
+ uint8_t signals_bar, rssi_in_dbm;
int signal;
if (!dbus_message_get_args(msg, NULL,
- DBUS_TYPE_UINT16, &signals_bar,
- DBUS_TYPE_UINT16, &rssi_in_dbm,
+ DBUS_TYPE_BYTE, &signals_bar,
+ DBUS_TYPE_BYTE, &rssi_in_dbm,
DBUS_TYPE_INVALID)) {
error("Unexpected parameters in signal_strength_change");
return;
@@ -907,7 +907,8 @@ static DBusHandlerResult cs_signal_filter(DBusConnection *conn,
const char *path = dbus_message_get_path(msg);
if (dbus_message_get_type(msg) != DBUS_MESSAGE_TYPE_SIGNAL ||
- !g_str_has_prefix(interface, CSD_CALL_INTERFACE))
+ !(g_str_has_prefix(interface, CSD_CALL_INTERFACE) ||
+ g_str_equal(interface, NETWORK_INTERFACE)))
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
debug("telephony-maemo: received %s %s.%s", path, interface, member);