mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 07:21:20 +00:00
hci: suppress connection request from higher layers if alloc fails
This commit is contained in:
parent
905ee0fd06
commit
f23819bcb1
@ -2714,7 +2714,9 @@ static void event_handler(uint8_t *packet, uint16_t size){
|
||||
// CONNECTION REJECTED DUE TO LIMITED RESOURCES (0X0D)
|
||||
hci_stack->decline_reason = ERROR_CODE_CONNECTION_REJECTED_DUE_TO_LIMITED_RESOURCES;
|
||||
bd_addr_copy(hci_stack->decline_addr, addr);
|
||||
break;
|
||||
hci_run();
|
||||
// avoid event to higher layer
|
||||
return;
|
||||
}
|
||||
conn->role = HCI_ROLE_SLAVE;
|
||||
conn->state = RECEIVED_CONNECTION_REQUEST;
|
||||
|
Loading…
x
Reference in New Issue
Block a user