|
From: Anders J. <and...@us...> - 2001-09-10 12:26:02
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bttest.c 1.19 1.20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* Added test_case_enable_disconnect and test_case_disable_disconnect.
The diff of the modified file(s):
--- bttest.c 2001/08/22 17:48:12 1.19
+++ bttest.c 2001/09/10 12:26:01 1.20
@@ -290,6 +290,7 @@
int btfd;
char dev[20];
sprintf(dev, "/dev/ttyBT%d", line);
+
btfd =3D open(dev, O_RDWR | O_NOCTTY);
=20
if (btfd > 0)
@@ -547,6 +548,16 @@
hotlist[i][0], hotlist[i][1], hotlist[i][2], hotlist[i][3], h=
otlist[i][4], hotlist[i][5]);
}
}
+ else if(strcmp(buf, "test_case_disable_disconnect") =3D=3D 0)
+ {
+ printf("Disabling sending of disconnect respons\n");
+ bt_testcmd(bt_cfd, buf);
+ }
+ else if(strcmp(buf, "test_case_enable_disconnect") =3D=3D 0)
+ {
+ printf("Enabling sending of disconnect respons\n");
+ bt_testcmd(bt_cfd, buf);
+ }=20=20=20
else
{
printf("> error: command not recognized or wrong syntax\n");
|