329 Commits

Author SHA1 Message Date
Matthias Ringwald
bab5f4f00b l2cap: provide incoming flag for L2CAP and RFCOMM opened events 2016-10-23 22:08:44 +02:00
Matthias Ringwald
3545469685 hci: disable parts of classic code if ENABLE_CLASSIC is not defined 2016-10-19 16:06:11 +02:00
Matthias Ringwald
be005ed60d l2cap: don't call gap_connectable_control if Classic is not used 2016-10-19 15:39:31 +02:00
Matthias Ringwald
09e9d05bab l2cap: reduce code size if ENABLE_CLASSIC not defined 2016-10-19 14:27:25 +02:00
Matthias Ringwald
202c8a4c4c fix warnings/bugs reported by eclipse static analyzer 2016-10-19 10:49:33 +02:00
Matthias Ringwald
a3dc965a0a l2cap: fix compile if le data channels not used 2016-10-18 15:51:58 +02:00
Matthias Ringwald
c99bb61874 add incoming to L2CAP_EVENT_LE_INCOMING_CONNECTION 2016-10-18 15:24:09 +02:00
Matthias Ringwald
57be49d61c move le data channel code towards the end 2016-10-18 12:27:22 +02:00
Matthias Ringwald
4427624894 add LE Data Channel Events (L2CAP_EVENT_LE_*). implement can send now logic 2016-10-18 11:49:04 +02:00
Matthias Ringwald
cab29d481b use ENABLE_LE_DATA_CHANNELS, add compile flag to doc 2016-10-14 16:00:59 +02:00
Matthias Ringwald
83fd9c76e2 validate security level on incoming le data channel connection requests 2016-10-14 15:31:14 +02:00
Matthias Ringwald
7dafa7502d require hci connection for l2cap le data channels 2016-10-12 12:27:20 +02:00
Matthias Ringwald
63f34e0064 l2cap: log error if channel not found 2016-10-07 20:52:46 +02:00
Matthias Ringwald
63f0ac45ed l2cap: extend test, fix bugs, add missing checks to pass PTS 2016-10-06 16:09:54 +02:00
Matthias Ringwald
85aeef606d l2cap: count credits with le data channels. implement auto credits 2016-10-05 22:09:32 +02:00
Matthias Ringwald
cd529728d6 l2cap: re-assemble le data channel SDUs 2016-10-05 16:33:46 +02:00
Matthias Ringwald
7f107eda76 l2cap: fragment outgoing le data channel SDU 2016-10-05 15:49:18 +02:00
Matthias Ringwald
828a7f7ad0 l2cap: implement le disconnect 2016-10-05 11:58:27 +02:00
Matthias Ringwald
64e11ca9ae l2cap: send/receive le data channel SDUs that fit into single packet 2016-10-05 11:01:26 +02:00
Matthias Ringwald
991fea48d1 l2cap: close l2cap le connection on hci disconnect 2016-10-04 16:32:28 +02:00
Matthias Ringwald
230174734c l2cap: send and receive le connection response accept 2016-10-04 16:05:27 +02:00
Matthias Ringwald
1b8b8d056f l2cap: send and handle le connection decline 2016-10-04 15:48:27 +02:00
Matthias Ringwald
e7d0c9aab8 l2cap: emit conn request on le data con request, handle le accpet/decline 2016-07-27 16:44:25 +02:00
Matthias Ringwald
c48b2a2cf1 l2cap: extract l2cap_le_signaling_handler_dispatch 2016-07-27 11:09:21 +02:00
Matthias Ringwald
5cb8767531 l2cap: handle hci le connect, send le credit based connection request 2016-07-22 23:23:19 +02:00
Matthias Ringwald
48af0c56d8 pts: le_data_channel sets up hci connection 2016-07-22 22:04:43 +02:00
Matthias Ringwald
9367f9b01e Merge branch 'develop' into le-data-channel 2016-07-22 16:50:18 +02:00
Matthias Ringwald
7ef6a7bbd9 l2cap: drop reason arg for l2cap_decline_connection - only 'no resources' expected 2016-07-17 22:49:15 +02:00
Matthias Ringwald
7e8856ebfd l2cap: return error for l2cap_unregister_service 2016-07-17 22:43:06 +02:00
Matthias Ringwald
efedfb4cf8 l2cap: start creating connection via gap whitelest 2016-07-09 23:03:49 +02:00
Matthias Ringwald
da144af509 l2cap: extract l2cap_create_channel_entry. implement register/unregister le service 2016-07-09 23:03:49 +02:00
Matthias Ringwald
95d2c8f48d l2cap: avoid potential null dereference in l2cap_rtx_timeout 2016-07-01 11:30:53 +02:00
Matthias Ringwald
288636a2d1 l2cap: correct list of fixed channels supported 2016-05-18 11:15:07 +02:00
Matthias Ringwald
d1fd2a8811 l2cap: fix event forwarding failure by previous commit 2016-04-21 21:23:31 +02:00
Matthias Ringwald
3d50b4ba50 hci: use btstack_packet_handler_t for acl and sco callbacks 2016-04-21 20:47:37 +02:00
Matthias Ringwald
0b9d7e785b don't emit X_EVENT_CAN_SEND_NOW if x_can_send_now returns false 2016-04-01 14:15:39 +02:00
Matthias Ringwald
30725612ca l2cap: add l2cap_request_can_send_now_event and don't send L2CAP_EVENT_CAN_SEND_NOW on channel open 2016-03-31 15:12:40 +02:00
Matthias Ringwald
4ced4e8cb8 gap: pass le_connection_parameter_range_t as pointer 2016-03-23 14:46:47 +01:00
Matthias Ringwald
0e2df43f5c event: introduce hci_event_packet_get_type 2016-02-19 14:52:36 +01:00
Matthias Ringwald
fc64f94a83 use hci_con_handle_t more 2016-02-19 13:57:49 +01:00
Matthias Ringwald
15a95bd5aa gap: declare more hci functions as gap functions 2016-02-18 17:12:57 +01:00
Matthias Ringwald
63fa3374ea hci_transport: send HCI_EVENT_TRANSPORT_PACKET_SENT when buffer can be re-used, send HCI_EVENT_SCO_CAN_SEND_NOW if that's separate 2016-02-18 14:48:41 +01:00
Matthias Ringwald
d8e8f12ab0 gap.h: use gap_ instead of le_central_ or gap_le_ 2016-02-12 17:04:41 +01:00
Matthias Ringwald
073bd0fad0 hci: COMMAND_COMPLETE_EVENT->HCI_EVENT_IS_COMMAND_COMPLETE. COMMAND_STATUS_EVENT->HCI_EVENT_IS_COMMAND_STATUS 2016-02-11 16:12:55 +01:00
Matthias Ringwald
724d70a2cf bt_flip_addr(dest,src) -> reverse_bd_addr(src,dest) 2016-02-11 15:20:08 +01:00
Matthias Ringwald
058e3d6b6b util.h: use lower case for bd_addr_copy and bd_addr_cmp 2016-02-10 17:09:24 +01:00
Matthias Ringwald
773c410630 att_dispatch: forward L2CAP_EVENT_CAN_SEND_NOW to ATT Client & Server 2016-02-05 22:19:38 +01:00
Matthias Ringwald
34e7e5770f l2cap: emit L2CAP_EVENT_CAN_SEND_NOW also for registered fixed channels 2016-02-05 22:10:12 +01:00
Matthias Ringwald
2125de0963 hci: extracted hci_number_free_acl_slots_for_connection_type 2016-02-05 21:38:24 +01:00
Matthias Ringwald
adbe29e86c l2cap: add fixed l2cap channel id to l2cap_can_send_fixed_channel_now 2016-02-05 21:20:17 +01:00