Re: [PATCH] dundee: disconnect bluetooth link in case dial fails

2012-08-17 Thread Daniel Wagner
Hi Gustavo,

On Mon, Aug 13, 2012 at 06:52:06PM -0300, Gustavo Padovan wrote:
> From: Gustavo Padovan 
> 
> If the ATD*99# dial fails for some reason, NO CARRIER, for example, we
> need to disconnect the bluetooth link and do further clean up on
> disconnect_callback().

Patch applied.

thanks,
daniel
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


[PATCH] dundee: disconnect bluetooth link in case dial fails

2012-08-13 Thread Gustavo Padovan
From: Gustavo Padovan 

If the ATD*99# dial fails for some reason, NO CARRIER, for example, we
need to disconnect the bluetooth link and do further clean up on
disconnect_callback().
---
 dundee/device.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dundee/device.c b/dundee/device.c
index 709919a..5126071 100644
--- a/dundee/device.c
+++ b/dundee/device.c
@@ -357,6 +357,8 @@ err:
__ofono_dbus_pending_reply(&device->pending,
__dundee_error_failed(device->pending));
device->pending = NULL;
+
+   device->driver->disconnect(device, disconnect_callback, device);
 }
 
 static int device_dial_setup(struct dundee_device *device, int fd)
-- 
1.7.11.2

___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono