|
From: Mattias A. <mat...@us...> - 2001-06-13 12:38:13
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
btinit.c 1.10 1.11=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* added call to init_failed if init stack failed...
* minor changes
The diff of the modified file(s):
--- btinit.c 2001/06/08 09:56:37 1.10
+++ btinit.c 2001/06/13 12:17:34 1.11
@@ -204,6 +204,7 @@
}
=20
/* Sets initial HW baudrate */
+
if (init_hw_speed !=3D 0)
fd_setup(phys_fd, init_hw_speed, USE_FLOW_CTRL, hw_vendor() =3D=3D HW_=
CSR_BCSP);
else
@@ -220,7 +221,8 @@
if (do_reset)
reset_hw();
=20
- init_stack(bt_cfd, atoi(speedstr));
+ if (init_stack(bt_cfd, atoi(speedstr)) < 0)
+ init_failed(bt_cfd, phys_fd, atoi(speedstr));
=20
if (do_hwinit)
init_hw(bt_cfd, phys_fd, atoi(speedstr));
@@ -288,7 +290,6 @@
=20
printf("Shutting down Bluetooth stack\n");
shutdown_stack(bt_cfd);
- printf("Bluetooth stack shut down\n");
=20
if (bt_cfd !=3D -1)
{
|