Parent: 670354f2fc1356d948066358912c4b05ef5204e4
Author: Claudio Takahasi <claudio.takahasi@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-10-03 10:51:09
Tree: 916810d0b0ef11e558aa5056093942b8a5643a3f
core: Re-connect for ECONNRESET or ECONNABORTED This patch keeps scanning and re-connections active if the disconnection reason is ECONNRESET(Remote Initiated Disconnection). Re-connection is a behaviour determined by Profiles or by the upper layer(user actions). For instance, HoG requires re-connection always active, no matter if the previous disconnection reason was page timeout or remote initiated disconnection (ECONNRESET). Some devices disconnects after some idle time, connectable advertises are sent by the peripheral when commanded by the user(eg: key pressed). Disconnection can be also triggered by the local host (ECONNABORTED) using command line tools or Disconnect method in the Device interface. The peripheral dictates the re-connection controlling the connectable advertises, BlueZ(central) needs to keep the scanning always active to able to detect the advertises and trigger the connection.
Diffstat
| M | src/device.c | | | 12 | ++++++++++- - |
1 files changed, 10 insertions(+), 2 deletions(-)