|
From: Peter K. <pk...@us...> - 2001-10-22 12:51:45
|
The following file was modified in linux/include/linux/bluetooth:
Name Old version New version Comment
---- ----------- ----------- -------
hci.h 1.72 1.73=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
hci_get_ocf() and hci_get_ogf() should now work correctly regarding
endianness and alignment.
The diff of the modified file(s):
--- hci.h 2001/10/05 12:06:43 1.72
+++ hci.h 2001/10/22 12:51:44 1.73
@@ -87,9 +87,8 @@
} __attribute__ ((packed)) cmd_pkt;
=20
#define hci_put_opcode(ocf, ogf)(cpu_to_le16(((ocf) & 0x03ff) | ((ogf) << =
10 & 0xfc00)))
-//#define hci_put_le16(buf, val) { *((char*)buf) =3D (val) & 0xff; *((char=
*)buf + 1) =3D (val) >> 8; }
-#define hci_get_ocf(opcode) (cpu_to_le16((opcode) & 0x3ff))
-#define hci_get_ogf(opcode) (cpu_to_le16(((opcode) & 0xfc00) >> 10))
+#define hci_get_ocf(opcode_addr) (le16_to_cpuu(opcode_addr) & 0x3ff)
+#define hci_get_ogf(opcode_addr) ((le16_to_cpuu(opcode_addr) & 0xfc00) >> =
10)
=20
/****************** EXPORTED FUNCTION DECLARATION SECTION ****************=
***/
=20
|