update bond remove keys
This commit is contained in:
1 parent
c6167bc4e5
commit
e6bcfcb4c0
2 files changed
+6
-6
No files matched your search
@@ -389,10 +389,10 @@ void bond_clear_all(void)
|
||||
InternalFS.mkdir(BOND_DIR_CNTR);
|
||||
}
|
||||
|
||||
void bond_remove_key(uint8_t role, uint16_t ediv)
|
||||
void bond_remove_key(uint8_t role, ble_gap_addr_t const* id_addr)
|
||||
{
|
||||
// char filename[BOND_FNAME_LEN];
|
||||
// get_fname(filename, role, ediv);
|
||||
//
|
||||
// InternalFS.remove(filename);
|
||||
char filename[BOND_FNAME_LEN];
|
||||
get_fname(filename, role, id_addr->addr);
|
||||
|
||||
InternalFS.remove(filename);
|
||||
}
|
||||
@@ -57,7 +57,7 @@ void bond_clear_prph(void);
|
||||
void bond_clear_cntr(void);
|
||||
void bond_clear_all(void);
|
||||
|
||||
void bond_remove_key(uint8_t role, uint16_t ediv) TU_ATTR_DEPRECATED("FIXME remove key");
|
||||
void bond_remove_key(uint8_t role, ble_gap_addr_t const* id_addr);
|
||||
|
||||
bool bond_save_keys (uint8_t role, uint16_t conn_hdl, bond_keys_t const* bkeys);
|
||||
bool bond_load_keys(uint8_t role, ble_gap_addr_t*, bond_keys_t* bkeys);
|
||||
|
||||
Reference in new issue
Block a user