534 Commits

Author SHA1 Message Date
Matthias Ringwald
bbc80a48cd l2cap: request security level 2 for both SSP and non-SSP connections 2020-04-01 10:34:46 +02:00
Matthias Ringwald
8d783ab1e6 l2cap: fix compile 2020-01-23 11:07:27 +01:00
Matthias Ringwald
0b667d4199 l2cap: extract l2cap_acl_classic_handler_for_channel 2020-01-13 17:21:10 +01:00
Matthias Ringwald
a3b9c6207b l2cap: remove unneccessary break 2020-01-13 17:12:52 +01:00
Matthias Ringwald
3a600bd4d7 l2cap: extract l2cap_run_for_classic_channel 2020-01-13 16:54:03 +01:00
Matthias Ringwald
951d9d0781 l2cap: reduce level in l2cap_run for ertm handling 2020-01-13 16:54:03 +01:00
Matthias Ringwald
817374d931 l2cap: use remove channel from linked list without iterator 2020-01-13 16:54:03 +01:00
Matthias Ringwald
75e67d8a2b l2cap: avoid read-after-free on decline of incoming connection with ERTM enabled 2020-01-13 16:54:03 +01:00
Matthias Ringwald
57a9eeaef5 l2cap: fix creation of multiple outgoing l2cap channels (pull request #205) 2019-12-09 11:43:26 +01:00
Matthias Ringwald
ff3cc4a537 MISRAC2012-Rule-14.4_d: use while(true) instead of while(1) 2019-12-03 12:52:10 +01:00
Matthias Ringwald
6535961a1f ignore memcpy return value (always returns first parameter) 2019-12-02 18:17:20 +01:00
Matthias Ringwald
e53a3388dc ISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 16:37:16 +01:00
Matthias Ringwald
505f1c302f ISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 16:04:15 +01:00
Matthias Ringwald
c1ab6cc1be MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:31:48 +01:00
Milanka Ringwald
9dd26175d6 l2cap: fix build 2019-11-15 11:51:30 +01:00
Milanka Ringwald
c8b2b78562 l2cap: return ERROR_CODE_SUCCESS instead of 0 as status [a2378] 2019-11-15 11:51:30 +01:00
Matthias Ringwald
d89ab698de l2cap: send ertm i-frames round robin with other data packets 2019-11-08 15:49:43 +01:00
Matthias Ringwald
6774d5c927 l2cap: send le data channel sdus round robin with att packets 2019-11-08 11:58:36 +01:00
Matthias Ringwald
1f3a195bfe l2cap: update comment (timers are always stopped by l2cap_free_channel_entry) 2019-11-04 19:05:28 +01:00
Matthias Ringwald
f16129ce28 bluetooth: rename BD_ADDR_TYPE_CLASSIC to BD_ADDR_TYPE_ACL 2019-10-28 10:57:46 +01:00
Matthias Ringwald
67f8f607ac l2cap-ertm: disconnect if ERTM mandatory but remote didn't send Retransmission and Flow Control option in Config Request 2019-10-21 21:57:48 +02:00
Matthias Ringwald
b81345633b l2cap-ertm: use Retransmission and Flowcontrol options in Config Response only if used in Config Request 2019-10-21 21:50:39 +02:00
Matthias Ringwald
313d3a26ef l2cap-ertm: use Retransmission and Flow Control options for ERTM only if supported by remote and channel ready to use it 2019-10-21 21:30:56 +02:00
Matthias Ringwald
dae3b2ab07 l2cap-ertm: emit L2CAP_EVENT_ERTM_BUFFER_RELEASED for remote without ERTM support only if ERTM was requested by client 2019-10-07 11:26:30 +02:00
Matthias Ringwald
6a5ffed8f9 fix warnings 2019-10-04 10:10:56 +02:00
Matthias Ringwald
8b7155e095 l2cap-ertm: release ertm buffer if ertm not supported by remote 2019-09-30 21:37:49 +02:00
Matthias Ringwald
836ae835de l2cap-ertm: reject incoming connection if ERTM is configured as mandatory but not supported by remote 2019-09-30 21:23:38 +02:00
Matthias Ringwald
f8ecb1142c l2cap-ertm: on information response verify ertm requirements for outgoing connection only 2019-09-30 14:38:37 +02:00
Milanka Ringwald
84e3541e4b bluetooth_psm: replace prefix PSM_ with BLUEOOTH_PSM_ 2019-09-27 15:13:48 +02:00
Matthias Ringwald
a6e314f195 l2cap: extract internal types and definitions from bluetooth.h 2019-09-26 12:56:41 +02:00
Matthias Ringwald
2e4c1850fc l2cap-ertm: assert that packet can be stored in fragment buffers in ertm 2019-09-20 15:26:41 +02:00
Milanka Ringwald
6268fbfe8d l2cap: handle l2cap local cid overrun, assert local cid is unique 2019-09-02 11:52:01 +02:00
Milanka Ringwald
6ddef68dd2 l2cap: move get next channel ID and next signaling sequence num to l2cap 2019-09-02 11:39:26 +02:00
Matthias Ringwald
0defadfba9 l2cap: handle negative and invalid information requests during ERTM config 2019-08-08 12:24:41 +02:00
Matthias Ringwald
b90eac910b l2cap: limit fragments by remote_mps, send first fragment fully 2019-08-07 22:43:27 +02:00
Matthias Ringwald
8f4dd6c139 l2cap: stop ertm timers in l2cap_free_channel_entry 2019-08-06 17:59:22 +02:00
Matthias Ringwald
b5bab9c804 l2cap: stop rtx/ertx timer in l2cap_free_channel_entry 2019-08-06 17:52:45 +02:00
Matthias Ringwald
c45d6b2caa l2cap: use l2cap_free_channel_entry to free channel entry 2019-08-06 17:40:11 +02:00
Matthias Ringwald
eaeabfda24 l2cap: avoid reading l2cap signaling command len out of bounds 2019-07-17 11:28:06 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Matthias Ringwald
dd3bf36f5a l2cap: mark l2cap_handle_channel_closed and l2cap_emit_channel_opened as CLASSIC only 2019-02-08 16:07:44 +01:00
Matthias Ringwald
c342091bde l2cap: use void cast to avoid -Wcast-align warning 2019-01-10 15:50:37 +01:00
Matthias Ringwald
61c3f6de95 l2cap: fix crash when requesting ERTM but remote does not support ERTM at all 2019-01-10 15:42:45 +01:00
Matthias Ringwald
c425ea4ad2 l2cap: add fcs_option to ERTM config l2cap_ertm_config_t 2019-01-08 09:18:09 +01:00
Matthias Ringwald
66a726407a l2cap: emit L2CAP_EVENT_ERTM_BUFFER_RELEASED if ERTM buffer not needed/used anymore 2019-01-07 21:47:59 +01:00
Matthias Ringwald
624873c3b8 l2cap: wrap l2cap_emit_opened by l2cap_report_channel_open_failed on error 2019-01-07 21:33:58 +01:00
Matthias Ringwald
7f1690cf27 l2cap: provide channel mode (basic/ertm) and fcs option in L2CAP_EVENT_CHANNEL_OPENED 2019-01-07 20:55:28 +01:00
Milanka Ringwald
9700d53b49 l2cap: only check for ertm actions when ertm active 2018-12-13 14:39:43 +01:00
Matthias Ringwald
6fff232482 remove explicit memset call for buffers from btstack_memory 2018-11-23 17:41:43 +01:00
Matthias Ringwald
64cb054c86 l2cap: fix use after free with ERTM (close issue #181) 2018-11-22 21:55:08 +01:00