summaryrefslogtreecommitdiff
path: root/android/tester-gatt.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-10-17 15:38:13 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-10-24 14:04:33 +0200
commit8e8ca99d434bb514090ca564974a9d7c5b3b5f17 (patch)
treeea46b0b224f04ea2560cc6b2e2a53b36e633d218 /android/tester-gatt.c
parenta74f2bced064068523b497f5dff18dddb5d87c42 (diff)
downloadbluez-8e8ca99d434bb514090ca564974a9d7c5b3b5f17.tar.gz
android/tester: Define write types for GATT test cases
Gatt test cases should use defined write types.
Diffstat (limited to 'android/tester-gatt.c')
-rw-r--r--android/tester-gatt.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/android/tester-gatt.c b/android/tester-gatt.c
index 8b95e9c0d..38dd0ee56 100644
--- a/android/tester-gatt.c
+++ b/android/tester-gatt.c
@@ -41,6 +41,11 @@
#define GATT_SERVER_TRANSPORT_BREDR 0x01
#define GATT_SERVER_TRANSPORT_LE_BREDR 0x02
+#define GATT_WRITE_TYPE_NO_RESPONSE 0x01
+#define GATT_WRITE_TYPE_DEFAULT 0x02
+#define GATT_WRITE_TYPE_PREPARE 0x03
+#define GATT_WRITE_TYPE_SIGNED 0x04
+
static struct queue *list; /* List of gatt test cases */
static int srvc1_handle;
@@ -368,7 +373,7 @@ static struct write_char_data write_char_data_1 = {
.conn_id = CONN1_ID,
.service = &service_1,
.characteristic = &characteristic_1,
- .write_type = 1,
+ .write_type = GATT_WRITE_TYPE_NO_RESPONSE,
.len = sizeof(value_2),
.p_value = value_2,
.auth_req = 0
@@ -378,7 +383,7 @@ static struct write_char_data write_char_data_2 = {
.conn_id = CONN1_ID,
.service = &service_1,
.characteristic = &characteristic_1,
- .write_type = 2,
+ .write_type = GATT_WRITE_TYPE_DEFAULT,
.len = sizeof(value_2),
.p_value = value_2,
.auth_req = 0