|
From: Mattias A. <mat...@us...> - 2001-04-25 17:56:55
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bttest.c 1.6 1.7=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* added command bt_wrscan which sets write scan enable
* added force_ms which sets whether force m/s switch should be done
The diff of the modified file(s):
--- bttest.c 2001/04/04 10:43:04 1.6
+++ bttest.c 2001/04/25 17:56:54 1.7
@@ -90,6 +90,8 @@
" setbd <xx:xx:xx:xx:xx:xx>", /* only ericsson HW */
" readbd", /* read module bd address */
" reset", /* reset board */
+ " bt_wrscan <mode>",
+ " force_ms <0/1>", /* force ms switch */
" role_switch <xx:xx:xx:xx:xx:xx> <role> (0=3Dmaster, 1=3Dslave)",
" stat ", /* similar to reading the /proc/bt */
" testcmd <test string>",
@@ -209,6 +211,11 @@
=20=20=20=20=20
bt_connect(bt_cfd, tmp_bd, con_id);
}
+ else if (sscanf(buf, "bt_wrscan %d", &tmp[0]) =3D=3D 1)
+ {
+ printf("Setting wr scan enable to %d\n", tmp[0]);
+ bt_write_scan_enable(bt_cfd, tmp[0]);
+ }
else if (sscanf(buf, "rf_disc %d", &line) =3D=3D 1)
{
unsigned int con_id;
@@ -263,6 +270,11 @@
}
=20=20=20
role_switch(bt_cfd, &tmp_bd[0], tmp[6]);
+ }
+ else if (sscanf(buf, "force_ms %d", &tmp[0]) =3D=3D 1)
+ {
+ printf("Setting force m/s switch to %d\n", tmp[0]);
+ bt_force_msswitch_as_server(bt_cfd, tmp[0]);
}
#ifdef ECS_TEST_FUNCTIONS
else if (sscanf(buf, "ecs_testctrl %x,%x,%x,%x,%x,%x,%x,%x,%x",
|