Bluetooth: Update device_connected and device_found events to latest API
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 17 Jan 2012 19:48:47 +0000 (21:48 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:28 +0000 (17:01 +0200)
commitb644ba33699711630099efc58a4efc225560aceb
tree405fdec148d9d10186acf0e0d121b987eb208f19
parenta0c808b373e89aecc3ecae4cbdcdeff68aa12e3e
Bluetooth: Update device_connected and device_found events to latest API

This patch updates mgmt_ev_device_connected and mgmt_ev_device found to
include an EIR-encoded remote name and class whenever possible. With
this addition the mgmt_ev_remote_name event becomes unnecessary and can
be removed. Since the connected event doesn't map to hci_conn_complete
anymore a HCI_CONN_MGMT_CONNECTED flag is added to track when mgmt has
been notified about a connection.

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