dundee: disconnect bluetooth link in case dial fails

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().
This commit is contained in:
Gustavo Padovan 2012-08-13 18:52:06 -03:00 committed by Daniel Wagner
parent 371b886bab
commit e0b793af8a
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,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)