1216 Commits

Author SHA1 Message Date
Matthias Ringwald
3d1f2d2452 hci: move code to handle periodic inquiry command complete into handle_command_complete_event handler 2022-04-14 12:18:04 +02:00
Matthias Ringwald
0be1c97c0b
Merge pull request #412 from ricardoquesada/hci_periodic_inquiry_stop_fix
hci: fix periodic inquiry stop
2022-04-13 09:51:45 +02:00
Matthias Ringwald
314aa2cc76 hci: fix build without ENABLE_LE_CENTRAL 2022-04-13 09:28:29 +02:00
Ricardo Quesada
258cb4e13a hci: fix periodic inquiry stop
This commit fixes HCI periodic inquiry stop by moving "HCI complete
event" comparison inside the HCI_COMPLETE_EVENT guard.
2022-04-12 21:30:36 -07:00
Matthias Ringwald
30199e24c8 gap: support periodic inquiry mode with gap_inquiry_periodic_start/stop 2022-04-12 16:25:57 +02:00
Matthias Ringwald
e90f848d38 hci: use hci_le_extended_create_connection if supported for non-whitelist connections 2022-04-04 15:50:25 +02:00
Matthias Ringwald
ff87345bf8 hci: exit main hci_run after running non-working substate 2022-03-28 11:11:48 +02:00
Matthias Ringwald
b5ea8df664 hci: remove code to init new connection
already set in create_connection_for_bd_addr_and_type for new connection
2022-03-23 14:52:09 +01:00
Matthias Ringwald
ace087123b hci: add hci_send_iso_packet_buffer 2022-03-23 14:35:21 +01:00
Matthias Ringwald
92da54c428 hci_dump: mark all hci events as incoming 2022-03-23 12:01:14 +01:00
Matthias Ringwald
5027c49828 hci: add hci_register_iso_packet_handler 2022-03-21 22:12:01 +01:00
Matthias Ringwald
49a6c69cd4 hci: reduce #ifdefs in hci_run_general_gap_le 2022-03-18 19:37:02 +01:00
Matthias Ringwald
4bafedd521 hci: implement periodic advertising sync and sync cancel 2022-03-18 19:37:02 +01:00
Matthias Ringwald
f40c73b4e7 hci: manage periodic advertiser list on controller 2022-03-18 19:37:02 +01:00
Matthias Ringwald
c814a90472 hci: periodic advertising requires ENABLE_LE_PERIODIC_ADVERTISING 2022-03-16 09:26:48 +01:00
Matthias Ringwald
de9f0299a4 hci: trigger disconnect for dedicated bonding on read encryption key size complete 2022-03-03 13:20:38 +01:00
Matthias Ringwald
5999ee11ac hci: emit dedicated bonding complete on pairing complete and encryption complete with error 2022-03-03 13:20:38 +01:00
Matthias Ringwald
8c021356a2 hci: use 32-bit bit to store local supported commands 2022-03-02 16:15:50 +01:00
Matthias Ringwald
a355334e49 hci: make use of encryption key size v2 event 2022-02-28 18:04:37 +01:00
Matthias Ringwald
ff7d175860 hci: send set event mask 2 during init 2022-02-28 17:31:08 +01:00
Matthias Ringwald
a391128d2f gap: set min encryption key size during init, if supported 2022-02-25 17:46:13 +01:00
Matthias Ringwald
eaf85bc852 gap: add gap_secure_connections_active() to query if BR/EDR Secure Connecions are possible 2022-02-25 11:21:28 +01:00
Matthias Ringwald
22d445d87e gap: add gap_secure_connections_active() to query if BR/EDR Secure Connecions are possible 2022-02-25 11:19:02 +01:00
Matthias Ringwald
79b7ea2d2d hci: get iso packet buffers info 2022-02-17 22:07:17 +01:00
Matthias Ringwald
1a4fdac4e3 hci: fix handling of HCI Connection Complete with error (regression introduced in v1.5.1) 2022-02-17 18:12:20 +01:00
Matthias Ringwald
8250c24233 hci: skip send read local name if classic is not enabled 2022-02-16 19:34:44 +01:00
Matthias Ringwald
d54b2c94f4 hci: fix le scan with filterlist 2022-02-11 12:04:27 +01:00
Matthias Ringwald
d5f71a7e3a hci: fix warnings 2022-02-10 15:47:49 +01:00
Matthias Ringwald
911801ca95 hci: stop extended and periodic advertisements during halt 2022-02-10 15:33:35 +01:00
Matthias Ringwald
c42da3bc27 hci: extract hci_le_scan_stop 2022-02-10 11:40:37 +01:00
Matthias Ringwald
0c88d5ef91 hci: rework hci halting states, stop scans and advertisements
# Conflicts:
#	src/hci.c
2022-02-10 11:30:37 +01:00
Matthias Ringwald
184dbe2ff5 hci: extract hci_power_transition_to_halting, try to wait for disconnection complete event 2022-02-10 11:23:41 +01:00
Matthias Ringwald
22df2fe23a hci: trigger read rssi and write link supervision timeout via gap_connection_tasks 2022-02-09 21:32:11 +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
7f839e2c2f hci: fix returnes status for sniff and qos functions 2022-02-09 11:58:53 +01:00
Matthias Ringwald
0f7610ad0c hci: fix GAP_EVENT_EXTENDED_ADVERTISING_REPORT 2022-02-07 17:04:50 +01:00
Matthias Ringwald
0cbe469026 hci: fix set periodic advertising command 2022-02-03 12:48:42 +01:00
Matthias Ringwald
2e4aaf70bb hci: use const for advertisment/scan response data 2022-02-03 12:48:42 +01:00
Matthias Ringwald
b02cfc15b9 hci: stop timer on deinit 2022-02-01 10:10:03 +01:00
Matthias Ringwald
6c0d5426fc hci: ENABLE_HCI_SERIALIZED_CONTROLLER_OPERATIONS serializes Inquiry, Remote Name Request and Create Connection operations 2022-01-24 18:10:16 +01:00
Matthias Ringwald
53f240c0b0 gap: support periodic advertising 2022-01-14 17:51:25 +01:00
Matthias Ringwald
57a04237da gap: rename le_advertising_set.params - le_advertising_set.extended_params 2022-01-14 17:51:25 +01:00
Matthias Ringwald
8caa405cba gap: track enabled extended advertising set 2022-01-14 17:51:25 +01:00
Matthias Ringwald
ee54aff517 hci: fix build 2022-01-12 11:23:31 +01:00
Matthias Ringwald
f66adbded4 gap: move set random address for adv events into main modify loop 2022-01-11 20:40:41 +01:00
Matthias Ringwald
25df6c6155 gap: emit advertising set installed / removed events 2022-01-11 20:40:40 +01:00
Matthias Ringwald
174b4d2127 hci: track advertisement set for set params, adv data, scan response commands 2022-01-11 20:40:40 +01:00
Matthias Ringwald
be7ef9d86a gap: manage advertising sets on controller 2022-01-11 20:40:40 +01:00
Matthias Ringwald
a5770ecb11 gap: implement extended advertising api 2022-01-11 20:40:40 +01:00
Matthias Ringwald
a408e724ff hci: replace le_advertisements_enabled with le_advertisements_state.LE_ADVERTISEMENT_STATE_ENABLED 2022-01-11 20:40:40 +01:00