159 Commits

Author SHA1 Message Date
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
matthias.ringwald
d3a9df8712 replace malloc with static buffers or btstack_memory.h functions 2011-07-24 09:22:31 +00:00
matthias.ringwald
73cf2b3d2a moved l2cap_channel_t, l2cap_service_t, rfcomm_multiplexer_t, rfcomm_channel_t, rfcomm_service_t to header files 2011-07-24 08:49:09 +00:00
matthias.ringwald
7d67539f26 renamed log_err into log_error 2011-07-22 18:34:18 +00:00
matthias.ringwald
7b5fbe1fe3 replace all log_dbg with log_info 2011-07-22 18:31:02 +00:00
matthias.ringwald
2d00edd4aa don't declare variables in switch cases 2011-07-22 10:14:38 +00:00
matthias.ringwald
7d3b3569b0 avoid 'enumerated type mixed with another type warnings' by IAR 2011-07-22 10:09:45 +00:00
matthias.ringwald
16acce23c6 comment state updates for now 2011-07-20 20:25:28 +00:00
matthias.ringwald
6e6710eb6c forward DAEMON_EVENT_HCI_PACKET_SENT to all clients 2011-07-16 15:19:19 +00:00
matthias.ringwald
2a544672af update state before sending packet 2011-07-14 15:42:13 +00:00
matthias.ringwald
83f196b3d0 fix bug with wrong flags, working again 2011-07-08 17:25:15 +00:00
matthias.ringwald
fa8473a47d collapsed l2cap config states 2011-07-08 16:30:00 +00:00