mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 12:39:51 +00:00
auto-pts: log unpair of le device
This commit is contained in:
parent
72ba479b40
commit
ed105bf119
@ -1025,19 +1025,14 @@ static void btp_gap_handler(uint8_t opcode, uint8_t controller_index, uint16_t l
|
|||||||
gap_drop_link_key_for_bd_addr(command_addr);
|
gap_drop_link_key_for_bd_addr(command_addr);
|
||||||
uint16_t index;
|
uint16_t index;
|
||||||
for (index =0 ; index < le_device_db_max_count(); index++){
|
for (index =0 ; index < le_device_db_max_count(); index++){
|
||||||
#if 0
|
|
||||||
int addr_type;
|
int addr_type;
|
||||||
bd_addr_t addr;
|
bd_addr_t addr;
|
||||||
// sm_key_t irk;
|
|
||||||
memset(addr, 0, 6);
|
memset(addr, 0, 6);
|
||||||
le_device_db_info(index, &addr_type, addr, NULL);
|
le_device_db_info(index, &addr_type, addr, NULL);
|
||||||
if (bd_addr_cmp(command_addr, addr) == 0){
|
if (addr_type != BD_ADDR_TYPE_UNKNOWN){
|
||||||
|
log_info("Remove LE Device with index %u, addr type %x, addr %s", index, addr_type, bd_addr_to_str(addr));
|
||||||
le_device_db_remove(index);
|
le_device_db_remove(index);
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
// just remove all bondings
|
|
||||||
le_device_db_remove(index);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
btp_send(BTP_SERVICE_ID_GAP, opcode, controller_index, 0, NULL);
|
btp_send(BTP_SERVICE_ID_GAP, opcode, controller_index, 0, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user