[Bluetooth] Switch from OGF+OCF to using only opcodes
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 20 Oct 2007 11:33:56 +0000 (13:33 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 22 Oct 2007 09:59:40 +0000 (02:59 -0700)
commita9de9248064bfc8eb0a183a6a951a4e7b5ca10a4
tree4934b99543a9ae0f0282a7f366a8b765c6fb1a08
parent55b70a0300b873c0ec7ea6e33752af56f41250ce
[Bluetooth] Switch from OGF+OCF to using only opcodes

The Bluetooth HCI commands are divided into logical OGF groups for
easier identification of their purposes. While this still makes sense
for the written specification, its makes the code only more complex
and harder to read. So instead of using separate OGF and OCF values
to identify the commands, use a common 16-bit opcode that combines
both values. As a side effect this also reduces the complexity of
OGF and OCF calculations during command header parsing.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcsp.c
include/net/bluetooth/hci.h
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/hci_sock.c
net/bluetooth/hci_sysfs.c