|
From: Alain P. <apa...@us...> - 2002-02-22 14:08:03
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
sec_client.c 1.20 1.21=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added a call for security event concerning the HCI layer. Include hci_sec.h.
The diff of the modified file(s):
--- sec_client.c 13 Feb 2002 14:05:04 -0000 1.20
+++ sec_client.c 22 Feb 2002 14:02:40 -0000 1.21
@@ -49,6 +49,7 @@
#include <linux/bluetooth/sec_client.h>
#include <linux/bluetooth/l2cap_sec.h>
#include <linux/bluetooth/rfcomm_sec.h>
+#include <linux/bluetooth/hci_sec.h>
#include <linux/bluetooth/btmem.h>
#include <linux/proc_fs.h>
#else /* user mode */
@@ -699,6 +700,10 @@
=20=09
D_PROC(__FUNCTION__ ": Someone wrote %d bytes to sec proc-file\n", count);
=20=09
+ /* Verify that I read at least the number of byte I am waiting */
+ if (count < sizeof (*sec_hdl))
+ D_ERR(__FUNCTION__ ": Only %d bytes were wroten in proc file instead of=
%d", count, sizeof (*sec_hdl));
+=09
/* D_XMIT(__FUNCTION__ ": Preparing to send data to sec_con[%d]\n", secb_h=
dl->sec_con_id); */
if (sec_hdl->originator =3D=3D BT_SEC_MAN) /* o.k. new request */
{
@@ -717,6 +722,15 @@
rfcomm_process_sec_man_response(sec_hdl->request_result,
sec_hdl->originator_data,
sec_hdl->request_value);
+ break;
+=09=09
+ case HCI:
+ D_PROC(FNC"Message to HCI\n");
+ hci_process_sec_man_response(sec_hdl->request_result,
+ sec_hdl->originator_data,
+ sec_hdl->request_value,
+ sec_hdl->event_param,
+ sec_hdl->remote_bd);
break;
=20
default:
|