diff options
author | Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> | 2014-05-26 15:16:27 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-05-30 14:10:53 +0300 |
commit | c618d0fa66b892a6f516be6f8a9be792a69c3265 (patch) | |
tree | 9819220d1309696e32ada07d34fb96652fd54db0 /android/bite-spp.txt | |
parent | f11e50810b3a61ec09ec7b8dab63bb90c92e2eae (diff) | |
download | bluez-c618d0fa66b892a6f516be6f8a9be792a69c3265.tar.gz |
android/a2dp: Fix removing device on incoming connection
Connection state is not changed for incoming connection, i.e. during
discovery device is still in disconnected state and in case connection
fails for some reason, device won't be removed due to triggered state
change disconnected->disconnected which is silently ignored.
This patch fixes this problem by changing device state to connecting
immediately after signalling channel is connected. This allows device
to be removed properly in case something fails and is also consistent
with behaviour of Bluedroid.
In addition there's new flag added to device which stores information
whether we're initiator of connection. This is required because before
fix this property was decided based on HAL state which we can't now
use since it will be always connecting for both incoming and outgoing
connections.
Diffstat (limited to 'android/bite-spp.txt')
0 files changed, 0 insertions, 0 deletions