[PATCH 01/36] android/gatt: Add comment about event type being sent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jakub Tyszkowski <jakub.tyszkowski@xxxxxxxxx>

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

diff --git a/android/gatt.c b/android/gatt.c
index 0e81e7d..ed4ee75 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -599,6 +599,11 @@ failed:
 static void send_client_disconnection_notify(struct app_connection *connection,
 								int32_t status)
 {
+	/* disconnect and connect events are binary the same so its safe to pass
+	 * hal_ev_gatt_client_disconnect struct even for connect event.
+	 * Note that server do this the right way, having single event for
+	 * connection state notification.
+	 */
 	struct hal_ev_gatt_client_disconnect ev;
 
 	ev.client_if = connection->app->id;
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux