256 Commits

Author SHA1 Message Date
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
mila@ringwald.ch
9da54300b6 use log_info instead of printf, remove trailing newline from log calls 2014-08-15 21:26:50 +00:00
matthias.ringwald@gmail.com
219eea5f01 fix compile 2014-08-14 21:31:36 +00:00
matthias.ringwald@gmail.com
e5e1518d8a add l2cap_max_le_mtu 2014-08-14 15:36:00 +00:00
matthias.ringwald@gmail.com
97e8ef4a90 fix warnings 2014-08-11 22:09:43 +00:00
matthias.ringwald@gmail.com
c51c539d70 remove unused function 2014-08-11 22:07:10 +00:00
matthias.ringwald@gmail.com
d27c46f584 fix compile 2014-08-11 22:00:51 +00:00
matthias.ringwald@gmail.com
f9a298a27e use l2cap_can_send_fixed_channel_packet_now 2014-08-11 21:58:44 +00:00
matthias.ringwald@gmail.com
6cd4da6bc4 provide l2cap_can_send_fixed_channel_packet_now that takes handle as input 2014-08-11 21:49:15 +00:00
matthias.ringwald@gmail.com
a35252c8fd use hci_can_send_acl_packet_now instead of hci_can_send_packet_now_using_packet_buffer, hci_can_send_prepared_acl_packet_now instead of hci_can_send_packet_now - providing handle if available 2014-08-11 21:40:02 +00:00
matthias.ringwald@gmail.com
d94d3caf6b use hci_can_send_command_packet_now instead of hci_can_send_packet_now_using_packet_buffer(HCI_COMMAND_DATA_PACKET) 2014-08-11 21:20:07 +00:00
matthias.ringwald@gmail.com
826f734756 replace hci_send_acl_packet(data,size) with hci_send_acl_packet_buffer(size) to document that ACL packet have to be prepared in the hci packet buffer 2014-07-30 20:46:27 +00:00