diff --git a/android/gatt.c b/android/gatt.c
index 06a7ed4..702709f 100644
--- a/android/gatt.c
+++ b/android/gatt.c
return;
/* We are ok to perform connect now. Stop discovery
- * and once it is stopped continue with creating ACL
- */
+ * and once it is stopped continue with creating ACL
+ */
bt_le_discovery_stop(bt_le_discovery_stop_cb);
}
queue_foreach(dev->clients, client_disconnect_notify, dev);
- /* Reset conn_id and put on disconnected list.*/
+ /* Reset conn_id and put on disconnected list. */
put_device_on_disc_list(dev);
return FALSE;
if (scanning)
bt_le_discovery_start(le_device_found_handler);
- /*FIXME: What to do if discovery won't start here. */
+ /* FIXME: What to do if discovery won't start here. */
}
static int connect_le(struct gatt_device *dev)
DBG("Connection attempt to: %s", addr);
- /*TODO: If we are bonded then we should use higier sec level */
+ /* TODO: If we are bonded then we should use higier sec level */
sec_level = BT_IO_SEC_LOW;
- /*
- * This connection will help us catch any PDUs that comes before
+ /* This connection will help us catch any PDUs that comes before
* pairing finishes
*/
io = bt_io_connect(connect_cb, dev, NULL, &gerr,
{
DBG("");
- /* Check now if there is any device ready to connect*/
+ /* Check now if there is any device ready to connect */
if (connect_next_dev() < 0)
bt_le_discovery_start(le_device_found_handler);
}
android2bdaddr(&cmd->bdaddr, &addr);
/* We do support many clients for one device connection so lets check
- * If device is connected or in connecting state just update list of
- * clients
- */
+ * If device is connected or in connecting state just update list of
+ * clients
+ */
dev = find_device(&addr);
if (dev) {
/* Remeber to send dummy notification event if we area
ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_CONNECT,
status);
- /* If there is an error here we should make sure dev is out.*/
+ /* If there is an error here we should make sure dev is out. */
if ((status != HAL_STATUS_SUCCESS) && dev) {
destroy_device(dev);
return;
}
- /* Send dummy notification since ACL is already up*/
+ /* Send dummy notification since ACL is already up */
if (send_notify) {
struct hal_ev_gatt_client_connect ev;