355 Commits

Author SHA1 Message Date
Matthias Ringwald
85ddcd8496 l2cap-ertm: send data as i-frames for ertm mode, calculate crc16 using table 2017-07-25 15:15:02 +02:00
Matthias Ringwald
f073f0868e l2cap-ertm: fallback to basic mode if remote doesn't indicate support for ertm in information response 2017-07-25 15:15:02 +02:00
Matthias Ringwald
f2fa388d63 l2cap-ertm: handle fallback for optional ERTM 2017-07-25 15:15:02 +02:00
Matthias Ringwald
45caebe58e l2cap-ertm: add ertm_mandatory flag to create and accept connection 2017-07-25 15:15:01 +02:00
Matthias Ringwald
3232a1c67c l2cap-ertm: disconnect if ERTM mandatory but F&EC config with Basic mode received 2017-07-25 15:13:59 +02:00
Matthias Ringwald
a32d6a0346 l2cap-ertm: disconnect if ertm mandatory but configure response indicates ertm not supported here 2017-07-25 15:13:59 +02:00
Matthias Ringwald
d4016dac2c l2cap-ertm: add ertm_mandatory flag using default yes for now 2017-07-25 15:13:59 +02:00
Matthias Ringwald
543b84e459 l2cap-ertm: abort connection if ertm requested but not supported by remote in information response 2017-07-25 15:13:59 +02:00
Matthias Ringwald
1b9cb13d36 l2cap-ertm: query extended features before opening l2cap ertm connection 2017-07-25 15:13:59 +02:00
Matthias Ringwald
6dca2a0cf9 l2cap-ertm: send ERTM options in Config Response 2017-07-25 15:13:59 +02:00
Matthias Ringwald
43ec931d38 l2ap-ertm: send retransmission and flow control option when channel accepted with l2cap_accept_ertm_connection 2017-07-25 15:13:59 +02:00
Matthias Ringwald
a6bfadd349 l2cap-ertm: add ERTM flag in Information Response 2017-07-25 15:13:59 +02:00
Matthias Ringwald
9d139fbae6 l2cap: limit remote MTU to size of outgoing HCI buffer 2017-07-03 13:48:43 +02:00
Matthias Ringwald
d6ed9f9cc0 fix set but never used warning for l2cap_event_packet_handler when using without LE 2017-05-18 21:59:28 +02:00
Matthias Ringwald
b3264428f7 ble: fix compile ifndef ENABLE_CLASSIC 2017-04-26 15:38:12 +02:00
Milanka Ringwald
11cae19e58 l2cap: fix for le data channels 2017-04-04 11:24:24 +02:00
Matthias Ringwald
235946f152 bluetooth_sdp: use scraped SDP UUID and PSMs for SDP record creation and parsing 2017-03-26 22:19:18 +02:00
Matthias Ringwald
ab2c6ae4b7 tool: add update_filename.py that adds __BTSTACK_FILE__ to every .c file for use with debug output instead of __FILE__ 2017-03-24 23:39:20 +01:00
Matthias Ringwald
d9d230549a use log_debug for 'can send now' events 2017-03-02 16:48:13 +01:00
Matthias Ringwald
e74c5f5849 l2cap: set source cid in CONNECTION_RESPONSE for error cases - although spec mandates receiver to ingore it 2017-02-02 12:16:04 +01:00
Matthias Ringwald
f22209df62 fix unused params warnings 2016-12-22 22:46:20 +01:00
Matthias Ringwald
d066298299 fix unused params warnings 2016-12-22 22:44:50 +01:00
Matthias Ringwald
9ec2630ce4 fix unused parameters warning 2016-12-22 22:16:16 +01:00
Matthias Ringwald
f511cefa8c l2cap: always use non-flushable packets for le connections 2016-12-02 11:36:14 +01:00
Matthias Ringwald
f3963406e0 introduce UNUSED macro 2016-10-27 15:04:09 +02:00
Matthias Ringwald
a24785d0c1 l2cap: fix compile 2016-10-23 22:11:16 +02:00
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