15246 Commits

Author SHA1 Message Date
Matthias Ringwald
b1da498351 gatt_client: increase retry backoff to 150 ms 2023-08-22 16:17:59 +02:00
Matthias Ringwald
6d0f6f4908 gatt_client: retry setup eatt connection if there was a setup collision 2023-08-22 16:17:59 +02:00
Matthias Ringwald
df0a5c6801 gatt_client: prepare eatt code for connect retry 2023-08-22 16:17:59 +02:00
Matthias Ringwald
9828b48a18 att_server: reject incoming eatt connection if outgoing connection is active 2023-08-22 16:17:59 +02:00
Matthias Ringwald
570bdd2d21 gatt_client: track outgoing eatt connections 2023-08-22 16:17:59 +02:00
Matthias Ringwald
ab6f9d8f7c gatt_client: handle l2cap connection fail without active hci connection 2023-08-22 16:17:49 +02:00
Matthias Ringwald
9ed6f53c12 att_dispatch: update att_server.l2cap_cid in lower layer 2023-08-22 16:17:49 +02:00
Matthias Ringwald
434166e3bd att_dispatch: forward l2cap channel closed 2023-08-22 16:17:49 +02:00
Matthias Ringwald
180cbe7900 gatt_client: retry outgoing l2cap connection due to collision 2023-08-22 16:17:41 +02:00
Matthias Ringwald
4e39f390ad att_dispatch: track incoming connection while outgoing is active 2023-08-22 16:17:41 +02:00
Matthias Ringwald
476bb9c4a8 att_dispatch: decline classic connection when outgoing active 2023-08-22 16:17:41 +02:00
Matthias Ringwald
052dc82a0a gatt_client: rename gatt_client_t fields 2023-08-22 16:17:41 +02:00
Matthias Ringwald
74daebdebc gatt_client: emit connected if (shared) classic bearer already exists 2023-08-22 16:17:41 +02:00
Matthias Ringwald
1c7a19fe74 gatt_client: extract gatt_client_emit_connected 2023-08-22 16:17:41 +02:00
Matthias Ringwald
3b0e0cc58b gatt_client: fix error handling for failed sdp query 2023-08-22 16:17:41 +02:00
Matthias Ringwald
52e211de8e att_server: move classic packet handling into att dispatch handler 2023-08-22 16:17:41 +02:00
Matthias Ringwald
fd3d2f4c4d att_dispatch: forward att pdu from classic 2023-08-22 16:17:41 +02:00
Matthias Ringwald
e6dbc98e5d att_dispatch: extract att_dispatch_handle_att_pdu 2023-08-22 16:17:41 +02:00
Matthias Ringwald
4c22687684 gatt_client: use can send / request to send from att dispatch 2023-08-22 16:07:59 +02:00
Matthias Ringwald
328bed13c0 att_server: use can send / request to send from att dispatch 2023-08-22 16:07:59 +02:00
Matthias Ringwald
59b5e1571f gatt_client: use att_dispatch_classic_connect 2023-08-22 16:07:59 +02:00
Matthias Ringwald
6bf42d1f56 att_server: register classic att server via att_dispatch 2023-08-22 16:07:59 +02:00
Matthias Ringwald
1f4d0bc61f att_dispatch: add att_dispatch_classic_connect 2023-08-22 16:07:46 +02:00
Matthias Ringwald
d385c90e9d att_dispatch: add att_dispatch_classic_register_service 2023-08-22 16:07:46 +02:00
Matthias Ringwald
72df296c2f att_dispatch: support can send now for classic 2023-08-22 16:07:46 +02:00
Matthias Ringwald
9eba80a6c9 att_dispatch: extract att_dispatch_handle_can_send_now 2023-08-22 16:07:46 +02:00
Matthias Ringwald
5fd2be408f att_dispatch: support gatt over classic for request can send now 2023-08-22 16:07:46 +02:00
Matthias Ringwald
0cd55b6c9f att_dispatch: extract att_dispatch_classic_get_l2cap_cid 2023-08-22 16:07:46 +02:00
Matthias Ringwald
eb65899c12 att_dispatch: extract att_dispatch_request_can_send_now_event 2023-08-22 16:07:46 +02:00
Matthias Ringwald
0f376572fd att_dispatch: support gatt over classic in att_dispatch_can_send_now 2023-08-22 16:07:46 +02:00
Matthias Ringwald
e9e0c21eea att_dispatch: extract att_dispatch_can_send_now 2023-08-22 16:07:46 +02:00
Matthias Ringwald
4a7a258f11 att_dispatch: use bool for can send now functions 2023-08-22 16:07:46 +02:00
Matthias Ringwald
d8acf2678c gatt_client: store l2cap in hci_connection->att_server 2023-08-22 16:07:35 +02:00
Matthias Ringwald
98926299d6 att_dispatch: use switch for hci event packets 2023-08-22 16:07:29 +02:00
Matthias Ringwald
7405427fbf att_dispatch: improve function description 2023-08-22 15:57:06 +02:00
Matthias Ringwald
72aba3fa65 btstack_defines: fix GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT 2023-08-22 15:44:25 +02:00
Matthias Ringwald
98e87e7776 test: use pkg-config for cpputest build flags 2023-08-20 16:13:49 +02:00
Matthias Ringwald
29d4766d2c gap: downgrade link key type when reconnect without SC is detected for SC pairing 2023-08-20 15:58:50 +02:00
Matthias Ringwald
8eae094c26 hci: handle encryption change with error -> trigger emit security level_0 (classic only) 2023-08-20 15:53:56 +02:00
Matthias Ringwald
617c03d6ea hci: use bool for hci_is_le_connection 2023-08-20 15:51:22 +02:00
Matthias Ringwald
e789584cfe l2cap: fix ecbm service registration 2023-08-20 14:46:30 +02:00
Matthias Ringwald
27034b3b4d l2cap: reject disconnect request for invalid cids 2023-08-20 14:46:30 +02:00
Matthias Ringwald
becfe286d1 l2cap: reject ecbm channel if remote cid already exists 2023-08-20 14:46:30 +02:00
Matthias Ringwald
2046b1ba63 l2cap: handle authorization requirement in ecbm 2023-08-20 14:46:30 +02:00
Matthias Ringwald
989c549884 l2cap: add authorization_required param to ecbm service registration 2023-08-20 14:46:30 +02:00
Matthias Ringwald
5b2d3e1251 l2cap: add l2cap_ecbm_trigger_pending_connection_responses 2023-08-20 14:46:30 +02:00
Matthias Ringwald
b16d0b9c83 l2cap: send ecbm pending if authentication possible 2023-08-20 14:46:30 +02:00
Matthias Ringwald
6499cee051 l2cap: extract l2cap_ecbm_security_status_for_connection_request 2023-08-20 14:46:30 +02:00
Matthias Ringwald
436d089a6a l2cap: send ecbm pending if authentication possible 2023-08-20 14:46:30 +02:00
Matthias Ringwald
8edd6a0adf l2cap: prepare l2cap_handle_security_level for multiple iterations 2023-08-20 14:46:30 +02:00