193 Commits

Author SHA1 Message Date
matthias.ringwald@gmail.com
ccf076ad21 emit L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST and L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_RESPONSE 2014-08-08 20:52:02 +00:00
matthias.ringwald@gmail.com
c22aecc9a7 replace all manual list iteration with linked_list_iterator functions in l2cap 2014-07-31 21:18:43 +00:00
matthias.ringwald@gmail.com
9dcb2fb2ec stop l2cap_rx_timer before free'ing l2cap_channel_t, fixes issue #404 2014-07-31 20:14:15 +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
matthias.ringwald@gmail.com
e97722776d use non-flushable packet boundary flag if supported - fixed unspecified behavior sending LE ACL packets 2014-05-09 13:29:58 +00:00
matthias.ringwald@gmail.com
e070741715 forward HCI Events to att and sm packet handlers, too 2014-04-28 20:51:11 +00:00
matthias.ringwald@gmail.com
96a45072cb track Bluetooth Device Address Type in hci_connection_t struct 2014-04-25 10:43:19 +00:00
matthias.ringwald@gmail.com
68a0fcf7e2 added hci_release_packet_buffer() and l2cap_release_packet_buffer() 2014-04-03 20:24:24 +00:00
matthias.ringwald@gmail.com
facf93fdba rename hci_get_outgoing_acl_packet_buffer into hci_get_outgoing_packet_buffer 2014-04-03 19:51:07 +00:00
matthias.ringwald@gmail.com
c8b9416af2 add asserts to check if buffer was reserved before calling send prepared 2014-04-03 19:37:03 +00:00
matthias.ringwald@gmail.com
3cab4fcaa6 add l2cap_can_send_connectionless_packet_now 2014-04-03 18:59:44 +00:00
matthias.ringwald@gmail.com
85889d6cd5 rename l2cap_can_send_packet_now_using_buffer to l2cap_can_send_packet_now 2014-04-03 15:31:14 +00:00
matthias.ringwald@gmail.com
7856fb3169 reserve l2cap packet buffer before using it 2014-04-03 15:16:45 +00:00
matthias.ringwald@gmail.com
2a373862b1 reserve hci packet buffer before using it 2014-04-03 15:02:14 +00:00
matthias.ringwald@gmail.com
6b4af23d08 add flag to track if hci packet buffer is reserved 2014-04-03 14:51:02 +00:00
matthias.ringwald@gmail.com
1bbc0b2387 reject any LE Signaling commands 2014-02-18 21:34:14 +00:00
matthias.ringwald@gmail.com
70efece186 prepare for sending command_reject on le signaling channel 2014-02-18 21:26:46 +00:00
matthias.ringwald@gmail.com
bd63148e69 execute l2cap_run() also for incoming events 2014-02-13 15:20:40 +00:00
matthias.ringwald@gmail.com
b087afb5b1 don't reject incoming SDP connection, see #378 2014-02-07 16:32:30 +00:00
matthias.ringwald@gmail.com
ac301f9556 added l2cap_require_security_level_2_for_outgoing_sdp 2014-01-28 21:53:35 +00:00
matthias.ringwald@gmail.com
1429b2d6b9 update state before calling function that might read it 2014-01-28 19:42:15 +00:00
matthias.ringwald@gmail.com
5533f01ef3 init l2cap->required_security_level to LEVEL_0 for outgoing connections 2014-01-28 18:43:31 +00:00
matthias.ringwald@gmail.com
5ca8d57be3 fix l2cap_reject 2014-01-24 15:58:42 +00:00
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