OSDN Git Service

core: don't set BR/EDR support when no flags present
authorScott James Remnant <scott@netsplit.com>
Thu, 3 Apr 2014 22:27:33 +0000 (15:27 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Apr 2014 07:19:49 +0000 (10:19 +0300)
commit61d41af3036a87e14ddd36ce9803d17f37466936
treeabce1900f97e916d3165c9f72352030de881b3aa
parent3d8a3b5c0be10223453ea2459b5a7ae6581e5047
core: don't set BR/EDR support when no flags present

The logic for setting the BR/EDR supported flag checked for the
non-presence of the BR/EDR Unsupported flag without checking whether
any flags were present at all.

This meant all LE-only devices that returned Scan Response Data were
being marked as supporting BR/EDR, since the flag was only set in the
initial AD and not the SRD.
src/adapter.c