OSDN Git Service

Fix for Bluetooth device name reset to default name after reboot
authorJeevaka Prabu Badrappan <jeevaka.badrappan@intel.com>
Mon, 27 Aug 2018 17:13:22 +0000 (22:43 +0530)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 14 Nov 2019 04:21:27 +0000 (12:21 +0800)
commitcda119df1f6bd0e743962666feff215daad28f09
tree33ae21b8afc009220b8f7fd434a95b8a1456bda5
parent1655984bf128ba02da7ed2d7f4fa66a05a180e33
Fix for Bluetooth device name reset to default name after reboot

Reason: When the BT device name is updated is getting saved
to the config data pointer but not to the persistent data
(i.e. bt_config.conf). So, when the reboot is happening it
is not able to get the updated device name from the persistent
data (i.e. bt_config.conf) as during reboot bt_config_flush is
not called. It is only called on the BT Enable Event.

Fix: Saving the BT Device name to persistent data using
btif_config_flush once it is set.

Tracked-On: OAM-67917

Signed-off-by: Gaganpreet kaur <gaganpreetx.kaur@intel.com>
Signed-off-by: Aiswarya Cyriac <aiswarya.cyriac@intel.com>
btif/src/btif_storage.cc