267 Commits

Author SHA1 Message Date
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
mila@ringwald.ch
0d7c65122a updated copyright header 2014-11-27 13:20:52 +00:00
matthias.ringwald@gmail.com
8fb59d68a7 fix typo 2014-11-18 12:56:47 +00:00
matthias.ringwald@gmail.com
eb37a75f1d fix use of max mtu for att server 2014-11-18 12:56:07 +00:00
matthias.ringwald@gmail.com
352208daaa use att_connection.mtu instead of calling l2cap_max_mtu (for better testing) 2014-11-06 11:40:20 +00:00
mila@ringwald.ch
349c7a6328 removed call to l2cap_le_mtu from att 2014-11-06 10:36:35 +00:00
matthias.ringwald@gmail.com
7b472d9ff8 moved ancs_client_lit into ble/ 2014-10-31 16:12:52 +00:00
mila@ringwald.ch
3e05add930 gtt client extended to handle multiple subclients of a peripheral 2014-10-31 15:58:44 +00:00
mila@ringwald.ch
0f058b53b4 fix compile 2014-10-31 15:08:16 +00:00
matthias.ringwald@gmail.com
254e71e6e7 update FSM state before sending an HCI command or L2CAP packet to avoid theoretical race-condition of response arriving before state was updated 2014-10-16 15:02:48 +00:00
matthias.ringwald@gmail.com
b832792a22 use IO_CAPABILITY_NO_INPUT_NO_OUTPUT as default for LE (same as for Classic now) 2014-10-16 13:56:25 +00:00
matthias.ringwald@gmail.com
d2ec4031ba avoid /** comments, clean up block comments 2014-10-16 09:15:23 +00:00
mila@ringwald.ch
b30d296ecf cast BTstack error 2014-10-09 20:40:29 +00:00
mila@ringwald.ch
d11cb9e143 fix compile 2014-10-09 10:16:32 +00:00
mila@ringwald.ch
2d27d5e979 att mtu is per default ATT MTU MIN. During MTU exchange is set to a max l2cap le mtu 2014-10-09 10:09:04 +00:00
mila@ringwald.ch
4ff786cfeb use HCI_ACL_PAYLOAD_SIZE to determine L2CAP MTU 2014-10-09 09:49:47 +00:00
mila@ringwald.ch
edb8d076e0 used HCI_ACL_PAYLOAD_SIZE as att request buffer size 2014-10-09 09:11:49 +00:00
mila@ringwald.ch
eb7f386b26 use hci_acl_le_data_buffer_length to get max le l2cap mtu 2014-10-09 09:08:48 +00:00
mila@ringwald.ch
7c40ac80c0 rewrote gatt_client state handling: API uses handles instaed of context structs (adapted examples and daemon) 2014-10-02 20:06:29 +00:00
mila@ringwald.ch
01159b07a8 added ATT_ERROR_TIMEOUT 2014-10-02 19:56:07 +00:00
matthias.ringwald@gmail.com
c37a3166d2 added gap_update_connection_parameters 2014-09-21 19:43:59 +00:00
mila@ringwald.ch
5b09aef38a check client handler before calling it att_server 2014-09-07 19:27:54 +00:00
matthias.ringwald@gmail.com
22f6379b3a set state before notifying user 2014-09-05 14:59:16 +00:00
mila@ringwald.ch
d80fc61e5a checks splitted and moved to appropriate palaces in the switch statement 2014-08-28 09:05:58 +00:00
matthias.ringwald@gmail.com
756ca330b0 don't call sm_run before event handler, avoids warning. don't check for l2cap_can_send_now if no connection 2014-08-28 07:50:13 +00:00
matthias.ringwald
b1bb02c964 move check for acl packets after state machines for CMAC, key generation, random address generation 2014-08-27 12:52:20 +00:00
matthias.ringwald
d37bc63c22 use READ_BT_32 to avoid crash beacuse of non-aligned data access 2014-08-27 12:50:09 +00:00