device: Fix not always storing device info
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Mar 2023 00:47:33 +0000 (16:47 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:21:48 +0000 (15:51 +0530)
commit5fceb46294254b416f0d67e276a75c8626e764a7
tree17246e3d6b7677b621caef24ed61e087149279c4
parent41dfab71f13d2ff5bc8456e057da1098fcd3dee5
device: Fix not always storing device info

When updating the device address check if the device is marked as
temporary before attempting to call store_device_info otherwise it will
have no effect and instead btd_device_set_temporary must be called.
src/device.c