460 Commits

Author SHA1 Message Date
Matthias Ringwald
15eeb0057d
Merge pull request #102 from andryblack/fix_overflow
l2cap: fix buffer overflow for l2cap config options
2018-04-07 11:42:54 +02:00
Matthias Ringwald
73cd8a2ad6 gap: handle HCI_SUBEVENT_LE_REMOTE_CONNECTION_PARAMETER_REQUEST 2018-04-06 14:40:38 +02:00
Matthias Ringwald
13aa3e4b90 l2cap: fix compile for LE-only with LE Data Channels 2018-04-04 10:39:39 +02:00
Matthias Ringwald
24eb964e4e l2cap: fix compile for le-only 2018-02-05 15:57:21 +01:00
Matthias Ringwald
f68b21d788 l2cap: remove unnecessarry casts 2018-02-05 15:30:55 +01:00
Matthias Ringwald
7740e150a7 l2cap: round robin over all channel types (classic, le data channel, fixed) 2018-02-05 15:19:00 +01:00
Matthias Ringwald
fad84caf30 l2cap: manage fixed channels for ATT, SM, and Connectionless Data in l2cap_fixed_channel_t and keep in unified channels list 2018-02-05 15:19:00 +01:00
Matthias Ringwald
421cb1044d l2cap: keep classic and le data channels in single channel list 2018-02-05 15:19:00 +01:00
Matthias Ringwald
5d18f62371 l2cap: define l2cap_channel_type_t and set for new channels 2018-02-05 15:19:00 +01:00
Matthias Ringwald
25818320b7 l2cap: allow to set the max LE MTU 2018-01-30 19:01:33 +01:00
Matthias Ringwald
87050a0b56 l2cap: add missing l2cap_emit_le_channel_closed 2018-01-30 11:30:12 +01:00
Matthias Ringwald
2cf36df7f5 l2cap: emit le open/close events for le data channels on disconnect 2018-01-26 14:19:39 +01:00
andryblack
f2c7079962 l2cap: fix buffer overflow 2018-01-21 05:47:23 +03:00
Matthias Ringwald
b5803aaff8 l2cap: use l2cap_max_mtu as MPS for le data channels 2018-01-19 16:15:12 +01:00
Matthias Ringwald
9c6e867ea6 sm: moved sm_encryption_key_size, sm_authenticated, sm_authorization_state into gap.h 2018-01-19 16:08:14 +01:00
Matthias Ringwald
895ff4a54f l2cap: use log_debug for le data channel feedback 2018-01-17 22:43:26 +01:00
Matthias Ringwald
d5e694a307 l2cap: fix parsing of CONNECTION_PARAMETER_UPDATE_REQUEST 2018-01-17 12:05:42 +01:00
Matthias Ringwald
549011958f l2cap-ertm: indicate support for FCS Option in Information Response 2017-12-13 17:58:30 +01:00
Matthias Ringwald
b4f171b1aa l2cap-ertm: remove dead code 2017-12-13 17:40:13 +01:00
Matthias Ringwald
b72f690607 l2cap-ertm: calculate fcs only if used 2017-12-13 17:38:14 +01:00
Matthias Ringwald
fcb125edaf l2cap-ertm: fix fcs option configuration 2017-12-13 17:33:52 +01:00
Matthias Ringwald
d64e9771b3 l2cap-ertm: add mtu option to ertm config request/response 2017-11-29 11:39:11 +01:00
Matthias Ringwald
b37a9357a4 l2cap: assume remote mtu = L2CAP_DEFAULT_MTU (instead of L2CAP_MINIMAL_MTU) if peer doesn't send MTU config option 2017-11-24 17:02:38 +01:00
Matthias Ringwald
ceec418a18 l2cap: support connection requests during connection request failure 2017-11-17 17:41:37 +01:00
Matthias Ringwald
6bd7c69d56 l2cap: fix for fixed channel round robin 2017-11-13 13:41:14 +01:00
Matthias Ringwald
6574158ae6 l2cap-ertm: try to negotiate 'No FCS' in order to work around iOS bug
Issue: iOS (e.g. 10.2) uses 'No FCS' as default while Core 5.0 specifies 'FCS' as default
Workaround: try to actively negotiate 'No FCS' and fall back to 'FCS' if 'No FCS' is rejected
This works as iOS accepts the 'No FCS' request, hence the default value is only used on non-iOS devices
2017-11-10 16:03:53 +01:00
Matthias Ringwald
08dc639452 l2cap: round robin for fixed channel send requests 2017-11-04 21:41:53 +01:00
Matthias Ringwald
3d244bfa4d l2cap-ertm: fix compile 2017-10-09 11:31:43 +02:00
Matthias Ringwald
122c2b0535 l2cap-ertm: assert incoming ertm data is <= local MTU and check for buffer overrun during reassemblt 2017-10-09 11:27:39 +02:00
Matthias Ringwald
07c7de8699 l2cap-ertm: assert ertm SDUs contains Control + FCS fields and are smaller or equal local_mps 2017-10-09 11:12:53 +02:00
Matthias Ringwald
0d3ee2efe6 l2cap-ertm: fix setup of outgoing ertm tx buffers 2017-10-08 21:09:35 +02:00
Matthias Ringwald
7cbe539fe0 l2cap-ertm: use min(local,remote) in config response for TxWindow and MPS 2017-10-08 21:03:07 +02:00
Matthias Ringwald
3271797891 l2cap: limit mtu in conf resp to remote mtu - regression from 6dca2a0c 2017-10-08 14:52:02 +02:00
Matthias Ringwald
6b99230fe8 l2cap: seperate l2cap_setup_options for request and response 2017-10-08 14:34:51 +02:00
Matthias Ringwald
1fcd10b705 l2cap: fix regression in LE Signaling Len check for Connection Update Request/Response in adcfabadef2147ecee52ccbc9ab695b6df44e568 2017-10-02 11:50:32 +02:00
Matthias Ringwald
63854e74af l2cap: fix -Wvarargs warnings from clang 9.0 2017-09-25 21:50:25 +02:00
Matthias Ringwald
959f646afa l2cap: fix compile 2017-09-18 21:00:25 +02:00
Matthias Ringwald
fe7ca8b009 l2cap: fix compile 2017-09-18 17:58:53 +02:00
Matthias Ringwald
5774a3925b l2cap: remove unused arguments, annotate all UNUSED 2017-09-18 14:34:31 +02:00
Matthias Ringwald
adcfabadef l2cap: validate LE signaling command length 2017-09-18 14:07:01 +02:00
Matthias Ringwald
bb98c113be l2cap: check SDU len against provided buffer, prevent buffer overrun during reassembly 2017-09-18 13:52:45 +02:00
Matthias Ringwald
e9cfb251d0 l2cap: verify signaling len for CONNECTION_RESPONSE, CONFIGURE_REQUEST, CONFIGURE_RESPONSE 2017-09-18 12:20:26 +02:00
Matthias Ringwald
0493bf3a19 l2cap: verify signaling command len for CONNECTION_REQUEST, INFORMATION_REQUEST, and INFORMATION_RESPONSE 2017-09-18 11:48:12 +02:00
Matthias Ringwald
ed2ed8e12c l2cap: assert classic signaling command has valid data len 2017-09-18 11:32:36 +02:00
Matthias Ringwald
bb0a72a6e3 l2cap: split l2cap_acl_handler into seperate LE and Classic handlers. Classic: Signaling, Connection-less, Classic channels. LE: LE Signaling, ATT, SM, LE Data Channels 2017-09-17 22:08:29 +02:00
Milanka Ringwald
dfce2622b0 l2cap: abort outgoing connection if SSP supported, LEVEL0 is not enough and security update fails 2017-08-25 14:21:18 +02:00
Matthias Ringwald
6aa7d7949b l2cap: fix compile 2017-08-08 16:38:06 +02:00
Matthias Ringwald
188c56a58d l2cap: fix compile 2017-08-08 16:20:24 +02:00
Matthias Ringwald
2053036d0c l2cap: emit L2CAP_EVENT_CHANNEL_OPENED with status L2CAP_CONNECTION_BASEBAND_DISCONNECT on HCI Disconnect Event before channel was opened 2017-08-08 16:08:03 +02:00
Matthias Ringwald
725276951f l2cap: fix regression sending config options - introduced in ERTM feature merge 2017-08-06 21:45:05 +02:00