170 Commits

Author SHA1 Message Date
matthias.ringwald@gmail.com
2df5dadc33 fix creation of l2cap channel if hci connection already exists 2014-01-23 14:32:23 +00:00
matthias.ringwald@gmail.com
0e37e41729 added l2cap_send_echo_request with fixed sig id 2014-01-22 22:59:55 +00:00
matthias.ringwald@gmail.com
c42e2ff226 clear ATT and SM protocol handlers on l2cap_init() 2014-01-19 17:14:03 +00:00
matthias.ringwald@gmail.com
b5cb6874c1 don't send encryption command if authentication failed 2014-01-17 16:32:54 +00:00
matthias.ringwald@gmail.com
df3354fc67 if both devices support SSP, initiator shall setup unauthenticated link unless connecting to SDP 2014-01-17 16:30:31 +00:00
matthias.ringwald@gmail.com
62f901df97 add security level to l2cap service registration 2014-01-17 13:58:37 +00:00
matthias.ringwald@gmail.com
fb8ba0dbcd GAP update to higher security level working 2014-01-17 12:01:32 +00:00
matthias.ringwald@gmail.com
1eb2563e8a reject l2cap connection if secruity level not reached after auhentication 2014-01-17 11:33:22 +00:00
matthias.ringwald@gmail.com
a00031e215 successfully enable encryption if security level 2 is requested for l2cap service 2014-01-17 10:37:42 +00:00
matthias.ringwald@gmail.com
34d2123c9e fix sending of Connection Result - Pending, request authentication if security level isn't enough 2014-01-17 09:30:07 +00:00
matthias.ringwald@gmail.com
f85a9399b2 request security level 0 for l2cap services 2014-01-16 23:15:21 +00:00
matthias.ringwald@gmail.com
2bd8b7e7f3 reject connection (0x03 security block) if both have SSP, PSM != SDP, and connection is not ecncrypted 2014-01-16 22:42:21 +00:00
matthias.ringwald@gmail.com
ad67156049 use state_var to store Connection Pending task 2014-01-16 20:11:45 +00:00
matthias.ringwald@gmail.com
fd48b8f79d send l2cap connection response pending if accept/deny isn't instant 2014-01-16 19:55:00 +00:00
matthias.ringwald@gmail.com
c9dc710be7 track l2cap channel flush timeout and report in channel open event 2014-01-10 17:35:17 +00:00
matthias.ringwald@gmail.com
0fe7a9d03d store remote flush timeout 2014-01-10 17:32:29 +00:00
matthias.ringwald@gmail.com
ab2b01dc72 added l2cap_le_request_connection_parameter_update 2014-01-10 16:28:21 +00:00
matthias.ringwald@gmail.com
5932bd7c49 add L2CAP RTX and ERTX timers with 2 secs and 120 secs. defaults 2014-01-10 15:42:59 +00:00
matthias.ringwald@gmail.com
3b0484b3ed answer request for connectionsless mtu and fixed channels supported in l2cap information request 2014-01-10 10:26:25 +00:00
matthias.ringwald@gmail.com
fe9d8984b7 resend l2cap config request if previous wasn't accepted 2014-01-08 10:24:16 +00:00
matthias.ringwald@gmail.com
5061f3af34 added hci_local_bd_addr() 2013-11-01 21:50:25 +00:00
matthias.ringwald@gmail.com
c177a91c8c provide missing argument 2013-02-19 19:47:54 +00:00
matthias.ringwald
63a7246a86 improved l2cap error handling, better config options validation 2012-10-30 19:55:24 +00:00
matthias.ringwald@gmail.com
e0abb8e76b log all BTstack command and events 2012-07-30 18:58:08 +00:00
matthias.ringwald
4cf56b4aa0 added explaination why src_id is not needed 2012-05-10 20:32:39 +00:00
matthias.ringwald
6b64433e6a added non-commerical clause and contact email 2012-05-07 21:54:09 +00:00
matthias.ringwald
133efcfd6a deliver DAEMON_EVENT_HCI_PACKET_SENT as HCI_EVENT_PACKET to security_protocol_packet_handler (not supported yet anyway) 2012-03-19 23:09:54 +00:00
matthias.ringwald
2149f12ebb added support for sending connectionless L2CAP packets 2012-01-29 19:12:30 +00:00
matthias.ringwald@gmail.com
5652b5ff9b added support for Attribute and Security Manager LE protocols in L2CAP 2012-01-29 17:10:28 +00:00
mila@ringwald.ch
28ca2b4607 add casts for btstack_memory gets, use getter/setter for enumerated flags to allow compilation with C++ 2012-01-05 22:24:51 +00:00
matthias.ringwald
8147604132 use L2CAP_SERVICE_ALREADY_REGISTERED 2011-11-09 17:11:01 +00:00
matthias.ringwald
756102d34c avoid l2cap-channel list corruption (detected by alan-thx) 2011-11-09 16:36:59 +00:00
matthias.ringwald
5842b6d925 emit L2CAP_EVENT_SERVICE_REGISTERED event 2011-11-09 16:11:06 +00:00
matthias.ringwald
98fea381a9 fix no newline at end of file 2011-11-09 15:31:58 +00:00
matthias.ringwald
c0e866bf37 link page scan enable to registered l2cap services 2011-10-31 18:59:34 +00:00
matthias.ringwald
f5454fc67e disconnect all connections on hci_close, reset state on init 2011-10-19 17:28:46 +00:00
matthias.ringwald
56081214e8 db_mem_devices and db_mem_services initilized with NULL 2011-08-24 19:58:25 +00:00
matthias.ringwald
e16a9cacc7 less buffers for pending l2cap requests 2011-08-20 10:44:21 +00:00
matthias.ringwald@gmail.com
76115249e2 explicity use memcpy instead of relying on compiler to use intrinsic function 2011-08-18 16:48:07 +00:00
matthias.ringwald
4aa9e837c6 make l2cap_max_mtu public 2011-07-30 16:12:45 +00:00
matthias.ringwald
2985cb8479 renamed l2cap_max_l2cap_mtu into mtul2cap_max_mtu 2011-07-30 16:02:57 +00:00
matthias.ringwald
b1d43497a5 use hci acl packet buffer instead of own 2011-07-29 21:04:41 +00:00
matthias.ringwald
36a5e73594 streamline buffer size definitions throughtout the stack, use single HCI_PACKET_BUFFER_SIZE 2011-07-29 19:44:19 +00:00
matthias.ringwald
816c0598b2 use single buffer for outgoing l2cap packets 2011-07-28 22:25:15 +00:00
matthias.ringwald
5af02935dd use correct size for max l2cap packet used in rfcomm 2011-07-27 20:59:17 +00:00
matthias.ringwald
ea54feb7f2 use correct size for l2cap data and signaling packets 2011-07-27 20:54:50 +00:00
matthias.ringwald
8f8108aabc replaced HCI_ACL_3DH5_SIZE with HCI_ACL_BUFFER_SIZE, add packet_types to hci_stack, set packet_types based on HCI_ACL_BUFFER_SIZE and Bluetooth module ACL buffer size, specify usable packet_types when creating connections 2011-07-26 21:18:45 +00:00
matthias.ringwald
4bb582b6c9 change comments 2011-07-25 20:47:30 +00:00
matthias.ringwald
277abc2cc0 at least call log_error if l2cap_register_service_internal fails due to malloc 2011-07-25 19:55:47 +00:00
matthias.ringwald
2b3608483e extracted l2cap_register_signaling_response, respond with connection response and error if PSM not supported or no resources available 2011-07-25 19:51:44 +00:00