Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH 09/11] android/hid: Replace header checking magic number with defines Date: Tue, 5 Nov 2013 00:20:13 +0200 Message-Id: <1383603615-9953-10-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1383603615-9953-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1383603615-9953-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- android/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/hid.c b/android/hid.c index 2682b21e6..74de02f 100644 --- a/android/hid.c +++ b/android/hid.c @@ -200,7 +200,7 @@ static gboolean intr_io_watch_cb(GIOChannel *chan, gpointer data) } /* Discard non-data packets */ - if (bread == 0 || buf[0] != 0xA1) + if (bread == 0 || buf[0] != (HID_MSG_DATA | HID_DATA_TYPE_INPUT)) return TRUE; /* send data to uHID device skipping HIDP header byte */ -- 1.8.1.2