670 Commits

Author SHA1 Message Date
Matthias Ringwald
4b7d1235ca l2cap:fix warning 2022-10-10 14:27:00 +02:00
Matthias Ringwald
d30e80666a l2cap: emit can send now for L2CAP_CHANNEL_TYPE_FIXED_CLASSIC 2022-09-08 12:40:59 +02:00
Matthias Ringwald
384eabd390 sm: use br/edr fixed channel 2022-09-07 15:16:29 +02:00
Matthias Ringwald
1f11b9e9b2 l2cap: support fixed channel for br/edr security manager 2022-09-07 15:16:29 +02:00
Matthias Ringwald
8d9f906bb8 l2cap: introduce L2CAP_CHANNEL_TYPE_FIXED_CLASSIC 2022-09-07 15:16:29 +02:00
Matthias Ringwald
34be587822 l2cap: annotate fixed channels with le vs classic 2022-09-07 15:16:29 +02:00
Matthias Ringwald
43d9636f05 l2cap: fix L2CAP_EVENT_CONNECTION_PARAMETER_UPDATE_REQUEST 2022-08-26 11:01:50 +02:00
Matthias Ringwald
f785062493 l2cap: fix warnings 2022-06-09 23:17:17 +02:00
Matthias Ringwald
9e18aef5ab l2cap: trigger can send now on nop event in testing 2022-05-17 11:38:27 +02:00
Matthias Ringwald
f8c25d5489 l2cap: avoid HCI_EVENT_IS_COMMAND_COMPLETE/STATUS macros 2022-05-09 21:54:36 +02:00
Matthias Ringwald
b5dfe35132 l2cap: fix warnings 2022-04-28 16:48:00 +02:00
Matthias Ringwald
7b8ae0b4bd l2cap: fix send for fixed and connectionless channels
Regressions introduced in 2dc3c7c
2022-04-28 16:10:56 +02:00
Matthias Ringwald
2dc3c7c1cb l2cap: use hci_can_send_acl_packet_now(con_handle) instead of generic hci_can_send_acl_classic/le_packet_now 2022-04-22 22:44:45 +02:00
Matthias Ringwald
7dfda25627 l2cap: fix accept incoming ERTM connection when Information Request already complete 2022-04-08 16:35:59 +02:00
Matthias Ringwald
92da54c428 hci_dump: mark all hci events as incoming 2022-03-23 12:01:14 +01:00
Matthias Ringwald
50c8d5ddec l2cap: set BR/EDR Security Manager (bit 7) in Fixed Channels Info only if BR/EDR Secure Connections are possible 2022-02-25 11:37:37 +01:00
Matthias Ringwald
f6fafc2484 l2cap: trigger information requests on connect if ENABLE_L2CAP_INFORMATION_REQUESTS_ON_CONNECT 2022-02-11 11:08:39 +01:00
Matthias Ringwald
9afaa4d426 gap: gap_enable_link_watchdog() uses automatic flush timeout to disconnect if data cannot be sent 2022-02-09 21:23:19 +01:00
Matthias Ringwald
de5414a240 l2cap: extract l2cap_classic_packet_boundary_flag function 2022-02-09 20:24:35 +01:00
Matthias Ringwald
71e8bc1a66 l2cap: reconfigure ertm tx buffers based on remote mps 2021-12-20 14:59:57 +01:00
Matthias Ringwald
23e3f93f2d l2cap: extract l2cap_ertm_setup_buffers 2021-12-20 14:16:20 +01:00
Matthias Ringwald
c54378f194 l2cap: limit remote MTU by local tx configuration in ERTM 2021-12-20 12:53:42 +01:00
Matthias Ringwald
ff3f1026e3 gap: return bool for gap_authenticated 2021-12-13 15:21:26 +01:00
Matthias Ringwald
d7f12b5216 l2cap: reject incoming l2cap connection in security mode 4 if link hasn't been encrypted independent from bonding state 2021-12-08 20:05:29 +01:00
Matthias Ringwald
1bc4c2e0ee l2cap: fix Secure Connections Only Mode for outgoing connections 2021-12-08 20:05:29 +01:00
Matthias Ringwald
ce7b39ecfe l2cap: fix ertm fragmentation 2021-11-26 22:34:48 +01:00
Matthias Ringwald
4b523b5e94 l2cap: fix compile without classic 2021-11-23 10:33:00 +01:00
Matthias Ringwald
d2102f77fe l2cap: fix event ids and pts test 2021-11-22 17:36:47 +01:00
Matthias Ringwald
01f33f4af1 l2cap: unify events for can send now, packet sent, channel closed (CbM/ECBM using existing events) 2021-11-22 14:42:42 +01:00
Matthias Ringwald
d2bf13739d l2cap: use decline reason in l2cap_cbm_decline_connection 2021-11-22 12:21:41 +01:00
Matthias Ringwald
f062abd6f2 l2cap: fold cbm/ecbm send data into l2cap_send 2021-11-22 12:19:24 +01:00
Matthias Ringwald
7428aa283d l2cap: fix l2cap_can_send_packet_now without classic 2021-11-22 11:46:00 +01:00
Matthias Ringwald
ce7c252c10 l2cap: return L2CAP_LOCAL_CID_DOES_NOT_EXIST for l2cap_send_prepared and l2cap_send 2021-11-22 11:41:46 +01:00
Matthias Ringwald
ef59d01394 l2cap: fold cbm/ecbm request can send now into l2cap_request_can_send_now_event 2021-11-22 11:22:29 +01:00
Matthias Ringwald
169f7220e3 l2cap: return status for l2cap_request_can_send_now_event 2021-11-22 11:06:08 +01:00
Matthias Ringwald
10ab986964 l2cap: drop l2cap_cbm_can_send_now (use l2cap_can_send_packet_now) 2021-11-22 11:05:31 +01:00
Matthias Ringwald
1fb0b27a8a l2cap: drop cbm/ecbm disconnect functions 2021-11-22 10:51:21 +01:00
Matthias Ringwald
b93f89661e l2cap: drop reason param in l2cap_disconnect 2021-11-22 10:49:32 +01:00
Matthias Ringwald
9a98c7803e l2cap: emit ecbm closed on hci disconnect 2021-11-20 23:22:23 +01:00
Matthias Ringwald
40b92a9edc l2cap: map connection response error codes to bluetooth error codes 2021-11-20 21:45:26 +01:00
Matthias Ringwald
dfc5d4aed9 l2cap: use CBM and ECBM prefix in l2cap event 2021-11-19 15:30:43 +01:00
Matthias Ringwald
8d8936a60e l2cap: provide l2cap_ertm_decline_connection 2021-11-19 15:21:15 +01:00
Matthias Ringwald
fb0a3dc690 l2cap: allow to provide result in l2cap_cbm_decline_connection 2021-11-19 14:54:55 +01:00
Matthias Ringwald
285d8eee48 l2cap: prefix static cbm and ecbm functions 2021-11-19 14:46:31 +01:00
Matthias Ringwald
d8c69877dd l2cap: use l2cap connection response defines 2021-11-19 14:39:45 +01:00
Matthias Ringwald
bbb517b6ca l2cap: remove 'data channel' from function names 2021-11-19 14:20:15 +01:00
Matthias Ringwald
7e11b56ca1 l2cap: fix build 2021-11-19 13:24:23 +01:00
Matthias Ringwald
49b75d3e5b l2cap: provide deprecation wrappers 2021-11-19 12:07:45 +01:00
Matthias Ringwald
f25e60dece l2cap: streamline ertm, cbm, ecbm function names 2021-11-19 11:04:16 +01:00
Matthias Ringwald
1c0aefe992 l2cap: avoid ENABLE_x defines for local flags 2021-11-19 10:17:29 +01:00