|
From: Alain P. <apa...@us...> - 2002-08-26 15:12:50
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
hci.c 1.201 1.202=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added example how to allow the module to be in sniff and hold mode.
Added error handling for Mode change event.
The diff of the modified file(s):
--- hci.c 15 May 2002 13:29:41 -0000 1.201
+++ hci.c 26 Aug 2002 15:12:48 -0000 1.202
@@ -907,6 +907,10 @@
=20
/* enable m/s switch */=20
hci_write_link_policy_settings(hci_hdl, 0x01);
+ /* Uncomment next line (and comment previous) to enable */
+ /* sniff and hold mode in your module */
+ // hci_write_link_policy_settings(hci_hdl, 0x07);
+
/* we demand role switch as server */
if (force_msswitch && !i_am_initiator) {
/* FIXME -- check return code */
@@ -1141,8 +1145,15 @@
break;
=20
case MODE_CHANGE:
+ if (buf[0]) {=20
+ D_ERR(__FUNCTION__ ": Mode changed failed due to %s\n",
+ get_err_msg(buf[0]));
+ }
+ else {
D_CMD(__FUNCTION__ ": MODE_CHANGE on hci_hdl %d\n",
hci_handle(&buf[1]));
+ printk("Mode : 0x%02x ", buf[3]);
+ }
break;
=20
case RETURN_LINK_KEYS:
|