|
From: Alain P. <apa...@us...> - 2002-11-22 08:29:44
|
The following file was modified in linux/drivers/char/bluetooth:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
hci_vendor.c 1.66 1.67=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Write PS keys for CSR modules now big-endian compatible
The diff of the modified file(s):
--- hci_vendor.c 22 Jul 2002 17:29:50 -0000 1.66
+++ hci_vendor.c 22 Nov 2002 08:29:13 -0000 1.67
@@ -1111,6 +1111,13 @@
cmd =3D (struct csr_bccmd *)msg->msg;
ps =3D (struct csr_bccmd_ps *)cmd->payload;
=20
+ /* Invert u16 if big endian */
+ cmd->type =3D le16_to_cpu(cmd->type);
+ cmd->len =3D le16_to_cpu(cmd->len);
+ cmd->seq =3D le16_to_cpu(cmd->seq);
+ cmd->var_id =3D le16_to_cpu(cmd->var_id);
+ cmd->status =3D le16_to_cpu(cmd->status);
+
switch (CSR_GET_CH_ID(msg)) {
case CSR_CH_ID_BCCMD:
if (cmd->type =3D=3D CSR_MSGTYPE_GETRESP &&
|