hci: skip HCI Read Buffer Size if Classic not enabled

This commit is contained in:
Matthias Ringwald 2020-09-11 16:55:34 +02:00
parent e29c33b5cf
commit 2ac123ee4e

View File

@ -1758,11 +1758,13 @@ static void hci_initializing_event_handler(const uint8_t * packet, uint16_t size
return;
#endif
case HCI_INIT_W4_READ_BD_ADDR:
#ifdef ENABLE_CLASSIC
// only read buffer size if supported
if (hci_stack->local_supported_commands[0u] & 0x01u) {
hci_stack->substate = HCI_INIT_READ_BUFFER_SIZE;
return;
}
#endif
// skipping read buffer size
hci_stack->substate = HCI_INIT_READ_LOCAL_SUPPORTED_FEATURES;
return;