2012-11-04 20:31:47

by Andre Guedes

[permalink] [raw]
Subject: [PATCH BlueZ] Enable reconnection in Proximity monitor

According to Proximity Profile spec, when a connection is terminated
due to link loss a Proximity Monitor should attempt to reconnect.
---
profiles/proximity/monitor.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/profiles/proximity/monitor.c b/profiles/proximity/monitor.c
index 1a14265..e45fa4a 100644
--- a/profiles/proximity/monitor.c
+++ b/profiles/proximity/monitor.c
@@ -652,6 +652,8 @@ int monitor_register(struct btd_device *device,
attio_disconnected_cb,
monitor);

+ device_set_auto_connect(device, TRUE);
+
return 0;
}

--
1.8.0



2012-11-05 08:30:11

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH BlueZ] Enable reconnection in Proximity monitor

Hi Andre,

On Sun, Nov 04, 2012, Andre Guedes wrote:
> According to Proximity Profile spec, when a connection is terminated
> due to link loss a Proximity Monitor should attempt to reconnect.
> ---
> profiles/proximity/monitor.c | 2 ++
> 1 file changed, 2 insertions(+)

Applied. Thanks.

Johan