|
From: Anders J. <and...@us...> - 2001-11-06 18:08:09
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
unplug_test.c 1.6 1.7=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Corrected SDP test 55111, added UUID 128 and UUID 32.
The diff of the modified file(s):
--- unplug_test.c 2001/10/16 16:23:45 1.6
+++ unplug_test.c 2001/11/06 18:08:07 1.7
@@ -269,48 +269,127 @@
0x35, 0x03, 0x19, 0x10, 0x00, 0x00, 0xff,
0x35, 0x03, 0x09, 0x00, 0x01, 0x00 };
=20
+
+#if 0
+/* UUID 16 */
unsigned char sdp_data_55111_1[] =3D { 0x02, 0x77, 0x77, 0x00, 0x08,
0x35, 0x03, 0x19, 0x10, 0x02, 0x00, 0xff,
0x00 };
=20
-unsigned char sdp_data_55111_2[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
- 0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35,
+unsigned char sdp_data_55111_2_1[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_3[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+unsigned char sdp_data_55111_2_2[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_4[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+unsigned char sdp_data_55111_2_3[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
0x00, 0x10, 0xff, 0xff, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_5[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
- 0x00, 0x11, 0xff, 0xff, 0x00, 0xff, 0x35,
+
+unsigned char sdp_data_55111_3[] =3D { 0x02, 0x77, 0x77, 0x00, 0x08,
+ 0x35, 0x03, 0x19, 0x10, 0x01, 0x00, 0xff,
+ 0x00 };
+
+unsigned char sdp_data_55111_4[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x02, 0x00, 0x00 };
+
+unsigned char sdp_data_55111_5[] =3D { 0x02, 0x77, 0x77, 0x00, 0x08,
+ 0x35, 0x03, 0x19, 0x10, 0x01, 0x00, 0xff,
+ 0x00 };
+
+unsigned char sdp_data_55111_6[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x00, 0x01, 0x00 };
+#endif
+#if 0
+/* UUID 32 */
+unsigned char sdp_data_55111_1[] =3D { 0x02, 0x77, 0x77, 0x00, 0x0a,
+ 0x35, 0x05, 0x1a, 0x00, 0x00, 0x10, 0x02, 0x00, 0xff,
+ 0x00 };
+
+unsigned char sdp_data_55111_2_1[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_6[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
- 0x01, 0x00, 0xff, 0xff, 0x00, 0xff, 0x35,
+unsigned char sdp_data_55111_2_2[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_7[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
- 0x01, 0x01, 0xff, 0xff, 0x00, 0xff, 0x35,
+unsigned char sdp_data_55111_2_3[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x10, 0xff, 0xff, 0x00, 0xff, 0x35,
0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
=20
-unsigned char sdp_data_55111_8[] =3D { 0x02, 0x77, 0x77, 0x00, 0x08,
- 0x35, 0x03, 0x19, 0x10, 0x01, 0x00, 0xff,
+
+unsigned char sdp_data_55111_3[] =3D { 0x02, 0x77, 0x77, 0x00, 0x0a,
+ 0x35, 0x05, 0x1a, 0x00, 0x00, 0x10, 0x01, 0x00, 0xff,
0x00 };
=20
-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,
+unsigned char sdp_data_55111_4[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x02, 0x00, 0x00 };
+
+unsigned char sdp_data_55111_5[] =3D { 0x02, 0x77, 0x77, 0x00, 0x0a,
+ 0x35, 0x05, 0x1a, 0x00, 0x00, 0x10, 0x01, 0x00, 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,
+unsigned char sdp_data_55111_6[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x00, 0x01, 0x00 };
+#endif
+
+/* UUID 128 */
+unsigned char sdp_data_55111_1[] =3D { 0x02, 0x77, 0x77, 0x00, 0x16,
+ 0x35, 0x11,=20
+ 0x1c,=20
+ 0x00, 0x00, 0x10, 0x02, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
+ 0x00, 0xff,
0x00 };
=20
+unsigned char sdp_data_55111_2_1[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
+
+unsigned char sdp_data_55111_2_2[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
+
+unsigned char sdp_data_55111_2_3[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x10, 0xff, 0xff, 0x00, 0xff, 0x35,
+ 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x00 };
+
+
+unsigned char sdp_data_55111_3[] =3D { 0x02, 0x77, 0x77, 0x00, 0x16,
+ 0x35, 0x11,=20
+ 0x1c,=20
+ 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
+ 0x00, 0xff,
+ 0x00 };
+
+unsigned char sdp_data_55111_4[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x02, 0x00, 0x00 };
+
+unsigned char sdp_data_55111_5[] =3D { 0x02, 0x77, 0x77, 0x00, 0x16,
+ 0x35, 0x11,=20
+ 0x1c,=20
+ 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x10, 0x00,
+ 0x80, 0x00, 0x00, 0x80, 0x5f, 0x9b, 0x34, 0xfb,
+ 0x00, 0xff,
+ 0x00 };
+
+unsigned char sdp_data_55111_6[] =3D { 0x04, 0x88, 0x88, 0x00, 0x0c,
+ 0x00, 0x10, 0x00, 0x00, 0x00, 0xff, 0x35,
+ 0x03, 0x09, 0x00, 0x01, 0x00 };
+
+
+
+
extern u8 testdata[];
static u8 test_is_initialized =3D 0;
=20
@@ -817,6 +896,8 @@
static int t =3D 0;
s32 retval =3D 0;
=20=09
+ printk("NOW RUNNING TESTCASE 55111, case %d\n", t);
+
switch (t) {
case 0:
retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_1, sdp_data_55=
111_1[4] + 5);
@@ -824,41 +905,45 @@
break;
=20
case 1:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_2, sdp_data_55=
111_2[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_2_1, sdp_data=
_55111_2_1[4] + 5);
t =3D 2;
-// break;
+ break;
case 2:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_3, sdp_data_55=
111_3[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_2_2, sdp_data=
_55111_2_2[4] + 5);
t =3D 3;
-// break;
+ break;
case 3:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_4, sdp_data_55=
111_4[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_2_3, sdp_data=
_55111_2_3[4] + 5);
t =3D 4;
-// break;
+ break;
+=09=20=20
case 4:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_5, sdp_data_55=
111_5[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_3, sdp_data_5=
5111_3[4] + 5);
t =3D 5;
-// break;
+ break;
case 5:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_6, sdp_data_55=
111_6[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_4, sdp_data_5=
5111_4[4] + 5);
t =3D 6;
-// break;
+ break;
case 6:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_7, sdp_data_55=
111_7[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_5, sdp_data_5=
5111_5[4] + 5);
t =3D 7;
-// break;
+ break;
case 7:
- retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_8, sdp_data_55=
111_8[4] + 5);
+ retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55111_6, sdp_data_5=
5111_6[4] + 5);
t =3D 0;
break;=20=20
+=09=20=20
}=20
return retval;
}
=20
static s32 sdp_test_55112(void)
{
+=20=20
static int t =3D 0;
s32 retval =3D 0;
+ /*
switch (t) {
case 0:
retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55112_1, sdp_data_55=
112_1[4] + 5);
@@ -869,7 +954,7 @@
retval =3D sdp_send_data(&sdp_con_list[0], sdp_data_55112_2, sdp_data_55=
112_2[4] + 5);
t =3D 0;
break;
- }
+ }*/
return retval;
}
=20
|