All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready
@ 2014-05-26 15:03 Szymon Janc
  2014-05-26 15:03 ` [PATCH 2/4] android/README: Update required kernel options Szymon Janc
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Szymon Janc @ 2014-05-26 15:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

---
 android/hal-gatt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 93dc066..6f0d2c5 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -573,6 +573,9 @@ static bt_status_t register_client(bt_uuid_t *uuid)
 {
 	struct hal_cmd_gatt_client_register cmd;
 
+	if (!interface_ready())
+		return BT_STATUS_NOT_READY;
+
 	memcpy(cmd.uuid, uuid, sizeof(*uuid));
 
 	return hal_ipc_cmd(HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_REGISTER,
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-26 22:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 15:03 [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready Szymon Janc
2014-05-26 15:03 ` [PATCH 2/4] android/README: Update required kernel options Szymon Janc
2014-05-26 15:03 ` [PATCH 3/4] android/pts: Update GATT tests results Szymon Janc
2014-05-26 15:03 ` [PATCH 4/4] android/README: Update information about GATT HAL support Szymon Janc
2014-05-26 22:11 ` [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready Szymon Janc

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.