From: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Subject: [PATCHv2 1/4] android/hal-ipc-api: Update HidHost with Android 5 API
Date: Thu, 20 Nov 2014 12:18:48 +0100 [thread overview]
Message-ID: <1416482331-3766-1-git-send-email-jakub.tyszkowski@tieto.com> (raw)
---
android/hal-ipc-api.txt | 38 ++++++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 14 deletions(-)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 67a6205..efcd3cf 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -599,6 +599,23 @@ Commands and responses:
Notifications:
+ Status is common for many notifications and has fixed value range:
+
+ Status values: 0x00 = Ok
+ 0x01 = Handshake - Device not ready
+ 0x02 = Handshake - Invalid report ID
+ 0x03 = Handshake - Transaction not SPT
+ 0x04 = Handshake - Invalid parameter
+ 0x05 = Handshake - Generic error
+ 0x06 = General error
+ 0x07 = SDP error
+ 0x08 = Set protocol error
+ 0x09 = Device database full
+ 0x0a = Device type not supported
+ 0x0b = No resources
+ 0x0c = Authentication failed
+ 0x0d = HDL
+
Opcode 0x81 - Connection State notification
Notification parameters: Remote address (6 octets)
@@ -656,20 +673,13 @@ Notifications:
Notification parameters: Remote address (6 octets)
Status (1 octet)
- Valid status values: 0x00 = Ok
- 0x01 = Handshake - Device not ready
- 0x02 = Handshake - Invalid report ID
- 0x03 = Handshake - Transaction not SPT
- 0x04 = Handshake - Invalid parameter
- 0x05 = Handshake - Generic error
- 0x06 = General error
- 0x07 = SDP error
- 0x08 = Set protocol error
- 0x09 = Device database full
- 0x0a = Device type not supported
- 0x0b = No resources
- 0x0c = Authentication failed
- 0x0d = HDL
+ Opcode 0x87 - Handshake notification
+
+ Notification parameters: Remote address (6 octets)
+ Status (1 octet)
+
+ Only status values from 0x00 to 0x05 are valid as handshake
+ status.
Bluetooth PAN HAL (ID 4)
--
1.9.1
next reply other threads:[~2014-11-20 11:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 11:18 Jakub Tyszkowski [this message]
2014-11-20 11:18 ` [PATCHv2 2/4] android/hal: Update HidHost HAL for Android 5 Jakub Tyszkowski
2014-11-20 11:18 ` [PATCHv2 3/4] android/hid: Support handshake message Jakub Tyszkowski
2014-11-20 11:18 ` [PATCHv2 4/4] android/client: Add handshake callback Jakub Tyszkowski
2014-11-20 15:23 ` [PATCHv2 1/4] android/hal-ipc-api: Update HidHost with Android 5 API Szymon Janc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1416482331-3766-1-git-send-email-jakub.tyszkowski@tieto.com \
--to=jakub.tyszkowski@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox