OSDN Git Service

Ignore the Class Of Device if the value is invalid
authorPavlin Radoslavov <pavlin@google.com>
Thu, 8 Jun 2017 22:22:52 +0000 (15:22 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 8 Jun 2017 23:58:40 +0000 (16:58 -0700)
commit7fe86917d75785f33992b172e5241744a0f80e17
treee6821638ed2a3a1b94ae66e019264826d77c4a07
parente0035727e311ca09a0e59910c05e4ad365c417a2
Ignore the Class Of Device if the value is invalid

If a Bluetooth Device is dual-mode and is discoverable as both
a Classic and a LE device, ignore unknown "zero" values
triggered by the LE advertisements. Otherwise, those could overwrite
a valid (previously discovered) Class Of Device.

Bug: 37615863
Test: Manual with LG HBS1100 headset
Change-Id: I5a0f6ef56248b41d973b850a5542475e45e0312d
(cherry picked from commit a052757882927c042399d614bc298f9704ce07a3)
btif/src/btif_dm.cc