mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
added delete link key command
This commit is contained in:
parent
0bde9e3bd6
commit
a5401a9522
@ -418,6 +418,7 @@ void show_usage(){
|
||||
printf("x - require SSP for outgoing SDP L2CAP channel\n");
|
||||
printf("+ - initate SSP on current connection\n");
|
||||
printf("* - send SSP User Confirm YES\n");
|
||||
printf("= - delete link key\n");
|
||||
printf("---\n");
|
||||
printf("Ctrl-c - exit\n");
|
||||
printf("---\n");
|
||||
@ -619,6 +620,11 @@ int stdin_process(struct data_source *ds){
|
||||
hci_send_cmd(&hci_user_confirmation_request_reply, remote);
|
||||
break;
|
||||
|
||||
case '=':
|
||||
printf("Deleting Link Key for %s\n", bd_addr_to_str(remote));
|
||||
hci_drop_link_key_for_bd_addr(&remote);
|
||||
break;
|
||||
|
||||
default:
|
||||
show_usage();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user