blob: 06ebf1cde69137e3caaf814533373d41d8874af7 [file] [log] [blame]
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06001From 7dcc5f46a31ac4eaa67c0ab3aaae38005db7458f Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Mingli Yu <Mingli.Yu@windriver.com>
3Date: Fri, 24 Aug 2018 12:04:03 +0800
4Subject: [PATCH] test-gatt: Fix hung issue
5
6The below test hangs infinitely
7$ unit/test-gatt -p /robustness/unkown-request -d
8/robustness/unkown-request - init
9/robustness/unkown-request - setup
10/robustness/unkown-request - setup complete
11/robustness/unkown-request - run
12 GATT: < 02 17 00 ...
13 bt_gatt_server:MTU exchange complete, with MTU: 23
14 GATT: > 03 00 02 ...
15 PDU: = 03 00 02 ...
16 GATT: < bf 00
17
18Actually, the /robustness/unkown-request test does
19no action.
20
21Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2]
22
23Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060024
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080025---
26 unit/test-gatt.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/unit/test-gatt.c b/unit/test-gatt.c
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060030index f92d860..a5f7117 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080031--- a/unit/test-gatt.c
32+++ b/unit/test-gatt.c
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060033@@ -4479,7 +4479,7 @@ int main(int argc, char *argv[])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080034 test_server, service_db_1, NULL,
35 raw_pdu(0x03, 0x00, 0x02),
36 raw_pdu(0xbf, 0x00),
37- raw_pdu(0x01, 0xbf, 0x00, 0x00, 0x06));
38+ raw_pdu());
39
40 define_test_server("/robustness/unkown-command",
41 test_server, service_db_1, NULL,