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
* The iteration to determine SOC type only worked due to the specific
Change-Id: If282200737099d6587f3dc6fcd0a7e70b93996cb
@@ -1101,9 +1101,9 @@ static void init_soc_type() | ||
1101 | 1101 | soc_type = BT_SOC_DEFAULT; |
1102 | 1102 | ret = property_get("qcom.bluetooth.soc", bt_soc_type, NULL); |
1103 | 1103 | if (ret != 0) { |
1104 | - int i; | |
1104 | + unsigned int i; | |
1105 | 1105 | 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++ ) | |
1107 | 1107 | { |
1108 | 1108 | char* soc_name = soc_type_entries[i].soc_name; |
1109 | 1109 | if (!strcmp(bt_soc_type, soc_name)) { |