870 Commits

Author SHA1 Message Date
Matthias Ringwald
49bafb5ea1 hci: track remote extended features flag 2020-06-03 12:27:16 +02:00
Matthias Ringwald
76ccfb2aa2 hci: move eSCO remote feature into remote supported feature bit field 2020-06-03 12:27:16 +02:00
Matthias Ringwald
de0df01371 hci: extract hci_handle_remote_features_received 2020-06-03 12:27:16 +02:00
Matthias Ringwald
ba0187464a hci: split request remote supported features into read features page 0, 1, and 2 2020-06-03 12:27:16 +02:00
Matthias Ringwald
ac1d102c1d hci: clarify BONDING_REMOTE_SUPPORTS_SSP as BONDING_REMOTE_SUPPORTS_SSP_CONTROLLER 2020-06-03 12:27:16 +02:00
Matthias Ringwald
254b78ee86 gap: Detect Secure Connection -> Legacy Connection Downgrade Attack (BIAS) 2020-06-01 23:56:05 +02:00
Matthias Ringwald
0d589c3720 gap: add gap_secure_connections_enable
fix logic to send Write Secure Connections Host Enable command
2020-06-01 23:38:41 +02:00
Matthias Ringwald
5d23aae8c9 gap: add gap_secure_connections_enable 2020-05-29 20:06:06 +02:00
Matthias Ringwald
3b65523c39 Revert "hci: write secure connections host enable if command supported"
This reverts commit 47bc3ebbd9c7203e97682307a2d63374390b5ae3.
2020-05-27 18:03:27 +02:00
Matthias Ringwald
47bc3ebbd9 hci: write secure connections host enable if command supported 2020-05-27 18:01:25 +02:00
Matthias Ringwald
8d2d8af11c hci: check if Read Remote Extended Features Command is implemented 2020-05-26 16:25:06 +02:00
Matthias Ringwald
78315a5857 GAP: gap_set_security_level sets required security level for incoming and outgoing connections 2020-05-08 15:49:50 +02:00
Matthias Ringwald
593702caae hci: release outgoing packet buffer if hci command is skipped 2020-05-05 16:37:46 +02:00
Matthias Ringwald
3c9da642e7 btstack_util: provide btstack_replace_bd_addr_placeholder 2020-04-30 17:26:11 +02:00
Matthias Ringwald
638732106a hci: only update shortened and complete local name items in provided EIR data 2020-04-30 15:04:31 +02:00
Matthias Ringwald
7918681544 hci: limit device name by buffer len for write local name and write eir data 2020-04-30 14:32:02 +02:00
Matthias Ringwald
a8c4e5ade0 hci: introduce EXTENDED_INQUIRY_RESPONSE_DATA_LEN 2020-04-30 12:52:26 +02:00
Matthias Ringwald
0f3b27c545 hci: implement ENABLE_LE_LIMIT_ACL_FRAGMENT_BY_MAX_OCTETS 2020-04-29 21:35:24 +02:00
Matthias Ringwald
046ec007c6 hci: emit dedicated bonding complete before disconnection complete 2020-04-22 11:40:13 +02:00
Matthias Ringwald
672e36abdf hci: handle hci_create_connection triggered in disconnection complete event 2020-04-22 11:40:12 +02:00
Matthias Ringwald
b01363557c hci: handle gap_connect triggered by disconnection complete event 2020-04-22 11:40:12 +02:00
Matthias Ringwald
62473419f7 hci: allow to specify HCI_RESET_RESEND_TIMEOUT_MS from btstack_config.h 2020-04-14 16:02:38 +02:00
Matthias Ringwald
67c6c9dce6 hci: reduce comparison to handle event, extract handle_event_for_current_stack_state 2020-04-14 11:59:02 +02:00
Matthias Ringwald
07fd2f3183 hci: extract hci_initializing_event_handler_command_completed 2020-04-14 11:59:02 +02:00
Matthias Ringwald
55573af2da hci: reduce comparisons to process outgoing hci commands 2020-04-14 11:14:15 +02:00
Matthias Ringwald
f30077b726 hci: split hci_run into multiple sub statemachines 2020-04-14 11:14:15 +02:00
Matthias Ringwald
f19b3c9e44 chipset/bcm: wait 300 ms after PatchRAM update in hci.c to assert Controller is ready 2020-04-07 15:48:15 +02:00
Matthias Ringwald
b4eb44208c hci: gap_set_allow_role_switch allows to prevent role switch in outgoing classic ACL connections 2020-04-02 21:51:56 +02:00
Matthias Ringwald
787e73a54d hci: fix gap_stop_scan - regression from 3251a10 2020-04-02 16:36:02 +02:00
Matthias Ringwald
1470db0ca8 test/gap: unit test for gap le scanning 2020-04-02 16:32:39 +02:00
Matthias Ringwald
a5a5d24ebb hci: fix LE-only build 2020-04-01 11:37:53 +02:00
Matthias Ringwald
6e058d3f51 hci: only send HCI Read Local Encryption Key Size if supported by Controller 2020-03-31 23:36:04 +02:00
Matthias Ringwald
3251a10887 gap: fixed gap_set_scan_parameters() if issued right before gap_start_scan() - issue #275 2020-03-13 15:25:42 +01:00
Milanka Ringwald
7d33cb261f test/fuzz: setup controller info to allow sending, set conn role as slave, cover more states 2020-03-10 10:16:10 +01:00
Matthias Ringwald
18976c74b2 test/fuzz: prepare classic acl + sco incoming and ready + le ready hci connection for fuzz_hci 2020-01-28 18:22:43 +01:00
Matthias Ringwald
77b3fe1a41 hci: fix validation of HCI_EVENT_NUMBER_OF_COMPLETED_PACKETS, incorrect check added in 9784dac 2020-01-23 17:36:07 +01:00
Matthias Ringwald
9784dac19c hci: validate size of hci inquiry events and num completed packet 2020-01-20 18:10:04 +01:00
Matthias Ringwald
eddac6153d test/fuzz: test hci 2020-01-20 18:08:59 +01:00
Matthias Ringwald
cf373d3aa5 streamline switch fall through markup to /* fall through */ 2020-01-07 10:01:07 +01:00
Matthias Ringwald
09c9c96382 gap: trigger send of le conn param update on gap_request_connection_parameter_update 2019-12-06 17:45:45 +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
a0da043fe7 MISRAC2012-Rule-14.4_b: compare iterator pointer against NULL in for loops 2019-12-02 12:27:17 +01:00
Matthias Ringwald
0e588213fd MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 15:48:31 +01:00
Matthias Ringwald
a1df452e0d MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:50:11 +01:00
Matthias Ringwald
c1ab6cc1be MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:31:48 +01:00
Matthias Ringwald
15a2796783 MISRAC2012-Rule-20.7: don't use comma operator 2019-11-19 12:21:02 +01:00
Matthias Ringwald
944188908f hci: fix compile for le only 2019-11-15 14:26:55 +01:00
Matthias Ringwald
e6c51921b0 gap: only set link supervision timeout if we're master 2019-11-15 14:09:37 +01:00
Matthias Ringwald
6909f06401 gap: write supervision timeout after connection complete [a2349] 2019-11-15 14:04:22 +01:00