|
From: Gordon M. <gm...@us...> - 2001-03-20 16:41:02
|
The following file was modified in apps/bluetooth/btd:
Name Old version New version Comment
---- ----------- ----------- -------
btd.c 1.88 1.88.2.1=20=20=20=20=20=20=20=20
The accompanying log:
--Initial checking of changes to HCI. Including a) fixed the hci inquiry ha=
ng b) changed buffer allocation strategy for hci inquiry c) converted to ca=
ll tables for HCI Command Status & Command Complete processing.
The diff of the modified file(s):
--- btd.c 2001/03/20 12:13:17 1.88
+++ btd.c 2001/03/20 16:42:53 1.88.2.1
@@ -2887,14 +2887,21 @@
{
#ifdef BTD_USERSTACK
char inq_lap[6];
+ inquiry_results *inq_res;
=20=20=20=20=20
printf("Inquiring...\n");
=20=20=20=20=20
+ inq_res =3D (inquiry_results*) malloc(sizeof(inquiry_results) + nbr_rs=
p * 6);
+ inq_res->nbr_of_units =3D nbr_rsp;
+ inq_res->inq_time =3D t;
+
inq_lap[0] =3D 0x33;
inq_lap[1] =3D 0x8b;
inq_lap[2] =3D 0x9e;
=20=20=20=20=20=20=20=20
- hci_inquiry(inq_lap, t, nbr_rsp);
+ hci_inquiry(inq_lap, t, nbr_rsp, inq_res);
+
+ free(inq_res);
#else
int i;
inquiry_results *inq_res;
|