|
From: Mattias A. <mat...@us...> - 2001-04-26 10:52:31
|
The following file was modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_if.c 1.11 1.12=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
* now use inparam in bt_set_event_filter
The diff of the modified file(s):
--- bt_if.c 2001/04/25 18:05:52 1.11
+++ bt_if.c 2001/04/26 10:52:30 1.12
@@ -698,24 +698,18 @@
#endif
}
=20
-/* fixme<3> get filter from somewhere */
-int bt_set_event_filter(int bt_cfd, unsigned int filter)
+int bt_set_event_filter(int bt_cfd, unsigned char filter[3])
{
- unsigned char evfilter[3];
int result;
=20
- evfilter[0] =3D 0x02; /* Connection setup */
- evfilter[1] =3D 0x00; /* All devices */
- evfilter[2] =3D 0x01; /* No auto accept */=20=20
-
syslog(LOG_INFO, "Setting event filter [0x%1x 0x%1x 0x%1x]\n",=20
- evfilter[0], evfilter[1], evfilter[2]);
+ filter[0], filter[1], filter[2]);
=20
#ifdef BT_USERSTACK
- result =3D hci_set_event_filter((u8*)&evfilter);
+ result =3D hci_set_event_filter((u8*)&filter);
#else
=20
- if ((result =3D ioctl(bt_cfd, HCISET_EVENT_FILTER, &evfilter)) < 0)
+ if ((result =3D ioctl(bt_cfd, HCISET_EVENT_FILTER, &filter)) < 0)
{=20
perror(__FUNCTION__);
exit(1);
|