|
From: Mattias A. <mat...@us...> - 2001-04-17 12:26:06
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_vendor.c 1.6 1.7=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* added set event filter for all HW
The diff of the modified file(s):
--- bt_vendor.c 2001/04/04 12:39:17 1.6
+++ bt_vendor.c 2001/04/17 12:25:50 1.7
@@ -85,12 +85,12 @@
void
init_hw(int bt_cfd, int phys_fd, int spd)
{
- bt_write_scan_enable(bt_cfd, 0 /* not used */);
+ bt_write_scan_enable(bt_cfd, 0 /* inpars not used */);
=20
sleep(1);
=20
/* set_event_filter must be called for m/s switch on IrmaC! */
- bt_set_event_filter(bt_cfd, 0 /* not used */);
+ bt_set_event_filter(bt_cfd, 0 /* inpars not used */);
=20
sleep(1); // wait for HW...
=20
@@ -259,6 +259,8 @@
printf("WARNING : Does this HW really support speeds > 115200 ?\n");
}
=20=20=20
+ bt_set_event_filter(bt_cfd, 0 /* inpars not used */);
+
/* Now set phys device speed to whatever HW was set to use */
fd_setup(phys_fd, spd, USE_FLOW_CTRL);=20=20
=20
@@ -294,6 +296,8 @@
=20
sleep(1);
=20
+ bt_set_event_filter(bt_cfd, 0 /* inpars not used */);
+
syslog(LOG_INFO, "Setting baudrate in CSR module!\n");=20=20
=20
bt_set_baudrate(bt_cfd, spd);
@@ -318,13 +322,13 @@
void
init_hw(int bt_cfd, int phys_fd, int spd)
{
-#ifndef BT_USERSTACK
unsigned int wrscan =3D (PAGE_SCAN_ENABLE | INQUIRY_SCAN_ENABLE);
=20
printf("Setting write_scan_enable in USB module!\n");
=20=20=20
bt_write_scan_enable(bt_cfd, wrscan);
-#endif
+ bt_set_event_filter(bt_cfd, 0 /* inpars not used */);
+
}
=20
#elif HW_USED(HW_NOINIT)
|