|
From: Peter K. <pk...@us...> - 2001-05-08 16:45:34
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
hci_vendor.c 1.31 1.32=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
CSR sends the response using the new speed when changing baud
rate temporarily.
The diff of the modified file(s):
--- hci_vendor.c 2001/04/27 16:45:05 1.31
+++ hci_vendor.c 2001/05/08 16:45:34 1.32
@@ -668,7 +668,13 @@
memset(cmd->payload, 0, 6*sizeof(u16));
cmd->payload[0] =3D baud_divider | CSR_UART_NO_PARITY | CSR_UART_ONE_STOP=
_BIT;
=20
- tmp =3D send_cmd_block((u8*) &c_pkt, c_pkt.len + CMD_HDR_LEN + HCI_HDR_LE=
N);
+ if (hci_ctrl.hc_buf.cmd_num < 1) {
+ DSYS(__FUNCTION__ VENDOR ": sleeping\n");
+ interruptible_sleep_on(&set_baudrate_wq);
+ }
+ tmp =3D bt_write_lower_driver((u8*) &c_pkt, c_pkt.len + CMD_HDR_LEN + HCI=
_HDR_LEN);
+=20=20
+ hci_ctrl.hc_buf.cmd_num--;
#else
cmd->type =3D CSR_MSGTYPE_SETREQ;
cmd->len =3D 5 + 3 + 1;
|