Bluetooth: Move generic mgmt command dispatcher to hci_sock.c
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 17 Mar 2015 11:48:50 +0000 (13:48 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Mar 2015 17:03:08 +0000 (18:03 +0100)
commitfa4335d71a1408d0112c15874538f3f4e153ba01
treef67bac624e402bc5f0ce84936d3cf9c573849355
parent88b94ce925cb103851f39bfa7e23e09823573d30
Bluetooth: Move generic mgmt command dispatcher to hci_sock.c

The mgmt.c file should be reserved purely for HCI_CHANNEL_CONTROL. The
mgmt_control() function in it is already completely generic and has a
single user in hci_sock.c. This patch moves the function there and
renames it a bit more appropriately to hci_mgmt_cmd() (as it's a command
dispatcher).

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