Commit Graph

397 Commits

Author SHA1 Message Date
Matthias Ringwald
5ffbed6012 allow to limit ATT Server request buffer and SDP response buffer 2015-12-17 16:20:33 +01:00
Matthias Ringwald
4f2601a18c BTstack ATT_ERROR_DATA_MISMATCH constant 2015-11-08 18:04:03 +01:00
Matthias Ringwald
c133441bcb avoid returning structs 2015-11-08 17:39:10 +01:00
Matthias Ringwald
92df4ba8f7 use READ_BT_16 to access read multiple handle list 2015-11-08 17:38:19 +01:00
Matthias Ringwald
204e94f19f fix -Wshadow warnings for libusb target 2015-11-08 08:03:57 +01:00
Matthias Ringwald
ebffa4a83a fix all Wmissing-prototype warnings for libusb target 2015-11-08 08:02:37 +01:00
Matthias Ringwald
a5413018b8 more gap uuids 2015-11-07 22:14:57 +01:00
Matthias Ringwald
126c8b9476 add more GAP characteristic UUIDs 2015-11-07 22:14:30 +01:00
Matthias Ringwald
99f948c87f fix crash in slave role when storing CSRK 2015-11-07 22:09:47 +01:00
Matthias Ringwald
3ef52a965f add checks + log error for device index 2015-11-07 22:09:13 +01:00
Matthias Ringwald
09222c1170 allow to fix local csrk for testing 2015-10-10 22:04:39 +02:00
Matthias Ringwald
80c6fa00ac store both local and remote csrk - remote incorrect optimization 2015-10-10 21:36:43 +02:00
Matthias Ringwald
8e96e3b7fd add gatt_client_pts_suppress_mtu_exchange for testing sm 2015-10-10 14:53:02 +02:00
Matthias Ringwald
c7fdde1ffc clear gatt_client_t before use 2015-10-10 14:48:10 +02:00
Matthias Ringwald
c5e516fdd2 add more GAP UUIDs 2015-10-09 23:53:01 +02:00
Matthias Ringwald
7fa238285e move custom ATT_ERROR_TIMEOUT to 0x7f 2015-10-08 16:26:54 +02:00
Matthias Ringwald
12a5e8daf6 acquire peripheral context for GATT Indications if needed 2015-10-08 16:17:53 +02:00
Matthias Ringwald
49322b26bd report gatt notifications without having a peripheral context 2015-10-08 16:05:44 +02:00
Matthias Ringwald
e3eb72c86b bugfix: report last characteristic if characteristic is last handle in query 2015-10-08 15:17:10 +02:00
Matthias Ringwald
39d281a3eb flip BD_ADDR from SM_CODE_IDENTITY_ADDRESS_INFORMATION. only add device to db if neither IRK nor public address are found 2015-10-06 10:02:40 +02:00
Matthias Ringwald
d622771835 add gatt_client_write_long_characteristic_descriptor_using_descriptor_handle_with_offset and gatt_client_write_long_value_of_characteristic_with_offset 2015-10-05 22:30:46 +02:00
Matthias Ringwald
b8f6dc99f1 add gatt write tests - untested 2015-10-05 12:32:57 +02:00
Matthias Ringwald
5a93002a1d add gatt_client_read_multiple_characteristic_values 2015-10-02 14:59:23 +02:00
Matthias Ringwald
3f4e6e214e add gatt_client_read_value_of_characteristics_by_uuid16/128 2015-10-02 12:20:53 +02:00
Matthias Ringwald
5050a2d5f6 add gatt_client_read_long_characteristic_descriptor_using_descriptor_handler_with_offset 2015-10-01 22:16:37 +02:00
Matthias Ringwald
986515be23 add gatt_client_read_long_value_of_characteristic_using_value_handle_with_offset 2015-10-01 22:00:09 +02:00
Matthias Ringwald
62b9b53a36 add gatt_client_read_characteristic_descriptor_using_descriptor_handle and gatt_client_read_long_characteristic_descriptor_using_descriptor_handler 2015-10-01 21:09:23 +02:00
Matthias Ringwald
5838a2ed38 use PRIu32 for printf of 32-bit integers 2015-09-21 18:10:47 +02:00
Matthias Ringwald
69fd3b4b73 fix docu for gatt_client_discover_characteristic_descriptors 2015-09-18 15:14:34 +02:00
Matthias Ringwald
c647ce341a GATT Client: fix included services query with multiple rounds 2015-09-17 22:42:23 +02:00
Matthias Ringwald
264e3be687 rename sm_request_authorization to sm_request_pairing 2015-08-20 22:00:54 +02:00
Matthias Ringwald
87f8c30bce sm: sm_request_authorization triggers security request as slave 2015-08-20 21:50:20 +02:00
Matthias Ringwald
c84488c5b7 sm: fixes stall in responder role when initiator does not send any keys 2015-08-20 21:37:06 +02:00
Matthias Ringwald
5243c6c843 sm: fixes stall in initiator role when responder does not send any keys 2015-08-20 21:20:50 +02:00
Matthias Ringwald
5d1c139e0e gatt_client: allow writes with maximal MTU 2015-08-20 16:42:46 +02:00
Matthias Ringwald
cbb46e2f9c sm: fixed OOB for responder 2015-08-20 16:24:57 +02:00
Matthias Ringwald
778b54252f sm: reset tk if OOB data cannot be used for pairing 2015-08-20 15:35:45 +02:00
Matthias Ringwald
c2e7aa62b4 sm: notify client for 'both sides input passkey', handle OOB without user notification 2015-08-20 15:07:09 +02:00
Matthias Ringwald
39e3b4c0e6 sm: notify client about pairing request even if there's no input capabilites 2015-08-20 12:18:59 +02:00
Matthias Ringwald
e7409fd6e2 sm: document sm_cmac_start result 2015-08-19 22:44:03 +02:00
Matthias Ringwald
03679531e4 sm: flip message data before calculating CMAC, also store hash result as little endian 2015-08-19 22:39:19 +02:00
Matthias Ringwald
12e4aa3c16 sm: use CSRK of Peripheral to save persistent memory, fix CMAC calculation 2015-08-19 16:47:23 +02:00
Matthias Ringwald
db894f169e Revert "sm: manage global signing counter"
This reverts commit 9f9b1721e1.
2015-08-19 15:11:44 +02:00
Matthias Ringwald
7b8f2e5c7a sm: use IRK prefix for address resolution state 2015-08-19 15:03:15 +02:00
Matthias Ringwald
9f9b1721e1 sm: manage global signing counter 2015-08-19 14:43:41 +02:00
Matthias Ringwald
4a2d13bbab log valid cmac signature check, too 2015-08-19 12:58:04 +02:00
Matthias Ringwald
5fcb62a185 reset state after CMAC calculation 2015-08-19 12:57:38 +02:00
Matthias Ringwald
78b8321e18 sm: central uses stored ltk only when requested by client or peripheral 2015-08-14 18:36:44 +02:00
Matthias Ringwald
5b1061f9e8 fix bug retrieving encryption info 2015-08-14 18:33:14 +02:00
Matthias Ringwald
acae6a5093 sm: use public address for le device db lookup 2015-08-14 16:00:07 +02:00