Bluetooth: mgmt_stop_discovery_failed()
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 9 Nov 2011 20:14:26 +0000 (17:14 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Nov 2011 17:40:30 +0000 (15:40 -0200)
commite6d465cb482935c26cb4065a6ab9ce987c067da3
treeea027e48cb8347f860cec32ae3b66287bd943502
parent7a13510902c81ad865f6d02aed2f4e053a46050e
Bluetooth: mgmt_stop_discovery_failed()

This patches creates mgmt_stop_discovery_failed() which removes
pending MGMT_OP_STOP_DISCOVERY commands and sends proper command
status events.

This patch also fixes the MGMT_OP_STOP_DISCOVERY command leak in
case cancel inquiry fails.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c