diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-11-01 16:06:44 +0100 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-11-07 20:24:48 +0100 |
commit | 164a6e78990f6201dc3105ff88335ca91392a427 (patch) | |
tree | 407787a69f45136e05365ba622f2435963f90a9b /net/bluetooth/hci_event.c | |
parent | Bluetooth: make use sk_priority to priritize RFCOMM packets (diff) | |
download | linux-164a6e78990f6201dc3105ff88335ca91392a427.tar.xz linux-164a6e78990f6201dc3105ff88335ca91392a427.zip |
Bluetooth: Fix command complete/status for discovery commands
This patch adds the necessary code to send proper command status or
command complete events to the start/stop discovery management commands.
Before this patch these events were completely missing.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 41967fec12b7..d8fa65709aed 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -979,6 +979,8 @@ static inline void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) if (status) { hci_req_complete(hdev, HCI_OP_INQUIRY, status); hci_conn_check_pending(hdev); + if (test_bit(HCI_MGMT, &hdev->flags)) + mgmt_inquiry_failed(hdev->id, status); return; } |