system/bt
Revision | 8302b14c71086bc20629537c31336a6a537e07e5 (tree) |
---|---|
Time | 2019-07-11 05:30:43 |
Author | Andre Eisenbach <eisenbach@goog...> |
Commiter | android-build-merger |
Switch Nintendo workaround to match by name
am: c14c14fbc4
Change-Id: I89b558a9b3e87b58e15a8358fa66258fc03a882f
@@ -21,6 +21,7 @@ | ||
21 | 21 | #if (BTA_HH_INCLUDED == TRUE) |
22 | 22 | |
23 | 23 | #include "bta_hh_int.h" |
24 | +#include "btif/include/btif_storage.h" | |
24 | 25 | #include "device/include/interop.h" |
25 | 26 | #include "osi/include/osi.h" |
26 | 27 |
@@ -394,9 +395,14 @@ tBTA_HH_STATUS bta_hh_read_ssr_param(const RawAddress& bd_addr, | ||
394 | 395 | if (ssr_max_latency > BTA_HH_SSR_MAX_LATENCY_DEF) |
395 | 396 | ssr_max_latency = BTA_HH_SSR_MAX_LATENCY_DEF; |
396 | 397 | |
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 | + } | |
400 | 406 | } |
401 | 407 | |
402 | 408 | *p_max_ssr_lat = ssr_max_latency; |