2021-01-18 9:00 JST 〜 メンテナンスによるサービス全停止予定
  • R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

system/bt


コミットメタ情報

リビジョンcda119df1f6bd0e743962666feff215daad28f09 (tree)
日時2019-11-14 13:21:27
作者Jeevaka Prabu Badrappan <jeevaka.badrappan@inte...>
コミッターChih-Wei Huang

ログメッセージ

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>

変更サマリ

差分

--- a/btif/src/btif_storage.cc
+++ b/btif/src/btif_storage.cc
@@ -208,10 +208,12 @@ static int prop2cfg(const RawAddress* remote_bd_addr, bt_property_t* prop) {
208208 : prop->len;
209209 strncpy(value, (char*)prop->val, name_length);
210210 value[name_length] = '\0';
211- if (remote_bd_addr)
211+ if (remote_bd_addr) {
212212 btif_config_set_str(bdstr, BTIF_STORAGE_PATH_REMOTE_NAME, value);
213- else
213+ } else {
214214 btif_config_set_str("Adapter", BTIF_STORAGE_KEY_ADAPTER_NAME, value);
215+ btif_config_flush();
216+ }
215217 break;
216218 }
217219 case BT_PROPERTY_REMOTE_FRIENDLY_NAME: