zephyr/net/bluetooth
Mariusz Skamra de6029ee25 Bluetooth: GATT: Fix Find by Type response
This fixes bug where wrong service handles have been sent while
discovering the primary services. We should skip Secondary Service
contained in range 0x0006-0x0009 in this case:

> ACL Data RX: Handle 64 flags 0x02 dlen 13    [hci0] 619772.398445
      ATT: Find By Type Value Request (0x06) len 8
        Handle range: 0x0001-0xffff
        Attribute type: Primary Service (0x2800)
          UUID: Generic Access Profile (0x1800)
< ACL Data TX: Handle 64 flags 0x00 dlen 9     [hci0] 619772.403821
      ATT: Find By Type Value Response (0x07) len 4
        Handle range: 0x0001-0x0009

With this patch:

> ACL Data RX: Handle 64 flags 0x02 dlen 13    [hci0] 618945.922607
      ATT: Find By Type Value Request (0x06) len 8
        Handle range: 0x0001-0xffff
        Attribute type: Primary Service (0x2800)
          UUID: Generic Access Profile (0x1800)
< ACL Data TX: Handle 64 flags 0x00 dlen 9     [hci0] 618945.927933
      ATT: Find By Type Value Response (0x07) len 4
        Handle range: 0x0001-0x0005

Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
Change-Id: I7bb743e8787bc294ba447be5e21e250f0128ec68
2016-02-05 20:25:20 -05:00
..
att.c Bluetooth: GATT: Fix Find by Type response 2016-02-05 20:25:20 -05:00
att.h
conn_internal.h
conn.c Bluetooth: Add stubs for directed advertising API 2016-02-05 20:25:19 -05:00
gatt_internal.h
gatt.c Bluetooth: GATT: Add support for static DB 2016-02-05 20:25:20 -05:00
hci_core.c
hci_core.h Bluetooth: Add bt_conn prefix for auth APIs 2016-02-05 20:25:19 -05:00
Kconfig
keys.c
keys.h
l2cap_internal.h
l2cap.c
Makefile
smp_null.c
smp.c
smp.h
stack.h
uuid.c