aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/bluetooth/hci_core.h4
-rw-r--r--net/bluetooth/mgmt.c11
2 files changed, 6 insertions, 9 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 734b09f28f8c..b2b472cbb611 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1112,8 +1112,8 @@ void mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
1112 u8 addr_type, u8 status); 1112 u8 addr_type, u8 status);
1113void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status); 1113void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status);
1114void mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status); 1114void mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status);
1115int mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class, 1115void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class,
1116 u8 status); 1116 u8 status);
1117int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status); 1117int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status);
1118int mgmt_read_local_oob_data_reply_complete(struct hci_dev *hdev, u8 *hash, 1118int mgmt_read_local_oob_data_reply_complete(struct hci_dev *hdev, u8 *hash,
1119 u8 *randomizer, u8 status); 1119 u8 *randomizer, u8 status);
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 969dbaaf243a..24da84ecd062 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -4796,24 +4796,21 @@ static void sk_lookup(struct pending_cmd *cmd, void *data)
4796 } 4796 }
4797} 4797}
4798 4798
4799int mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class, 4799void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class,
4800 u8 status) 4800 u8 status)
4801{ 4801{
4802 struct cmd_lookup match = { NULL, hdev, mgmt_status(status) }; 4802 struct cmd_lookup match = { NULL, hdev, mgmt_status(status) };
4803 int err = 0;
4804 4803
4805 mgmt_pending_foreach(MGMT_OP_SET_DEV_CLASS, hdev, sk_lookup, &match); 4804 mgmt_pending_foreach(MGMT_OP_SET_DEV_CLASS, hdev, sk_lookup, &match);
4806 mgmt_pending_foreach(MGMT_OP_ADD_UUID, hdev, sk_lookup, &match); 4805 mgmt_pending_foreach(MGMT_OP_ADD_UUID, hdev, sk_lookup, &match);
4807 mgmt_pending_foreach(MGMT_OP_REMOVE_UUID, hdev, sk_lookup, &match); 4806 mgmt_pending_foreach(MGMT_OP_REMOVE_UUID, hdev, sk_lookup, &match);
4808 4807
4809 if (!status) 4808 if (!status)
4810 err = mgmt_event(MGMT_EV_CLASS_OF_DEV_CHANGED, hdev, dev_class, 4809 mgmt_event(MGMT_EV_CLASS_OF_DEV_CHANGED, hdev, dev_class, 3,
4811 3, NULL); 4810 NULL);
4812 4811
4813 if (match.sk) 4812 if (match.sk)
4814 sock_put(match.sk); 4813 sock_put(match.sk);
4815
4816 return err;
4817} 4814}
4818 4815
4819int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status) 4816int mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status)