From: Mats F. <ma...@us...> - 2001-02-27 15:32:45
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.12 1.13=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Added some sdp tests |
From: Marcus A. S. <mar...@us...> - 2001-02-28 19:29:58
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.13 1.14=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Fixed some compile errors. The diff of the modified file(s): --- unplug_test.c 2001/02/27 15:33:54 1.13 +++ unplug_test.c 2001/02/28 19:31:10 1.14 @@ -484,8 +484,7 @@ { flow qos; init_flow(&qos); - qos.type =3D 0x3; - qos.len =3D 0x16; + qos.bucket_size =3D 0x16; qos.flags =3D 0; qos.service =3D 0x2; =20 |
From: Mats F. <ma...@us...> - 2001-06-08 14:01:29
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.14 1.15=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Added some more tests for SDP The diff of the modified file(s): --- unplug_test.c 2001/02/28 19:31:10 1.14 +++ unplug_test.c 2001/06/08 14:01:27 1.15 @@ -63,6 +63,7 @@ extern sdp_con sdp_con_list[7]; =20 extern l2cap_con *testcon; /* is set in test.c */ +extern l2cap_con *test_con; extern s32 emulate_pending; /* is set in test.c */ extern s32 test_assymmetric_mtu; extern s32 dont_send_config_req; @@ -71,158 +72,173 @@ s32 test_role; =20 =20 -unsigned char sdp_test_52111[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, +unsigned char sdp_data_52111[] =3D {0x06, 0x00, 0x08, 0x00, 0x0d, + 0x35, 0x03, 0x19, 0x11, 0x02, 0x00, 0x64, + 0x35, 0x03, 0x09, 0x00, 0x04, 0x00}; +#if 0 +unsigned char sdp_data_52111[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0xff, 0x00}; - -unsigned char sdp_test_52113_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, +#endif +unsigned char sdp_data_52113_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_52113_2[] =3D {0x02, 0x77, 0x77, 0x00, 0x09, +unsigned char sdp_data_52113_2[] =3D {0x02, 0x77, 0x77, 0x00, 0x09, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0x01, 0x01, 0x00}; =20 -unsigned char sdp_test_52114[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, +unsigned char sdp_data_52114[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x12, 0x34, 0x00, 0xff, 0x00}; =20 -unsigned char sdp_test_52121[] =3D {0x02, 0x77, 0x77, 0x00, 0x0a, +unsigned char sdp_data_52121[] =3D {0x02, 0x77, 0x77, 0x00, 0x0a, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0xff, 0x00}; =20 -unsigned char sdp_test_52122[] =3D {0x02, 0x77, 0x77, 0x00, 0x06, +unsigned char sdp_data_52122[] =3D {0x02, 0x77, 0x77, 0x00, 0x06, 0x19, 0x00, 0x01, 0x00, 0xff, 0x00}; =20=20=20 -unsigned char sdp_test_53111[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53111[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_53113_1[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53113_1[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_53113_2[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53113_2[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x35, 0x03, 0x09, 0x00, 0x01, 0x01}; =20 -unsigned char sdp_test_53114[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53114[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_53115[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53115[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x04, 0x00}; =20 -unsigned char sdp_test_53118[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53118[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x05, 0x00}; =20 -unsigned char sdp_test_531110[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_531110[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x08, 0x00}; =20 -unsigned char sdp_test_531117[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_531117[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x09, 0x00}; =20 -unsigned char sdp_test_531120[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_531120[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x01, 0xff, 0x00}; =20 -unsigned char sdp_test_53121[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, +unsigned char sdp_data_53121[] =3D {0x04, 0x88, 0x88, 0x00, 0x0c, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_53122[] =3D {0x04, 0x88, 0x88, 0x00, 0x0a, +unsigned char sdp_data_53122[] =3D {0x04, 0x88, 0x88, 0x00, 0x0a, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_53123[] =3D {0x04, 0x88, 0x88, 0x00, 0x0a, +unsigned char sdp_data_53123[] =3D {0x04, 0x88, 0x88, 0x00, 0x0a, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_54111[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_54111[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x12, 0x34, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_54112[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_54112[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0xff, 0x35, 0x03, 0x09, 0x01, 0xff, 0x00}; =20 -unsigned char sdp_test_54113[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_54113[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x12, 0x34, 0x00, 0xff, 0x35, 0x03, 0x09, 0x01, 0xff, 0x00}; =20 -unsigned char sdp_test_54114[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_54114[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_54116_1[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_54116_1[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0x06, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_54116_2[] =3D {0x06, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_54116_2[] =3D {0x06, 0x88, 0x88, 0x00, 0x0e, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0x06, 0x35, 0x03, 0x09, 0x00, 0x01, 0x01, 0x00}; =20 -unsigned char sdp_test_541110[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_541110[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_541111[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_541111[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x04, 0x00}; =20 -unsigned char sdp_test_541112[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_541112[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x05, 0x00}; =20 -unsigned char sdp_test_541120[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, +unsigned char sdp_data_541120[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x09, 0x00}; =20 -unsigned char sdp_test_54121[] =3D {0x06, 0x88, 0x88, 0x00, 0x0b, +unsigned char sdp_data_54121[] =3D {0x06, 0x88, 0x88, 0x00, 0x0b, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x09, 0x00, 0x09, 0x00}; =20 -unsigned char sdp_test_54122[] =3D {0x06, 0x88, 0x88, 0x00, 0x0f, +unsigned char sdp_data_54122[] =3D {0x06, 0x88, 0x88, 0x00, 0x0f, 0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff, 0x35, 0x03, 0x09, 0x00, 0x01, 0x00}; =20 -unsigned char sdp_test_55111_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, +unsigned char sdp_data_55111_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x10, 0x02, 0x00, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_2[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_2[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_3[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_3[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_4[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_4[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x00, 0x10, 0xff, 0xff, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_5[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_5[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x00, 0x11, 0xff, 0xff, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_6[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_6[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x01, 0x00, 0xff, 0xff, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55111_7[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, +unsigned char sdp_data_55111_7[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e, 0x01, 0x01, 0xff, 0xff, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 -unsigned char sdp_test_55112[] =3D {0x06, 0x88, 0x88, 0x00, 0x0f, +unsigned char sdp_data_55111_8[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, + 0x35, 0x03, 0x19, 0x10, 0x01, 0x00, 0xff, + 0x00}; + +unsigned char sdp_data_55112_1[] =3D {0x06, 0x88, 0x88, 0x00, 0x0f, 0x35, 0x03, 0x19, 0x10, 0x02, 0x00, 0xff, 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00}; =20 +unsigned char sdp_data_55112_2[] =3D {0x06, 0x88, 0x88, 0x00, 0x0f, + 0x35, 0x03, 0x19, 0x10, 0x01, 0x00, 0xff, + 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, + 0x00}; + + + #define UPDATA_MAXLEN 16384 static u8 tmpdata[UPDATA_MAXLEN]; =20 @@ -350,18 +366,11 @@ void test_2_5_1(void) { /* FIXME - Client sends configure request with MTU 4096 */ - if(l2ca_config_req(testcon, 4096, NULL, 0, 0)){ + if(l2ca_config_req(test_con, 48, NULL, 0, 0)){ D_ERR("l2ca_connect_cfm : Configuration request failed\n"); } } =20 -void test_2_5_2(void) -{ - /* FIXME - Server responds success in configure response */ - printk("Using assymmetric mtu reply as server\n"); - test_assymmetric_mtu =3D 1; -} - void test_2_5_3(void) { /* FIXME - Server sends configure request with MTU 16384 */ @@ -513,219 +522,476 @@ * SDP Stuff */ =20 -void test_52111(void) +void sdp_test_52111(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_52111, sdp_test_52111[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52111, sdp_data_52111[4] + 5); } =20 -void test_52113(void) +void sdp_test_52113(void) { static int t =3D 0; =20 if (!t) { - sdp_send_data(&sdp_con_list[0], sdp_test_52113_1, sdp_test_52113_1[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52113_1, sdp_data_52113_1[4] = + 5); t =3D 1; } else { - sdp_send_data(&sdp_con_list[0], sdp_test_52113_2, sdp_test_52113_2[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52113_2, sdp_data_52113_2[4] = + 5); t =3D 0; } } =20 =20 -void test_52114(void) +void sdp_test_52114(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_52114, sdp_test_52114[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52114, sdp_data_52114[4] + 5); } =20 -void test_52121(void) +void sdp_test_52121(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_52121, sdp_test_52121[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52121, sdp_data_52121[4] + 5); } =20 -void test_52122(void) +void sdp_test_52122(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_52122, sdp_test_52122[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_52122, sdp_data_52122[4] + 5); } =20 -void test_53111(void) +void sdp_test_53111(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53111, sdp_test_53111[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53111, sdp_data_53111[4] + 5); } =20 -void test_53113(void) +void sdp_test_53113(void) { static int t =3D 0; =20=20=20 if (!t) { - sdp_send_data(&sdp_con_list[0], sdp_test_53113_1, sdp_test_53113_2[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53113_1, sdp_data_53113_2[4] = + 5); t =3D 1; } else { - sdp_send_data(&sdp_con_list[0], sdp_test_53113_2, sdp_test_53113_2[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53113_2, sdp_data_53113_2[4] = + 5); t =3D 0; } } =20 -void test_53114(void) +void sdp_test_53114(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53114, sdp_test_53114[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53114, sdp_data_53114[4] + 5); } =20 -void test_53115(void) +void sdp_test_53115(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53115, sdp_test_53115[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53115, sdp_data_53115[4] + 5); } =20 -void test_53118(void) +void sdp_test_53118(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53118, sdp_test_53118[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53118, sdp_data_53118[4] + 5); } =20 -void test_531110(void) +void sdp_test_531110(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_531110, sdp_test_531110[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_531110, sdp_data_531110[4] + 5); } =20 -void test_531117(void) +void sdp_test_531117(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_531117, sdp_test_531117[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_531117, sdp_data_531117[4] + 5); } =20 -void test_531120(void) +void sdp_test_531120(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_531120, sdp_test_531120[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_531120, sdp_data_531120[4] + 5); } =20 -void test_53121(void) +void sdp_test_53121(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53121, sdp_test_53121[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53121, sdp_data_53121[4] + 5); } =20 -void test_53122(void) +void sdp_test_53122(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53122, sdp_test_53122[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53122, sdp_data_53122[4] + 5); } =20 -void test_53123(void) +void sdp_test_53123(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_53123, sdp_test_53123[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_53123, sdp_data_53123[4] + 5); } =20 -void test_54111(void) +void sdp_test_54111(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54111, sdp_test_54111[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54111, sdp_data_54111[4] + 5); } =20 -void test_54112(void) +void sdp_test_54112(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54112, sdp_test_54112[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54112, sdp_data_54112[4] + 5); } =20 -void test_54113(void) +void sdp_test_54113(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54113, sdp_test_54113[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54113, sdp_data_54113[4] + 5); } =20 -void test_54114(void) +void sdp_test_54114(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54114, sdp_test_54114[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54114, sdp_data_54114[4] + 5); } =20 -void test_54116(void) +void sdp_test_54116(void) { static int t =3D 0; =20 if(!t) { - sdp_send_data(&sdp_con_list[0], sdp_test_54116_1, sdp_test_54116_1[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54116_1, sdp_data_54116_1[4] = + 5); t =3D 1; } else { - sdp_send_data(&sdp_con_list[0], sdp_test_54116_2, sdp_test_54116_2[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54116_2, sdp_data_54116_2[4] = + 5); t =3D 0; }=20 } =20 -void test_541110(void) +void sdp_test_541110(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_541110, sdp_test_541110[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_541110, sdp_data_541110[4] + 5); } =20 -void test_541111(void) +void sdp_test_541111(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_541111, sdp_test_541111[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_541111, sdp_data_541111[4] + 5); } =20 -void test_541112(void) +void sdp_test_541112(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_541112, sdp_test_541112[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_541112, sdp_data_541112[4] + 5); } =20 -void test_541120(void) +void sdp_test_541120(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_541120, sdp_test_541120[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_541120, sdp_data_541120[4] + 5); } =20 -void test_54121(void) +void sdp_test_54121(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54121, sdp_test_54121[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54121, sdp_data_54121[4] + 5); } =20 -void test_54122(void) +void sdp_test_54122(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_54122, sdp_test_54122[4] + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_54122, sdp_data_54122[4] + 5); } =20 -void test_55111(void) +void sdp_test_55111(void) { static int t =3D 0; =20 switch(t) { case 0: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_1, sdp_test_55111_1[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_1, sdp_data_55111_1[4] = + 5); t =3D 1; break; case 1: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_2, sdp_test_55111_2[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_2, sdp_data_55111_2[4] = + 5); t =3D 2; //break; case 2: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_3, sdp_test_55111_3[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_3, sdp_data_55111_3[4] = + 5); t =3D 3; //break; case 3: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_4, sdp_test_55111_4[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_4, sdp_data_55111_4[4] = + 5); t =3D 4; //break; case 4: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_5, sdp_test_55111_5[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_5, sdp_data_55111_5[4] = + 5); t =3D 5; //break; case 5: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_6, sdp_test_55111_6[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_6, sdp_data_55111_6[4] = + 5); t =3D 6; //break; case 6: - sdp_send_data(&sdp_con_list[0], sdp_test_55111_7, sdp_test_55111_7[4] = + 5); + sdp_send_data(&sdp_con_list[0], sdp_data_55111_7, sdp_data_55111_7[4] = + 5); + t =3D 7; + //break; + case 7: + sdp_send_data(&sdp_con_list[0], sdp_data_55111_8, sdp_data_55111_8[4] = + 5); t =3D 0; break;=20=20 }=20 } =20 -void test_55112(void) +void sdp_test_55112(void) { - sdp_send_data(&sdp_con_list[0], sdp_test_55112, sdp_test_55112[4] + 5); + static int t =3D 0; + + switch(t) + { + case 0: + sdp_send_data(&sdp_con_list[0], sdp_data_55112_1, sdp_data_55112_1[4] = + 5); + t =3D 1; + break; + case 1: + sdp_send_data(&sdp_con_list[0], sdp_data_55112_2, sdp_data_55112_2[4] = + 5); + t =3D 0; + break; } +} =20 =20 /*=20 + * Serial Port Profile Stuff + */ + +void spp_test_52211(void) +{ + static int t =3D 0; +=20=20 + unsigned char sdp_query[] =3D {0x06, 0x88, 0x88, 0x00, 0x0d, + 0x35, 0x03, 0x19, 0x11, 0x01, 0x00, 0xff, + 0x35, 0x03, 0x09, 0x00, 0x04, 0x00}; + + switch (t) { + case 0: + sdp_send_data(&sdp_con_list[0], sdp_query, sdp_query[4] + 5); + t++; + break; + case 1: + printf(__FUNCTION__": Establish RFCOMM on channel 0\n"); + t++; + break; + printf(__FUNCTION__": Establish RFCOMM on channel 2\n"); + t =3D 0; + break; + } +} + +void spp_test_52311(void) +{ + static int t =3D 0; + + switch(t) { + case 0: + hci_sniff_mode(rfcomm_con_list[0].l2cap->hci_hdl, 0xff, 0xf0, 0x10, 0x= 05); + t =3D 1; + break; + case 1: + hci_exit_sniff_mode(rfcomm_con_list[0].l2cap->hci_hdl); + t =3D 0; + break; + } +} + +void spp_test_52312(void) +{ + static int t =3D 0; + + switch(t) { + case 0: + hci_park_mode(rfcomm_con_list[0].l2cap->hci_hdl, 0xfff, 0xf0); + t =3D 1; + break; + case 1: + hci_exit_park_mode(rfcomm_con_list[0].l2cap->hci_hdl); + t =3D 0; + break; + } +} + +void spp_test_52313(void) +{ + hci_hold_mode(rfcomm_con_list[0].l2cap->hci_hdl, 0xfff, 0xf0); +} + +void spp_test_52314(void) +{ + printf(__FUNCTION__": Do test 52211, then do a M/S switch\n"); +} + + +void spp_test_53112(void) +{ + /* Establish a L2CAP channel in PSM 3 (RFCOMM), before doing this test */ + + rfcomm_sabm_msg(&rfcomm_con_list[0], 0); +} + +void spp_test_53211(void) +{ /* This test has to be done rigth after test 53112 */ + + rfcomm_disc_msg(&rfcomm_con_list[0], 0); +} + +void spp_test_53312(void) +{ + /* Establish a L2CAP channel in PSM 3 (RFCOMM), and establish DLCI 0 bef= ore + doing this test */ + + rfcomm_sabm_msg(&rfcomm_con_list[0], 2); +} + +void spp_test_53411(void) +{ + /* Establish a L2CAP channel in PSM 3 (RFCOMM), and establish DLCI 0 and= 2 + before doing this test */ + + /* Here the BAP should send the disc command so we just have to wait for + that, rf_disc should probably work in the BAP */ +=09 +} + +void spp_test_53412(void) +{ /* This test has to be done rigth after test 53116 */ + + rfcomm_disc_msg(&rfcomm_con_list[0], 2); +} + +void spp_test_53511(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + /* Send data from the BAp with the rf_send command */ +=20=20 + rfcomm_msc_msg(&rfcomm_con_list[0], 0x85 ,MCC_CMD, 2); +} + +void spp_test_53611(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ +=20=20 + /* Then send data from the BAP with the rf_send command */ +} + +void spp_test_53711(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + unsigned char data[] =3D {0,1,2,3,4,5,6,7,9}; +=20=20 + /* We send a test messages of ten bytes size */ + rfcomm_test_msg(&rfcomm_con_list[0], data, 10, MCC_CMD); +} + +void spp_test_53811(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + static int t =3D 0; + + switch (t) { + case 0: + rfcomm_fcoff_msg(&rfcomm_con_list[0], MCC_CMD); + printf(__FUNCTION__": Flow is set to OFF\n"); + t++; + break; + case 1: + rfcomm_fcon_msg(&rfcomm_con_list[0], MCC_CMD); + printf(__FUNCTION__": Flow is set to ON\n"); + t =3D 0; + break; + } +} + +void spp_test_53911(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + rfcomm_rls_msg(&rfcomm_con_list[0], MCC_CMD, 2, 0x05); +} + +void spp_test_531011(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + static int t =3D 0; +=20=20 + switch (t) { + case 0: + rfcomm_pn_msg(&rfcomm_con_list[0], 2, 0, 1000); + t++; + break; + case 1: + rfcomm_pn_msg(&rfcomm_con_list[0], 2, 0, 667); + break; + } +} + +void spp_test_531111(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + rfcomm_rpn_msg(&rfcomm_con_list[0], MCC_CMD, 4, 0); +} + +void spp_test_531112(void) +{ + /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + verify so both sides have sent a MSC command with flow on */ + + rfcomm_rpn_msg(&rfcomm_con_list[0], MCC_CMD, 4, 1); +} + +void spp_test_55111(void) +{ + /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + + unsigned char sdp_query[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, + 0x35, 0x03, 0x19, 0x00, 0x03, 0x00, 0xff, 0x00}; + + sdp_send_data(&sdp_con_list[0], sdp_query, sdp_query[4] + 5); +} + +void spp_test_55112(void) +{ + /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + + unsigned char sdp_query[] =3D {0x04, 0x88, 0x88, 0x00, 0x12, + 0x01, 0x00, 0xff, 0xff, 0x00, 0xff, 0x35, 0x09, + 0x09, 0x00, 0x01, 0x09, 0x00, 0x04, 0x09, 0x01, + 0x00, 0x00}; + + + sdp_send_data(&sdp_con_list[0], sdp_query, sdp_query[4] + 5); +} + +void spp_test_55113(void) +{ + /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + + unsigned char sdp_query[] =3D {0x06, 0x88, 0x88, 0x00, 0x13, + 0x35, 0x03, 0x19, 0x12, 0x34, 0x00, 0xff, 0x35, + 0x09, 0x09, 0x00, 0x01, 0x09, 0x00, 0x04, 0x09, + 0x01, 0x00, 0x00}; + + + sdp_send_data(&sdp_con_list[0], sdp_query, sdp_query[4] + 5); +} + + +void spp_test_56211(void) +{ + /* Run the hci_write_encryption_mode(1) in hci_init */ +} + +/*=20 * RFCOMM stuff=20 */ =20 @@ -1126,8 +1392,6 @@ break; case 251: test_2_5_1(); break; - case 252: test_2_5_2(); - break; case 253: test_2_5_3(); break; case 254: test_2_5_4(); @@ -1162,64 +1426,104 @@ case 2131 : test_2_13_1(); break; =20=20=20=20=20 - case 52111: test_52111(); + case 52111: sdp_test_52111(); break; - case 52113: test_52113(); + case 52113: sdp_test_52113(); break; - case 52114: test_52114(); + case 52114: sdp_test_52114(); break;=20 - case 52121: test_52121(); + case 52121: sdp_test_52121(); break; - case 52122: test_52122(); + case 52122: sdp_test_52122(); break;=20=20 - case 53111: test_53111(); + case 53111: sdp_test_53111(); break; - case 53113: test_53113(); + case 53113: sdp_test_53113(); break; - case 53114: test_53114(); + case 53114: sdp_test_53114(); break; - case 53115: test_53115(); + case 53115: sdp_test_53115(); break; - case 53118: test_53118(); + case 53118: sdp_test_53118(); break; - case 531110: test_531110(); + case 531110: sdp_test_531110(); break; - case 531117: test_531117(); + case 531117: sdp_test_531117(); break; - case 531120: test_531120(); + case 531120: sdp_test_531120(); break; - case 53121: test_53121(); + case 53121: sdp_test_53121(); break; - case 53122: test_53122(); + case 53122: sdp_test_53122(); break; - case 53123: test_53123(); + case 53123: sdp_test_53123(); break; - case 54111: test_54111(); + case 54111: sdp_test_54111(); break; - case 54112: test_54112(); + case 54112: sdp_test_54112(); break; - case 54113: test_54113(); + case 54113: sdp_test_54113(); break; - case 54114: test_54114(); + case 54114: sdp_test_54114(); break; - case 54116: test_54116(); + case 54116: sdp_test_54116(); break; - case 541110: test_541110(); + case 541110: sdp_test_541110(); break; - case 541111: test_541111(); + case 541111: sdp_test_541111(); break; - case 541112: test_541112(); + case 541112: sdp_test_541112(); break; - case 541120: test_541120(); + case 541120: sdp_test_541120(); break; - case 54121: test_54121(); + case 54121: sdp_test_54121(); break; - case 54122: test_54122(); + case 54122: sdp_test_54122(); break; - case 55111: test_55111(); + case 55111: sdp_test_55111(); break; - case 55112: test_55112(); + case 55112: sdp_test_55112(); + break; + + case 62211: spp_test_52211(); + break; +=20=20=20=20 + case 62311: spp_test_52311(); + break; + case 62312: spp_test_52312(); + break; + case 62313: spp_test_52313(); + break; + case 62314: spp_test_52314(); + break; + case 63112: spp_test_53112(); break; + case 63211: spp_test_53211(); + break; + case 63312: spp_test_53312(); + break; + case 63411: spp_test_53411(); + break; + case 63412: spp_test_53412(); + break; + case 63511: spp_test_53511(); + break; + case 63611: spp_test_53611(); + break; + case 63711: spp_test_53711(); + break; + case 63811: spp_test_53811(); + break; + case 63911: spp_test_53911(); + break; + case 631011: spp_test_531011(); + break; + case 631111: spp_test_531111(); + break; + case 631112: spp_test_531112(); + break; + case 66211: spp_test_56211(); + break; =20=20=20=20=20 case 41: test_4_1(); break; @@ -1299,7 +1603,6 @@ break; case 428: test_4_28(); break;=20=20=20=20=20=20=20=20=20=20=20=20=20 -=20=20=20=20 =20 case 51: test_5_1(); break; |
From: Mats F. <ma...@us...> - 2001-06-11 06:55:24
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.15 1.16=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Corrected spelling The diff of the modified file(s): --- unplug_test.c 2001/06/08 14:01:27 1.15 +++ unplug_test.c 2001/06/11 06:55:22 1.16 @@ -859,7 +859,7 @@ =20 void spp_test_53511(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 /* Send data from the BAp with the rf_send command */ @@ -869,7 +869,7 @@ =20 void spp_test_53611(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20=20=20 /* Then send data from the BAP with the rf_send command */ @@ -877,7 +877,7 @@ =20 void spp_test_53711(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 unsigned char data[] =3D {0,1,2,3,4,5,6,7,9}; @@ -888,7 +888,7 @@ =20 void spp_test_53811(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 static int t =3D 0; @@ -909,7 +909,7 @@ =20 void spp_test_53911(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 rfcomm_rls_msg(&rfcomm_con_list[0], MCC_CMD, 2, 0x05); @@ -917,7 +917,7 @@ =20 void spp_test_531011(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 static int t =3D 0; @@ -935,7 +935,7 @@ =20 void spp_test_531111(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 rfcomm_rpn_msg(&rfcomm_con_list[0], MCC_CMD, 4, 0); @@ -943,7 +943,7 @@ =20 void spp_test_531112(void) { - /* Do test 52211 befor to establish RFCOMM, DLCI 1 and 2. You also have = to + /* Do test 52211 before to establish RFCOMM, DLCI 1 and 2. You also have= to verify so both sides have sent a MSC command with flow on */ =20 rfcomm_rpn_msg(&rfcomm_con_list[0], MCC_CMD, 4, 1); @@ -951,7 +951,7 @@ =20 void spp_test_55111(void) { - /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + /* Establish a L2CAP channel on PSM 1 (SDP) before doing this test */ =20 unsigned char sdp_query[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x00, 0x03, 0x00, 0xff, 0x00}; @@ -961,7 +961,7 @@ =20 void spp_test_55112(void) { - /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + /* Establish a L2CAP channel on PSM 1 (SDP) before doing this test */ =20 unsigned char sdp_query[] =3D {0x04, 0x88, 0x88, 0x00, 0x12, 0x01, 0x00, 0xff, 0xff, 0x00, 0xff, 0x35, 0x09, @@ -974,7 +974,7 @@ =20 void spp_test_55113(void) { - /* Establish a L2CAP chennle on PSM 1 (SDP) before doing this test */ + /* Establish a L2CAP channel on PSM 1 (SDP) before doing this test */ =20 unsigned char sdp_query[] =3D {0x06, 0x88, 0x88, 0x00, 0x13, 0x35, 0x03, 0x19, 0x12, 0x34, 0x00, 0xff, 0x35, |
From: Mats F. <ma...@us...> - 2001-06-12 08:58:47
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.16 1.17=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Removed test The diff of the modified file(s): --- unplug_test.c 2001/06/11 06:55:22 1.16 +++ unplug_test.c 2001/06/12 08:58:45 1.17 @@ -72,14 +72,10 @@ s32 test_role; =20 =20 -unsigned char sdp_data_52111[] =3D {0x06, 0x00, 0x08, 0x00, 0x0d, - 0x35, 0x03, 0x19, 0x11, 0x02, 0x00, 0x64, - 0x35, 0x03, 0x09, 0x00, 0x04, 0x00}; -#if 0 unsigned char sdp_data_52111[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0xff, 0x00}; -#endif + unsigned char sdp_data_52113_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08, 0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0x01, 0x00}; |
From: Mats F. <ma...@us...> - 2001-06-15 13:40:34
|
The following file was modified in apps/bluetooth/userstack: Name Old version New version Comment ---- ----------- ----------- ------- unplug_test.c 1.17 1.18=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Removed test_con object The diff of the modified file(s): --- unplug_test.c 2001/06/12 08:58:45 1.17 +++ unplug_test.c 2001/06/15 13:40:34 1.18 @@ -63,7 +63,6 @@ extern sdp_con sdp_con_list[7]; =20 extern l2cap_con *testcon; /* is set in test.c */ -extern l2cap_con *test_con; extern s32 emulate_pending; /* is set in test.c */ extern s32 test_assymmetric_mtu; extern s32 dont_send_config_req; @@ -362,7 +361,7 @@ void test_2_5_1(void) { /* FIXME - Client sends configure request with MTU 4096 */ - if(l2ca_config_req(test_con, 48, NULL, 0, 0)){ + if(l2ca_config_req(testcon, 48, NULL, 0, 0)){ D_ERR("l2ca_connect_cfm : Configuration request failed\n"); } } |