]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Provide HCI command opcode information to driver
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Sep 2014 21:06:28 +0000 (23:06 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 15 Sep 2014 04:15:45 +0000 (07:15 +0300)
commit11d834e1457f7d564a1c000b42622bf0fd37772d
treef2f71821f7eec594de5123f42534499b0b97a09b
parenta2a383cd079d7da44f361155f5506f1e60eaa1b5
Bluetooth: Provide HCI command opcode information to driver

The Bluetooth core already does processing of the HCI command header
and puts it together before sending it to the driver. It is not really
efficient for the driver to look at the HCI command header again in
case it has to make certain decisions about certain commands. To make
this easier, just provide the opcode as part of the SKB control buffer
information. The extra information about the opcode is optional and
only provided for HCI commands.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/hci_core.c