From b4825b618a6cb3eb21e22f6d45761050eb1987d1 Mon Sep 17 00:00:00 2001 From: Oliver Ruiz Dorantes Date: Sat, 15 Mar 2008 15:46:58 +0000 Subject: [PATCH] Remove code references for commands git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24398 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/bluetooth/BluetoothServer.cpp | 88 ----------------------- 1 file changed, 88 deletions(-) diff --git a/src/servers/bluetooth/BluetoothServer.cpp b/src/servers/bluetooth/BluetoothServer.cpp index ca2bb1f924..1fa5d75a64 100644 --- a/src/servers/bluetooth/BluetoothServer.cpp +++ b/src/servers/bluetooth/BluetoothServer.cpp @@ -390,94 +390,6 @@ BluetoothServer::sdp_server_Thread(void* data) return B_NO_ERROR; } -#if 0 - - struct { - size_t size; - struct hci_command_header header; - //struct hci_rp_read_bd_addr body; - } __attribute__ ((packed)) cm1; - - struct { - size_t size; - struct hci_command_header header; - struct hci_cp_inquiry body; - } __attribute__ ((packed)) cm2; - - struct { - size_t size; - struct hci_command_header header; - struct hci_remote_name_request body; - } __attribute__ ((packed)) cm3; - - struct { - size_t size; - struct hci_command_header header; - struct hci_cp_create_conn body; - } __attribute__ ((packed)) cm4; - - - syslog(LOG_ALERT,BT "Registering device %s\n",path.Path()); - fprintf(stderr, "Opening %s\n",path.Path()); - - cm1.size = sizeof(struct hci_command_header); - cm1.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_CONTROL_BASEBAND, OCF_RESET)); - cm1.header.clen = 0; - ioctl(fd1, ISSUE_BT_COMMAND, &cm1, sizeof(cm1)); - - cm1.size = sizeof(struct hci_command_header); - cm1.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_CONTROL_BASEBAND, OCF_READ_LOCAL_NAME)); - cm1.header.clen = 0; - ioctl(fd1, ISSUE_BT_COMMAND, &cm1, sizeof(cm1)); - - cm1.size = sizeof(struct hci_command_header); - cm1.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_INFORMATIONAL_PARAM, OCF_READ_BD_ADDR)); - cm1.header.clen = 0; - ioctl(fd1, ISSUE_BT_COMMAND, &cm1, sizeof(cm1)); - - cm2.size = sizeof(struct hci_command_header)+sizeof(struct hci_cp_inquiry); - cm2.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_LINK_CTL, OCF_INQUIRY)); - cm2.body.lap[0] = ((B_BT_GIAC & 0x000000FF)); - cm2.body.lap[1] = ((B_BT_GIAC & 0x0000FF00) >> 8); - cm2.body.lap[2] = ((B_BT_GIAC & 0x00FF0000) >> 16); - cm2.body.length = 0x15; - cm2.body.num_rsp = 8; - cm2.header.clen = 5; - ioctl(fd1, ISSUE_BT_COMMAND, &cm2, sizeof(cm1)); - - snooze(60*1000*1000);*/ - cm3.size = sizeof(struct hci_command_header)+sizeof(struct hci_remote_name_request); - cm3.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_LINK_CONTROL, OCF_REMOTE_NAME_REQUEST)); - cm3.body.bdaddr.b[0] = 0x92; - cm3.body.bdaddr.b[1] = 0xd3; - cm3.body.bdaddr.b[2] = 0xaf; - cm3.body.bdaddr.b[3] = 0xd9; - cm3.body.bdaddr.b[4] = 0x0a; - cm3.body.bdaddr.b[5] = 0x00; - cm3.body.pscan_rep_mode = 1; - cm3.body.clock_offset = 0xc7; - cm3.header.clen = 10; - ioctl(fd1, ISSUE_BT_COMMAND, &cm3, sizeof(cm3)); - /* - cm4.size = sizeof(struct hci_command_header)+sizeof(struct hci_cp_create_conn); - cm4.header.opcode = B_HOST_TO_LENDIAN_INT16(hci_opcode_pack(OGF_LINK_CTL, OCF_CREATE_CONN)); - cm4.body.bdaddr.b[0] = 0x92; - cm4.body.bdaddr.b[1] = 0xd3; - cm4.body.bdaddr.b[2] = 0xaf; - cm4.body.bdaddr.b[3] = 0xd9; - cm4.body.bdaddr.b[4] = 0x0a; - cm4.body.bdaddr.b[5] = 0x00; - cm4.body.pkt_type = 0xFFFF; - cm4.body.pscan_rep_mode = 1; - cm4.body.pscan_mode = 0; - cm4.body.clock_offset = 0xc7; - cm4.body.role_switch = 1; - cm4.header.clen = 13; - ioctl(fd1, ISSUE_BT_COMMAND, &cm4, sizeof(cm4)); - */ - } - -#endif void BluetoothServer::ShowWindow(BWindow* pWindow)