OSDN Git Service

core: Split LE and BR/EDR states for devices
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 21 Feb 2014 13:07:35 +0000 (15:07 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 21 Feb 2014 14:15:56 +0000 (16:15 +0200)
commita9f523e0c3627ea2ea3c894c2d34b756ee533637
tree8131637cbee6d1db8c7197742dcf03a1c28fa3d1
parente87dadbe1bbfa39feead7488a06605e0cda29ecb
core: Split LE and BR/EDR states for devices

For dual mode devices there are several state variables that are
independent for each bearer. This patch splits these states up into two
separate variable groups in btd_device and tracks the values based on
what kind of connection is in question.

The information is also used to select which bearer to use with
Device1.Connect and Device1.Pair. The basic rule is that the bearer
that's not connected/paired is selected, or then the bearer over which
the device was last seen is selected.
plugins/neard.c
profiles/gatt/gas.c
src/adapter.c
src/attrib-server.c
src/device.c
src/device.h