monitor/att: Revert treating Notification/Indication as a request
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 18 Oct 2022 23:43:09 +0000 (16:43 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
Notification/Indication shall be treated as response (rsp=true) so the
correct database is used:

> ACL Data RX: Handle 3585 flags 0x02 dlen 14
      ATT: Handle Value Notification (0x1b) len 9
        Handle: 0x002a Type: Report (0x2a4d)
          Data: 0000feffff0000

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/att.c

index 7cd9967..5dc326d 100644 (file)
@@ -2784,7 +2784,7 @@ static void print_notify(const struct l2cap_frame *frame, uint16_t handle,
        struct gatt_handler *handler;
        struct l2cap_frame clone;
 
-       print_handle(frame, handle, false);
+       print_handle(frame, handle, true);
        print_hex_field("  Data", frame->data, len);
 
        if (len > frame->size) {