Bluetooth: GATT: Fix not clearing stored data when unpairing
GATT data shall not be considered conditional to BT_SETTINGS since the data is stored in RAM it must also be cleared when unpairing. Fixes #22514 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
730989078c
commit
b6825ffc31
1 changed files with 1 additions and 3 deletions
|
@ -1862,9 +1862,7 @@ static void unpair(u8_t id, const bt_addr_le_t *addr)
|
|||
}
|
||||
}
|
||||
|
||||
if (IS_ENABLED(CONFIG_BT_SETTINGS)) {
|
||||
bt_gatt_clear(id, addr);
|
||||
}
|
||||
}
|
||||
|
||||
static void unpair_remote(const struct bt_bond_info *info, void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue