|
From: Anders J. <and...@us...> - 2002-01-09 10:55:59
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
unplug_test.c 1.8 1.9=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Added some SDP tests.
* Corrected Unplug SDP tests.
The diff of the modified file(s):
--- unplug_test.c 2001/11/13 10:42:03 1.8
+++ unplug_test.c 2002/01/09 10:55:58 1.9
@@ -79,7 +79,7 @@
extern s32 use_multiple_conf_params;
extern s32 disable_testpsm;
s32 test_role;
-
+s32 emulate_hw_error =3D 0;
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */=
=20
/* Unplug Test Cases 1-13 */
=20
@@ -148,8 +148,21 @@
0x00, 0x01, 0x00, 0x00, 0x00, 0xff, 0x35, 0x09, 0x09,
0x00, 0x06, 0x09, 0x00, 0x11, 0x09, 0x01, 0x00, 0x00};
=20
+/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D PAN =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */
+
+/* [pan_1] Service search request for UUID 0x1116 (PAN Profile) */
+unsigned char pan_1[] =3D {0x02, 0x77, 0x77, 0x00, 0x08,
+ 0x35, 0x03, 0x19, 0x11, 0x16, 0x00, 0xff, 0x00};
+
+unsigned char pan_2[] =3D {0x04, 0x88, 0x88, 0x00, 0x0e,
+ 0x00, 0x01, 0x00, 0x00,=20=20
+ 0x00, 0xff,=20
+ 0x35, 0x05, 0x0a, 0x00, 0x00, 0xff, 0xff,=20
+ 0x00 };
+
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */=
=20
=20
+
/* UUID 16 */
unsigned char sdp_data_52111_1[] =3D { 0x02, 0x77, 0x77, 0x00, 0x08,
0x35, 0x03, 0x19, 0x00, 0x01, 0x00, 0xff,
@@ -664,13 +677,13 @@
static s32 test_2_8_3(void)
{
printk("Client sends 350 bytes on testcon 2\n");
- return test_send_data(testcon2, testdata, 350);
+ return test_send_data(testcon3, testdata, 350);
}
=20
static s32 test_2_8_4(void)
{
printk("Server sends 350 bytes on testcon 2\n");
- return test_send_data(testcon2, testdata, 350);
+ return test_send_data(testcon3, testdata, 350);
}
=20
static s32 test_2_9_1(void)
@@ -1745,6 +1758,7 @@
case 210: return test_2_10();
=20
case 2131 : return test_2_13_1();
+ case 2135 : return test_2_13_5();
=20
case 52111: return sdp_test_52111();
case 52113: return sdp_test_52113();
@@ -1845,6 +1859,12 @@
case 56: return test_5_6();
case 57: return test_5_7();
case 100: return test_gateway_call();
+ case 9001: return sdp_send_data(&sdp_con_list[0], pan_1, pan_1[4] =
+ 5);
+ case 9002: return sdp_send_data(&sdp_con_list[0], pan_2, pan_2[4] + 5);=
=20=20
+=20=20=20=20=20=20=20=20
+ case 99999:=20
+ emulate_hw_error =3D 1;
+ break;
default:
printk("Unknown test case\n");
return -1;
|