Bluetooth: Add an extra check in mgmt_device_disconnected()
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 30 Oct 2013 22:01:41 +0000 (19:01 -0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 4 Dec 2013 13:09:03 +0000 (11:09 -0200)
commit57eb776feac497c8e5b561c0a24156245f0c08db
treeda0626d08c514db221a3e560b642634dd061ff0b
parent3655bba8fe693e31c44c43cd30a9aaeee8bd45df
Bluetooth: Add an extra check in mgmt_device_disconnected()

This patch adds an extra check in mgmt_device_disconnected() so we only
send the "Device Disconnected" event if it is ACL_LINK or LE_LINK link
type.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c