• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


コミットメタ情報

リビジョン0aabc8703381d0b2e25901ea4de6ae3b8717a871 (tree)
日時2016-10-04 11:32:03
作者Ethan Chen <intervigil@gmai...>
コミッターEthan Chen

ログメッセージ

bt: Fix HCI driver selection logic for Qualcomm Bluetooth

* Previously BT_SOC_SMD was the same as BT_SOC_DEFAULT, which

is no longer true.

* The iteration to determine SOC type only worked due to the specific

values of BT_SOC_DEFAULT and BT_SOC_SMD previously. Fix the iteration
to actually check all SOC types.

Change-Id: If282200737099d6587f3dc6fcd0a7e70b93996cb

変更サマリ

差分

--- a/utils/src/bt_utils.c
+++ b/utils/src/bt_utils.c
@@ -1101,9 +1101,9 @@ static void init_soc_type()
11011101 soc_type = BT_SOC_DEFAULT;
11021102 ret = property_get("qcom.bluetooth.soc", bt_soc_type, NULL);
11031103 if (ret != 0) {
1104- int i;
1104+ unsigned int i;
11051105 ALOGI("qcom.bluetooth.soc set to %s\n", bt_soc_type);
1106- for ( i = BT_SOC_AR3K ; i < BT_SOC_RESERVED ; i++ )
1106+ for ( i = 0 ; i < sizeof(soc_type_entries)/sizeof(soc_type_entries[0]) ; i++ )
11071107 {
11081108 char* soc_name = soc_type_entries[i].soc_name;
11091109 if (!strcmp(bt_soc_type, soc_name)) {