mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
sm: assert that hci commands can be sent before LTK negative reply
This commit is contained in:
parent
d5d6b232dd
commit
275aafe88f
@ -1882,6 +1882,9 @@ static void sm_run(void){
|
||||
}
|
||||
#endif
|
||||
|
||||
// assert that we can send at least commands - cmd might have been sent by crypto engine
|
||||
if (!hci_can_send_command_packet_now()) return;
|
||||
|
||||
// handle basic actions that don't requires the full context
|
||||
hci_connections_get_iterator(&it);
|
||||
while((sm_active_connection_handle == HCI_CON_HANDLE_INVALID) && btstack_linked_list_iterator_has_next(&it)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user