OSDN Git Service

Correct spec_idx in bta_dm_pm_cfg
authorAllen-CT Chu <allen-ct.chu@mediatek.com>
Mon, 3 Jun 2019 06:44:32 +0000 (14:44 +0800)
committerMyles Watson <mylesgw@google.com>
Fri, 13 Sep 2019 15:57:50 +0000 (15:57 +0000)
commitaf30511e0fc453bcc99724798fab730b02e5f7cd
tree5ebbddc31b06607a009ac1e8361ff27ebeb3973c
parentaa5fd6cdac10effb589b54dbf5978022f7c3a80c
Correct spec_idx in bta_dm_pm_cfg

After adding separate sniff mode settings for gamepads,
all the spec_idxes in bta_dm_pm_cfg larger than 6 are
not shifted by 1.
Correct the spec_idx to use the right bta_dm_pm_spec.

Fixes: 134444864
Test: Send data through OPP, data should be large enough
      to send over 30s.
      Before this fix, when we send data through OPP,
      it will enter sniff mode after 30s because of
      using the wrong spec_idx.
      After this fix, it will not enter sniff mode.

Change-Id: I9dcd3e8b075b35fa09a08e32cc8ff1522b8cd6ca
bta/dm/bta_dm_cfg.cc