mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 08:14:28 +08:00
monitor/att: Fix treating Notification/Indication as a request
Notification/Indication shall be treated as response so the correct database is used.
This commit is contained in:
parent
eb47cb5a04
commit
20e944ece7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user