aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2016-08-28 13:53:34 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 14:19:34 -0400
commit37d3a1fab50fa07ac706787646e61c60e7c520e0 (patch)
tree8c0c1576333831c7fed1195078d6f447968a636c /net/bluetooth/hci_request.h
parent38ceaa00d02dceb22c6bdd5268f5a44d5c00e123 (diff)
Bluetooth: mgmt: Fix sending redundant event for Advertising Instance
When an Advertising Instance is removed, the Advertising Removed event shouldn't be sent to the same socket that issued the Remove Advertising command (it gets a command complete event instead). The mgmt_advertising_removed() function already has a parameter for skipping a specific socket, but there was no code to propagate the right value to this parameter. This patch fixes the issue by making sure the intermediate hci_req_clear_adv_instance() function gets the socket pointer. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.h')
-rw-r--r--net/bluetooth/hci_request.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bluetooth/hci_request.h b/net/bluetooth/hci_request.h
index b2d044bdc732..ac1e11006f38 100644
--- a/net/bluetooth/hci_request.h
+++ b/net/bluetooth/hci_request.h
@@ -73,8 +73,9 @@ void __hci_req_update_scan_rsp_data(struct hci_request *req, u8 instance);
73 73
74int __hci_req_schedule_adv_instance(struct hci_request *req, u8 instance, 74int __hci_req_schedule_adv_instance(struct hci_request *req, u8 instance,
75 bool force); 75 bool force);
76void hci_req_clear_adv_instance(struct hci_dev *hdev, struct hci_request *req, 76void hci_req_clear_adv_instance(struct hci_dev *hdev, struct sock *sk,
77 u8 instance, bool force); 77 struct hci_request *req, u8 instance,
78 bool force);
78 79
79void __hci_req_update_class(struct hci_request *req); 80void __hci_req_update_class(struct hci_request *req);
80 81