zephyr/net/bluetooth
Mariusz Skamra 9fecda938a Bluetooth: gatt: Add missing error handling
The attribute protocol Read By Type is used to perform
Read Using Characteristic UUID procedure. This procedure
is used to read characteristic value if Characteristic Value UUID
is known, while handle is not known.
Errors received from application like Insufficient Encryption
Key Size must be send as a response to Read By Type Request

> ACL Data RX: Handle 64 flags 0x02 dlen 11                                                                                                                          [hci0] 94382.244804
      ATT: Read By Type Request (0x08) len 6
        Handle range: 0x0003-0x0003
        Attribute type: Unknown (0xaa51)
< ACL Data TX: Handle 64 flags 0x00 dlen 9                                                                                                                           [hci0] 94382.255987
      ATT: Error Response (0x01) len 4
        Read By Type Request (0x08)
        Handle: 0x0003
        Error: Insufficient Encryption Key Size (0x0c)

With this patch we can pass TC_GAR_SR_BI_11_C test.

Change-Id: Id47109f673cb725b2edd9cc0e154cc055fc8d0ef
Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
2016-02-05 20:24:51 -05:00
..
att.c Bluetooth: gatt: Add missing error handling 2016-02-05 20:24:51 -05:00
att.h Bluetooth: Make Kconfig buffer sizes follow MTU sizes 2016-02-05 20:24:45 -05:00
conn_internal.h Bluetooth: Create protocol-specific outgoing ACL buffer pools 2016-02-05 20:24:45 -05:00
conn.c Bluetooth: Allow to re-encrypt link with LE SC key 2016-02-05 20:24:49 -05:00
gatt_internal.h Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
gatt.c Bluetooth: gatt: Fix missing return and assignment to invalid type 2016-02-05 20:24:47 -05:00
hci_core.c Bluetooth: Perform check for BR/EDR support in a common place 2016-02-05 20:24:50 -05:00
hci_core.h Bluetooth: BR/EDR: Make room for controller internals 2016-02-05 20:24:50 -05:00
Kconfig
keys.c Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
keys.h Bluetooth: Add support for LE Secure Connections LTK 2016-02-05 20:24:49 -05:00
l2cap_internal.h
l2cap.c
Makefile
smp_null.c Bluetooth: L2CAP: Unref buffer after calling recv callback 2016-02-05 20:24:41 -05:00
smp.c Bluetooth: SMP: Fix remote DHKey check calculation 2016-02-05 20:24:51 -05:00
smp.h Bluetooth: SMP: Calculate LTK and MacKey for LE SC 2016-02-05 20:24:49 -05:00
stack.h Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
uuid.c Bluetooth: Make bt_uuid_str parameter const 2016-02-05 20:24:38 -05:00