summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-05-08 16:58:20 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-05-12 19:44:38 +0300
commit5d6ad0db841a40f6dff0445e0cbcfeadb2ca6cbc (patch)
treed3fd683989b56f9648f9b2f50ad89c3315a41de3 /unit
parentf78146f96fb254e43d3d003ddcdf97983cf764f1 (diff)
downloadbluez-5d6ad0db841a40f6dff0445e0cbcfeadb2ca6cbc.tar.gz
unit/test-gatt: Adjust the PDUs to the new behavior
The new behavior of bt_gatt_client is to discovery the entire range (0x0001-0xffff) not service by service.
Diffstat (limited to 'unit')
-rw-r--r--unit/test-gatt.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index e0d29c77b..3a784e962 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -134,10 +134,8 @@ struct context {
raw_pdu(0x01, 0x10, 0x09, 0x00, 0x0a), \
raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x01, 0x28), \
raw_pdu(0x01, 0x10, 0x01, 0x00, 0x0a), \
- raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28), \
+ raw_pdu(0x08, 0x01, 0x00, 0x08, 0x00, 0x02, 0x28), \
raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), \
- raw_pdu(0x08, 0x05, 0x00, 0x08, 0x00, 0x02, 0x28), \
- raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a), \
raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28), \
raw_pdu(0x09, 0x07, 0x02, 0x00, 0x02, 0x03, 0x00, 0x00, \
0x2a), \
@@ -163,10 +161,8 @@ struct context {
raw_pdu(0x01, 0x10, 0x0b, 0x00, 0x0a), \
raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x01, 0x28), \
raw_pdu(0x01, 0x10, 0x01, 0x00, 0x0a), \
- raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x02, 0x28), \
+ raw_pdu(0x08, 0x01, 0x00, 0x0a, 0x00, 0x02, 0x28), \
raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a), \
- raw_pdu(0x08, 0x05, 0x00, 0x0a, 0x00, 0x02, 0x28), \
- raw_pdu(0x01, 0x08, 0x05, 0x00, 0x0a), \
raw_pdu(0x08, 0x01, 0x00, 0x04, 0x00, 0x03, 0x28), \
raw_pdu(0x09, 0x07, 0x02, 0x00, 0x02, 0x03, 0x00, 0x00, \
0x2a), \
@@ -193,10 +189,8 @@ struct context {
raw_pdu(0x01, 0x10, 0x21, 0x03, 0x0a), \
raw_pdu(0x10, 0x01, 0x00, 0xff, 0xff, 0x01, 0x28), \
raw_pdu(0x01, 0x10, 0x01, 0x00, 0x0a), \
- raw_pdu(0x08, 0x00, 0x01, 0x21, 0x01, 0x02, 0x28), \
+ raw_pdu(0x08, 0x00, 0x01, 0x20, 0x03, 0x02, 0x28), \
raw_pdu(0x01, 0x08, 0x00, 0x01, 0x0a), \
- raw_pdu(0x08, 0x00, 0x03, 0x20, 0x03, 0x02, 0x28), \
- raw_pdu(0x01, 0x08, 0x00, 0x03, 0x0a), \
raw_pdu(0x08, 0x00, 0x01, 0x21, 0x01, 0x03, 0x28), \
raw_pdu(0x09, 0x07, 0x10, 0x01, 0x02, 0x11, 0x01, 0x00, \
0x2a, 0x20, 0x01, 0x02, 0x21, 0x01, 0x01, 0x2a),\
@@ -249,13 +243,11 @@ struct context {
raw_pdu(0x01, 0x10, 0x11, 0x00, 0x0a)
#define INCLUDE_DISC_SMALL_DB \
- raw_pdu(0x08, 0x10, 0xf0, 0x18, 0xf0, 0x02, 0x28), \
+ raw_pdu(0x08, 0x01, 0x00, 0xff, 0xff, 0x02, 0x28), \
raw_pdu(0x09, 0x08, 0x11, 0xf0, 0x01, 0x00, 0x0f, 0x00, \
0x0a, 0x18), \
- raw_pdu(0x08, 0x12, 0xf0, 0x18, 0xf0, 0x02, 0x28), \
- raw_pdu(0x01, 0x08, 0x12, 0xf0, 0x0a), \
- raw_pdu(0x08, 0x01, 0x00, 0x10, 0x00, 0x02, 0x28), \
- raw_pdu(0x01, 0x08, 0x01, 0x00, 0x0a)
+ raw_pdu(0x08, 0x12, 0xf0, 0xff, 0xff, 0x02, 0x28), \
+ raw_pdu(0x01, 0x08, 0x12, 0xf0, 0x0a)
#define CHARACTERISTIC_DISC_SMALL_DB \
raw_pdu(0x08, 0x10, 0xf0, 0x18, 0xf0, 0x03, 0x28), \