|
From: Peter K. <pk...@us...> - 2001-03-06 10:47:30
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
hci_vendor.c 1.16 1.17=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
EINVAL does not exist when compiling the userstack. Just return -1
in that case.
The diff of the modified file(s):
--- hci_vendor.c 2001/03/05 23:08:39 1.16
+++ hci_vendor.c 2001/03/06 10:49:09 1.17
@@ -154,7 +154,6 @@
c_pkt.opcode =3D hci_put_opcode(ERICSSON_SET_UART_BAUD_RATE, 0x3f) ;
c_pkt.len =3D 1;
switch (baudrate) {
-=20=20=20=20
case 57600: c_pkt.data[0] =3D 0x03;
break;
case 115200: c_pkt.data[0] =3D 0x02;
@@ -165,8 +164,13 @@
break;
default:
D_ERR(__FUNCTION__": Baudrate not supported\n");
+#ifdef __KERNEL__
return -EINVAL;
+#else
+ return -1;
+#endif
}
+
#ifdef CONFIG_BLUETOOTH_SET_BAUDRATE_BLOCKING
send_cmd_block((u8*) &c_pkt, c_pkt.len + CMD_HDR_LEN + HCI_HDR_LEN);
#else
|