|
@@ -3501,36 +3501,6 @@ static void hci_cmd_work(struct work_struct *work)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-int hci_do_inquiry(struct hci_dev *hdev, u8 length)
|
|
|
-{
|
|
|
- /* General inquiry access code (GIAC) */
|
|
|
- u8 lap[3] = { 0x33, 0x8b, 0x9e };
|
|
|
- struct hci_cp_inquiry cp;
|
|
|
-
|
|
|
- BT_DBG("%s", hdev->name);
|
|
|
-
|
|
|
- if (test_bit(HCI_INQUIRY, &hdev->flags))
|
|
|
- return -EINPROGRESS;
|
|
|
-
|
|
|
- hci_inquiry_cache_flush(hdev);
|
|
|
-
|
|
|
- memset(&cp, 0, sizeof(cp));
|
|
|
- memcpy(&cp.lap, lap, sizeof(cp.lap));
|
|
|
- cp.length = length;
|
|
|
-
|
|
|
- return hci_send_cmd(hdev, HCI_OP_INQUIRY, sizeof(cp), &cp);
|
|
|
-}
|
|
|
-
|
|
|
-int hci_cancel_inquiry(struct hci_dev *hdev)
|
|
|
-{
|
|
|
- BT_DBG("%s", hdev->name);
|
|
|
-
|
|
|
- if (!test_bit(HCI_INQUIRY, &hdev->flags))
|
|
|
- return -EALREADY;
|
|
|
-
|
|
|
- return hci_send_cmd(hdev, HCI_OP_INQUIRY_CANCEL, 0, NULL);
|
|
|
-}
|
|
|
-
|
|
|
u8 bdaddr_to_le(u8 bdaddr_type)
|
|
|
{
|
|
|
switch (bdaddr_type) {
|