Return-Path: From: Lukasz Rymanowski To: linux-bluetooth@vger.kernel.org Cc: szymon.janc@tieto.com, Jakub Tyszkowski Subject: [PATCH 01/36] android/gatt: Add comment about event type being sent Date: Tue, 29 Apr 2014 03:14:31 +0200 Message-Id: <1398734107-4793-2-git-send-email-lukasz.rymanowski@tieto.com> In-Reply-To: <1398734107-4793-1-git-send-email-lukasz.rymanowski@tieto.com> References: <1398734107-4793-1-git-send-email-lukasz.rymanowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Jakub Tyszkowski --- 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