• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

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

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

system/bt


コミットメタ情報

リビジョン8302b14c71086bc20629537c31336a6a537e07e5 (tree)
日時2019-07-11 05:30:43
作者Andre Eisenbach <eisenbach@goog...>
コミッターandroid-build-merger

ログメッセージ

Switch Nintendo workaround to match by name
am: c14c14fbc4

Change-Id: I89b558a9b3e87b58e15a8358fa66258fc03a882f

変更サマリ

差分

--- a/bta/hh/bta_hh_utils.cc
+++ b/bta/hh/bta_hh_utils.cc
@@ -21,6 +21,7 @@
2121 #if (BTA_HH_INCLUDED == TRUE)
2222
2323 #include "bta_hh_int.h"
24+#include "btif/include/btif_storage.h"
2425 #include "device/include/interop.h"
2526 #include "osi/include/osi.h"
2627
@@ -394,9 +395,14 @@ tBTA_HH_STATUS bta_hh_read_ssr_param(const RawAddress& bd_addr,
394395 if (ssr_max_latency > BTA_HH_SSR_MAX_LATENCY_DEF)
395396 ssr_max_latency = BTA_HH_SSR_MAX_LATENCY_DEF;
396397
397- if (interop_match_addr(INTEROP_HID_HOST_LIMIT_SNIFF_INTERVAL,
398- &bd_addr)) {
399- if (ssr_max_latency > 18 /* slots * 0.625ms */) ssr_max_latency = 18;
398+ char remote_name[BTM_MAX_REM_BD_NAME_LEN] = "";
399+ if (btif_storage_get_stored_remote_name(bd_addr, remote_name)) {
400+ if (interop_match_name(INTEROP_HID_HOST_LIMIT_SNIFF_INTERVAL,
401+ remote_name)) {
402+ if (ssr_max_latency > 18 /* slots * 0.625ms */) {
403+ ssr_max_latency = 18;
404+ }
405+ }
400406 }
401407
402408 *p_max_ssr_lat = ssr_max_latency;