|
From: Anders J. <and...@us...> - 2004-04-14 17:55:53
|
The following files were modified in libs/openbt:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
bt_if.c 1.10 1.11=20=20=20=20=20=20=20=20=20=20=20=20=20=20
bt_if.h 1.9 1.10=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added functions for read/delete linkkeys.
The diff of the modified file(s):
--- bt_if.c 2004/02/09 15:09:58 1.10
+++ bt_if.c 2004/04/14 17:55:39 1.11
@@ -1268,6 +1268,26 @@ int bb_connect(int bt_cfd, unsigned char
return result;
}
=20
+int bt_read_stored_linkkey(int bt_cfd, unsigned char *bd,
+ int read_all)
+{
+ unsigned char data[7];
+ data[0] =3D read_all;
+ memcpy(data + 1, bd, 6);
+ return ioctl(bt_cfd, HCIREADSTOREDLINKKEY, data);
+}
+
+
+int bt_delete_stored_linkkey(int bt_cfd, unsigned char *bd,
+ int delete_all)
+{
+ unsigned char data[7];
+ data[0] =3D delete_all;
+ memcpy(data + 1, bd, 6);
+ return ioctl(bt_cfd, HCIDELETESTOREDLINKKEY, data);
+}
+
+
=20
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D */
/* Misc functions */
--- bt_if.h 2004/02/09 15:09:58 1.9
+++ bt_if.h 2004/04/14 17:55:39 1.10
@@ -438,6 +438,11 @@ int bt_write_ledenable(int bt_cfd, unsig
/* Authenticate and encryption */
int bt_authenticate_encrypt(int bt_cfd, unsigned char *bd);
=20
+/* Read / Delete linkkeys */
+int bt_read_stored_linkkey(int bt_cfd, unsigned char *bd,
+ int read_all);
+int bt_delete_stored_linkkey(int bt_cfd, unsigned char *bd,
+ int delete_all);
/*
* Misc functions
*/
|