auto-pts: log unpair of le device

This commit is contained in:
Matthias Ringwald 2020-01-28 17:33:02 +01:00
parent 72ba479b40
commit ed105bf119

View File

@ -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);
uint16_t index;
for (index =0 ; index < le_device_db_max_count(); index++){
#if 0
int addr_type;
bd_addr_t addr;
// sm_key_t irk;
memset(addr, 0, 6);
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);
}
#else
// just remove all bondings
le_device_db_remove(index);
#endif
}
btp_send(BTP_SERVICE_ID_GAP, opcode, controller_index, 0, NULL);
}