diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-20 16:18:46 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-05-20 17:23:08 -0700 |
commit | 20e944ece7a1d43d2976289c85c19e5ad2056cbd (patch) | |
tree | 6e819bfbbb36f124c992b7e2d068849afe661a18 /monitor | |
parent | eb47cb5a04cb1db3b87374c0cda799b7e3ef65af (diff) | |
download | bluez-20e944ece7a1d43d2976289c85c19e5ad2056cbd.tar.gz |
monitor/att: Fix treating Notification/Indication as a request
Notification/Indication shall be treated as response so the correct
database is used.
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/att.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor/att.c b/monitor/att.c index 10d3d9e91..51d83e649 100644 --- a/monitor/att.c +++ b/monitor/att.c @@ -730,7 +730,7 @@ static void print_notify(const struct l2cap_frame *frame, uint16_t handle, struct gatt_db_attribute *attr; struct gatt_handler *handler; - print_handle(frame, handle, true); + print_handle(frame, handle, false); print_hex_field(" Data", frame->data, len); if (len > frame->size) { @@ -738,7 +738,7 @@ static void print_notify(const struct l2cap_frame *frame, uint16_t handle, return; } - attr = get_attribute(frame, handle, true); + attr = get_attribute(frame, handle, false); if (!attr) return; |