From: Peter K. <pk...@us...> - 2001-12-20 12:36:01
|
The following file was modified in apps/bluetooth/experimental: Name Old version New version Comment ---- ----------- ----------- ------- btd.c 1.35 1.36=20=20=20=20=20=20=20=20=20=20=20=20 The accompanying log: Need to set the BCSP mode before initialising the physical device. The diff of the modified file(s): --- btd.c 2001/12/07 18:42:24 1.35 +++ btd.c 2001/12/20 12:35:59 1.36 @@ -329,6 +329,13 @@ exit(1); } =20 + bt_cfd =3D bt_openctrl(); + + if (use_bcsp >=3D 0) + { + bt_bcsp_mode(bt_cfd, use_bcsp); + } + /* Sets initial HW baudrate */ if (init_hw_speedstr !=3D NULL) fd_setup(phys_fd, init_hw_speedstr, flow_control); @@ -338,18 +345,11 @@ /* Set the current tty to the bluetooth discpline */ set_bt_line_disc(phys_fd, bt_disc, physdev); =20 - bt_cfd =3D bt_openctrl(); - tcflush(phys_fd, TCIOFLUSH); =20 /* Hardreset of BT hardware */ if (do_reset) reset_hw(); - - if (use_bcsp >=3D 0) - { - bt_bcsp_mode(bt_cfd, use_bcsp); - } =20 if (init_stack(bt_cfd) < 0) { |