203 Commits

Author SHA1 Message Date
mila@ringwald.ch
03ce1a58ea l2cap and rfcomm close connection functionality was moved to deamon 2014-08-22 13:46:37 +00:00
mila@ringwald.ch
baf94f0687 fix outgoing l2cap connections (regression 'hci_number_free_acl_slots: handle 0x0000 not in connection list') 2014-08-20 20:15:50 +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
mila@ringwald.ch
67a01a718e fix compile 2014-08-15 14:44:57 +00:00
matthias.ringwald@gmail.com
e5e1518d8a add l2cap_max_le_mtu 2014-08-14 15:36:00 +00:00
matthias.ringwald@gmail.com
e79abdd605 replace hci_number_free_acl_slots with hci_number_free_acl_slots_for_handle 2014-08-14 13:06:29 +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
6128d7404e prevent use after free when daemon client connection is closed, fixes issue #402 2014-08-09 11:43:07 +00:00
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