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:
Luiz Augusto von Dentz 2020-02-11 10:22:41 -08:00 committed by Johan Hedberg
commit b6825ffc31

View file

@ -1862,10 +1862,8 @@ 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)
{