From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> The new behavior of bt_gatt_client is to discovery the entire range (0x0001-0xffff) not service by service. --- unit/test-gatt.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/unit/test-gatt.c b/unit/test-gatt.c index e0d29c7..819bf05 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, 0xff, 0xff, 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, 0xff, 0xff, 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, 0x01, 0x00, 0xff, 0xff, 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), \ -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html