diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-03-15 15:52:08 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-08 23:41:33 -0400 |
commit | c9ecc48e2f3577a73dcd830d8b67ecc48e224465 (patch) | |
tree | 8aafa2620851fda2235b11fa6c8c98e38ab709bc /net/bluetooth/hci_event.c | |
parent | 7dbfac1d720d3ea68e00e187bbd2f1147257528b (diff) |
Bluetooth: LE support for MGMT stop discovery
This patch adds LE support to MGMT stop discovery command. So,
now we are able to cancel LE discovery procedures (LE-only and
interleaved).
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index ecf885b79af1..0a936291f0e7 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -1094,8 +1094,12 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev, | |||
1094 | break; | 1094 | break; |
1095 | 1095 | ||
1096 | case LE_SCANNING_DISABLED: | 1096 | case LE_SCANNING_DISABLED: |
1097 | if (status) | 1097 | if (status) { |
1098 | hci_dev_lock(hdev); | ||
1099 | mgmt_stop_discovery_failed(hdev, status); | ||
1100 | hci_dev_unlock(hdev); | ||
1098 | return; | 1101 | return; |
1102 | } | ||
1099 | 1103 | ||
1100 | clear_bit(HCI_LE_SCAN, &hdev->dev_flags); | 1104 | clear_bit(HCI_LE_SCAN, &hdev->dev_flags); |
1101 | 1105 | ||