diff options
author | Sheldon Demario <sheldon.demario@openbossa.org> | 2011-04-05 15:37:45 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-09 10:25:56 -0700 |
commit | 6a3a89774c6738df4d5b77636c4ce747b7497ae9 (patch) | |
tree | 38fdb8104abb17535ab79f44829c0cabd6a0769e | |
parent | d7f412e4197fbe26ebe1c30880e88295d2fbe17e (diff) | |
download | bluez-6a3a89774c6738df4d5b77636c4ce747b7497ae9.tar.gz |
Fix Characteristic read by UUID on gatttool
The Characteristic read by UUID GATT procedure is not incremental, i.e.
it returns the entire list in a single Read By Type request. Therefore
it should not be called recursively.
-rw-r--r-- | attrib/gatttool.c | 6 | ||||
-rw-r--r-- | attrib/interactive.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c index 0dfbc0465..be9196729 100644 --- a/attrib/gatttool.c +++ b/attrib/gatttool.c @@ -273,12 +273,6 @@ static void char_read_by_uuid_cb(guint8 status, const guint8 *pdu, att_data_list_free(list); - gatt_read_char_by_uuid(char_data->attrib, char_data->start, - char_data->end, opt_uuid, - char_read_by_uuid_cb, - char_data); - - return; done: g_free(char_data); g_main_loop_quit(event_loop); diff --git a/attrib/interactive.c b/attrib/interactive.c index 3fafb1e11..9a5564199 100644 --- a/attrib/interactive.c +++ b/attrib/interactive.c @@ -315,14 +315,8 @@ static void char_read_by_uuid_cb(guint8 status, const guint8 *pdu, att_data_list_free(list); - gatt_read_char_by_uuid(attrib, char_data->start, char_data->end, - &char_data->uuid, char_read_by_uuid_cb, - char_data); - rl_forced_update_display(); - return; - done: g_free(char_data); } |