summaryrefslogtreecommitdiff
path: root/profiles/scanparam
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-10-10 20:55:53 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-11 08:55:50 +0200
commit0f92869a3be7b8561dc79cee97464db65b0efc55 (patch)
tree9abe92315e7f2d19c7e63f663bb1b30b6e296536 /profiles/scanparam
parent9b8871db95d02e87c39c3e6220f71965ec78ca62 (diff)
downloadbluez-0f92869a3be7b8561dc79cee97464db65b0efc55.tar.gz
gattrib: Add support for listening for events for specific handles
We want only the profile that implements a service to be notified of changes on that service. Before this patch, all the registered event notifiers are being called.
Diffstat (limited to 'profiles/scanparam')
-rw-r--r--profiles/scanparam/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/scanparam/scan.c b/profiles/scanparam/scan.c
index e523df5b8..bbf646ca9 100644
--- a/profiles/scanparam/scan.c
+++ b/profiles/scanparam/scan.c
@@ -115,8 +115,8 @@ static void ccc_written_cb(guint8 status, const guint8 *pdu,
DBG("Scan Refresh: notification enabled");
scan->refresh_cb_id = g_attrib_register(scan->attrib,
- ATT_OP_HANDLE_NOTIFY, refresh_value_cb,
- user_data, NULL);
+ ATT_OP_HANDLE_NOTIFY, GATTRIB_ALL_HANDLES,
+ refresh_value_cb, user_data, NULL);
}
static void discover_descriptor_cb(guint8 status, const guint8 *pdu,