293 Commits

Author SHA1 Message Date
Matthias Ringwald
ea35cda86d fix sending of security request by le responder 2015-04-24 12:12:37 +02:00
Matthias Ringwald
a9d5294b44 log uuid128 instad of using printf 2015-04-10 12:39:28 +02:00
Milanka Ringwald
3de9530758 updated docu style 2015-04-09 17:09:04 +02:00
Matthias Ringwald
23dcb0cb5a fix compile 2015-04-09 15:23:23 +02:00
Milanka Ringwald
5e6d58c471 annotate start/end API 2015-04-09 14:46:44 +02:00
Matthias Ringwald
1ae972aa1a add check for 'can send now' in gatt_client_write_value_of_characteristic_without_response 2015-04-04 22:52:11 +02:00
Matthias Ringwald
142d429464 correct ATT_MTU_EXCHANGE_COMPLETE event generation 2015-04-03 22:40:20 +02:00
Matthias Ringwald
64c9c43f68 fix compile 2015-04-03 22:12:34 +02:00
Matthias Ringwald
1c00af99f7 emit event for ATT MTU size 2015-04-03 21:58:10 +02:00
Matthias Ringwald
6771095235 fix ad_data_contains_uuid128 to accept uuid in big endian 2015-03-31 22:13:25 +02:00
Pete Blois
a2366dc9d3 Setting correct length for BTSTACK_EVENT_STATE event.
The second byte of the data is the length of the remaining data (in this case the HCI_STATE_WORKING byte). This was passing 0 indicating that there was no data when in fact there was.
2015-03-30 13:17:10 -07:00
matthias.ringwald@gmail.com
aa3feb0444 wait for sm_cmac to become ready instead of bailing out for signed writes 2015-03-05 15:20:26 +00:00
matthias.ringwald@gmail.com
6a0c192f28 send prepared signed write request from gatt_client_run() 2015-03-05 15:05:35 +00:00
matthias.ringwald@gmail.com
c1899d25d0 pass sign counter into CMAC calculation functions 2015-03-05 14:42:26 +00:00
matthias.ringwald@gmail.com
5c52231480 added sm_le_device_index for use by gatt client/server 2015-03-05 10:48:26 +00:00
matthias.ringwald@gmail.com
85cacb82ec sm starts encryption using ltk/ediv/rand from previous bonding 2015-03-03 22:17:47 +00:00
matthias.ringwald@gmail.com
9ec080fd8e new states for re-establishing secure connection 2015-03-03 21:38:29 +00:00
matthias.ringwald@gmail.com
b9b968bb23 rename central_device_db_index into le_device_db_index 2015-03-02 21:44:16 +00:00
matthias.ringwald@gmail.com
3a3e1c9119 renamed central_device_db* files into le_device_db* 2015-03-02 21:40:56 +00:00
matthias.ringwald@gmail.com
c5d3944d90 rename central_device_db into le_device_db 2015-03-02 21:30:12 +00:00
matthias.ringwald@gmail.com
d2d764240d add encryption info to central db 2015-03-02 21:12:29 +00:00
matthias.ringwald@gmail.com
4685dbaa3a add fields necessary for LE Cetnral, implemented remove operation 2015-03-02 20:08:15 +00:00
matthias.ringwald@gmail.com
2e77e513be Stop using pointer to array for bd_addr_t and link_key_t 2015-03-01 20:51:08 +00:00
matthias.ringwald@gmail.com
24b0319d94 refactored stk setup 2015-02-27 19:56:00 +00:00
matthias.ringwald@gmail.com
334856fa1b move code to start timer on pairing request 2015-02-27 19:14:15 +00:00
matthias.ringwald@gmail.com
abace5deec extracted sm_initiator_setup2 2015-02-27 16:53:54 +00:00
matthias.ringwald@gmail.com
bf214029e8 remove peer_csrk from setup 2015-02-27 16:06:07 +00:00
matthias.ringwald@gmail.com
6811cadec6 removed dead code 2015-02-27 16:02:56 +00:00
matthias.ringwald@gmail.com
dc438c837d fix LTK setup using ediv and rand 2015-02-27 15:53:53 +00:00
matthias.ringwald@gmail.com
d19b56e8be use single timer for SM, stop timer on sm_done_for_handle 2015-02-27 14:17:45 +00:00
matthias.ringwald@gmail.com
6189a1c676 Security Manager extended for multiple LE connections 2015-02-27 10:52:33 +00:00
matthias.ringwald@gmail.com
477200f2ef use sm_active_connection as mutex for setup context struct 2015-02-26 21:32:16 +00:00
matthias.ringwald@gmail.com
a911672806 track if sm_setup is used 2015-02-26 16:11:09 +00:00
matthias.ringwald@gmail.com
362481ca52 sort sm_init_setup, fix compile 2015-02-26 15:31:52 +00:00
matthias.ringwald@gmail.com
3143670f4d call sm_init_setup from sm_run() 2015-02-26 15:07:24 +00:00
matthias.ringwald@gmail.com
6731b28f11 extracted sm_init_setup 2015-02-26 15:02:59 +00:00
matthias.ringwald@gmail.com
fe9e7f880a fix regression in r3160 that broke security manager 2015-02-26 14:30:51 +00:00
matthias.ringwald@gmail.com
3e58ab5fb0 finish removal of global sm_connection_t * connection. 2015-02-12 23:04:15 +00:00
matthias.ringwald@gmail.com
befc8792ad pass in sm_connection_t to sm_central_start_lookup, reset CSRK state when done now 2015-02-12 21:36:06 +00:00
matthias.ringwald@gmail.com
ed70b3cf11 pass sm_connection into aes128 and random generation, correct fake sm_connection lookup for API functions 2015-02-12 16:16:42 +00:00
matthias.ringwald@gmail.com
256355c709 pass in sm_connection_t to more functions 2015-02-12 15:37:01 +00:00
matthias.ringwald@gmail.com
eab62d1026 pass in sm_connection_t to timer funtions 2015-02-12 15:27:54 +00:00
matthias.ringwald@gmail.com
95d04d447f move Security Manager sm_connection_t struct into hci.h for integration into hci_connection_t 2015-02-12 14:50:29 +00:00
mila@ringwald.ch
a0c35809ae streamline copyright headers 2015-02-06 16:19:27 +00:00
mila@ringwald.ch
2a9ce0dec0 gatt client: added MTU getter 2015-02-05 14:34:03 +00:00
matthias.ringwald@gmail.com
ef10893067 avoid crash if no gatt client context can be created 2014-12-11 18:51:10 +00:00
mila@ringwald.ch
85c40a03e4 start start timer on gatt query 2014-12-11 17:29:40 +00:00
mila@ringwald.ch
7fe7736638 added log error if peripheral mtu is not iniitalized 2014-12-03 22:33:07 +00:00
mila@ringwald.ch
898d522e43 document max_mtu and mtu of att_connection 2014-12-03 22:17:25 +00:00
matthias.ringwald@gmail.com
66771e4d3a emit GATT_QUERY_COMPLETE for Read Characteristic Value and Read Characteristic Descriptor 2014-12-03 20:40:53 +00:00