mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-30 15:32:41 +00:00
delete link key from remote device db on hci_delete_stored_link_key command
This commit is contained in:
parent
038c3ed2ee
commit
8ef7394502
12
src/hci.c
12
src/hci.c
@ -698,12 +698,12 @@ int hci_send_cmd_packet(uint8_t *packet, int size){
|
||||
hci_add_connection_flags_for_flipped_bd_addr(&packet[3], SENT_PIN_CODE_NEGATIVE_REPLY);
|
||||
}
|
||||
|
||||
// accept connection
|
||||
|
||||
// reject connection
|
||||
|
||||
// close_connection?
|
||||
// set state = SENT_DISCONNECT
|
||||
if (IS_COMMAND(packet, hci_delete_stored_link_key)){
|
||||
if (hci_stack.remote_device_db){
|
||||
bt_flip_addr(addr, &packet[3]);
|
||||
hci_stack.remote_device_db->delete_link_key(&addr);
|
||||
}
|
||||
}
|
||||
|
||||
hci_stack.num_cmd_packets--;
|
||||
return hci_stack.hci_transport->send_packet(HCI_COMMAND_DATA_PACKET, packet, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user