mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-01 01:13:23 +00:00
gap: add gap_secure_connections_enable
fix logic to send Write Secure Connections Host Enable command
This commit is contained in:
parent
7631af51db
commit
0d589c3720
@ -1813,7 +1813,7 @@ static void hci_initializing_event_handler(const uint8_t * packet, uint16_t size
|
||||
|
||||
case HCI_INIT_W4_WRITE_INQUIRY_MODE:
|
||||
// skip write secure connections host support if not supported or disabled
|
||||
if (hci_stack->secure_connections_enable && hci_stack->local_supported_commands[1] & 0x02) {
|
||||
if (!hci_stack->secure_connections_enable || (hci_stack->local_supported_commands[1] & 0x02) == 0) {
|
||||
hci_stack->substate = HCI_INIT_WRITE_SCAN_ENABLE;
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user