Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't init device hci0: Function not implemented (38) #75

Open
jelasin opened this issue Apr 29, 2024 · 2 comments
Open

Can't init device hci0: Function not implemented (38) #75

jelasin opened this issue Apr 29, 2024 · 2 comments

Comments

@jelasin
Copy link

jelasin commented Apr 29, 2024

└─# hciconfig hci0 up
Can't init device hci0: Function not implemented (38)

└─# sudo btmon
Bluetooth monitor ver 5.71
btmon[3147]: = Note: Linux version 6.6.15-amd64 (x86_64) 0.875307
btmon[3147]: = Note: Bluetooth subsystem version 2.22 0.875309
= New Index: EC:2E:98:E4:3D:DC (Primary,USB,hci0) [hci0] 0.875310
bluetoothd[2959]: @ MGMT Open: bluetoothd (privileged) version 1.22 {0x0001} 0.875311
hciconfig[3148]: @ RAW Open: hciconfig (privileged) version 2.22 {0x0002} 5.259495
= Open Index: EC:2E:98:E4:3D:DC [hci0] 5.359764
= Index Info: EC:2E:98:E4:3D:DC (not assigned) [hci0] 5.359781
< HCI Command: Reset (0x03|0x0003) plen 0 #1 [hci0] 5.359803

HCI Event: Command Complete (0x0e) plen 4 #2 [hci0] 5.360764
Reset (0x03|0x0003) ncmd 255
Status: Success (0x00)
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0 #3 [hci0] 5.360823
HCI Event: Command Complete (0x0e) plen 12 #4 [hci0] 5.361875
Read Local Supported Features (0x04|0x0003) ncmd 255
Status: Success (0x00)
Features: 0xff 0xff 0x8f 0xfe 0x83 0xe1 0x08 0x80
3 slot packets
5 slot packets
Encryption
Slot offset
Timing accuracy
Role switch
Hold mode
Sniff mode
Park state
Power control requests
Channel quality driven data rate (CQDDR)
SCO link
HV2 packets
HV3 packets
u-law log synchronous data
A-law log synchronous data
CVSD synchronous data
Paging parameter negotiation
Power control
Transparent synchronous data
Broadcast Encryption
Enhanced Data Rate ACL 2 Mbps mode
Enhanced Data Rate ACL 3 Mbps mode
Enhanced inquiry scan
Interlaced inquiry scan
Interlaced page scan
RSSI with inquiry results
Extended SCO link (EV3 packets)
EV4 packets
EV5 packets
3-slot Enhanced Data Rate ACL packets
5-slot Enhanced Data Rate ACL packets
Enhanced Data Rate eSCO 2 Mbps mode
Enhanced Data Rate eSCO 3 Mbps mode
3-slot Enhanced Data Rate eSCO packets
Secure Simple Pairing
Extended features
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0 #5 [hci0] 5.361919
HCI Event: Command Complete (0x0e) plen 12 #6 [hci0] 5.362898
Read Local Version Information (0x04|0x0001) ncmd 255
Status: Success (0x00)
HCI version: Bluetooth 2.1 (0x04) - Revision 256 (0x0100)
LMP version: Bluetooth 2.1 (0x04) - Subversion 256 (0x0100)
Manufacturer: not assigned (6502)
< HCI Command: Read BD ADDR (0x04|0x0009) plen 0 #7 [hci0] 5.362940
HCI Event: Command Complete (0x0e) plen 10 #8 [hci0] 5.364215
Read BD ADDR (0x04|0x0009) ncmd 255
Status: Success (0x00)
Address: EC:2E:98:E4:3D:DC (AzureWave Technology Inc.)
< HCI Command: Read Local Supported Commands (0x04|0x0002) plen 0 #9 [hci0] 5.364269
HCI Event: Command Complete (0x0e) plen 68 #10 [hci0] 5.370021
Read Local Supported Commands (0x04|0x0002) ncmd 255
Status: Success (0x00)
Commands: 125 entries
Inquiry (Octet 0 - Bit 0)
Inquiry Cancel (Octet 0 - Bit 1)
Periodic Inquiry Mode (Octet 0 - Bit 2)
Exit Periodic Inquiry Mode (Octet 0 - Bit 3)
Create Connection (Octet 0 - Bit 4)
Disconnect (Octet 0 - Bit 5)
Create Connection Cancel (Octet 0 - Bit 7)
Accept Connection Request (Octet 1 - Bit 0)
Reject Connection Request (Octet 1 - Bit 1)
Link Key Request Reply (Octet 1 - Bit 2)
Link Key Request Negative Reply (Octet 1 - Bit 3)
PIN Code Request Reply (Octet 1 - Bit 4)
PIN Code Request Negative Reply (Octet 1 - Bit 5)
Change Connection Packet Type (Octet 1 - Bit 6)
Authentication Requested (Octet 1 - Bit 7)
Set Connection Encryption (Octet 2 - Bit 0)
Change Connection Link Key (Octet 2 - Bit 1)
Temporary Link Key (Octet 2 - Bit 2)
Remote Name Request (Octet 2 - Bit 3)
Remote Name Request Cancel (Octet 2 - Bit 4)
Read Remote Supported Features (Octet 2 - Bit 5)
Read Remote Extended Features (Octet 2 - Bit 6)
Read Remote Version Information (Octet 2 - Bit 7)
Read Clock Offset (Octet 3 - Bit 0)
Read LMP Handle (Octet 3 - Bit 1)
Hold Mode (Octet 4 - Bit 1)
Sniff Mode (Octet 4 - Bit 2)
Exit Sniff Mode (Octet 4 - Bit 3)
Park State (Octet 4 - Bit 4)
Exit Park State (Octet 4 - Bit 5)
QoS Setup (Octet 4 - Bit 6)
Role Discovery (Octet 4 - Bit 7)
Switch Role (Octet 5 - Bit 0)
Read Link Policy Settings (Octet 5 - Bit 1)
Write Link Policy Settings (Octet 5 - Bit 2)
Read Default Link Policy Settings (Octet 5 - Bit 3)
Write Default Link Policy Settings (Octet 5 - Bit 4)
Flow Specification (Octet 5 - Bit 5)
Set Event Mask (Octet 5 - Bit 6)
Reset (Octet 5 - Bit 7)
Set Event Filter (Octet 6 - Bit 0)
Flush (Octet 6 - Bit 1)
Read PIN Type (Octet 6 - Bit 2)
Write PIN Type (Octet 6 - Bit 3)
Create New Unit Key (Octet 6 - Bit 4)
Read Stored Link Key (Octet 6 - Bit 5)
Write Stored Link Key (Octet 6 - Bit 6)
Delete Stored Link Key (Octet 6 - Bit 7)
Write Local Name (Octet 7 - Bit 0)
Read Local Name (Octet 7 - Bit 1)
Read Connection Accept Timeout (Octet 7 - Bit 2)
Write Connection Accept Timeout (Octet 7 - Bit 3)
Read Page Timeout (Octet 7 - Bit 4)
Write Page Timeout (Octet 7 - Bit 5)
Read Scan Enable (Octet 7 - Bit 6)
Write Scan Enable (Octet 7 - Bit 7)
Read Page Scan Activity (Octet 8 - Bit 0)
Write Page Scan Activity (Octet 8 - Bit 1)
Read Inquiry Scan Activity (Octet 8 - Bit 2)
Write Inquiry Scan Activity (Octet 8 - Bit 3)
Read Authentication Enable (Octet 8 - Bit 4)
Write Authentication Enable (Octet 8 - Bit 5)
Read Encryption Mode (Octet 8 - Bit 6)
Write Encryption Mode (Octet 8 - Bit 7)
Read Class of Device (Octet 9 - Bit 0)
Write Class of Device (Octet 9 - Bit 1)
Read Voice Setting (Octet 9 - Bit 2)
Write Voice Setting (Octet 9 - Bit 3)
Read Automatic Flush Timeout (Octet 9 - Bit 4)
Write Automatic Flush Timeout (Octet 9 - Bit 5)
Read Num Broadcast Retransmissions (Octet 9 - Bit 6)
Write Num Broadcast Retransmissions (Octet 9 - Bit 7)
Read Hold Mode Activity (Octet 10 - Bit 0)
Write Hold Mode Activity (Octet 10 - Bit 1)
Read Transmit Power Level (Octet 10 - Bit 2)
Read Sync Flow Control Enable (Octet 10 - Bit 3)
Write Sync Flow Control Enable (Octet 10 - Bit 4)
Set Controller To Host Flow Control (Octet 10 - Bit 5)
Host Buffer Size (Octet 10 - Bit 6)
Host Number of Completed Packets (Octet 10 - Bit 7)
Read Link Supervision Timeout (Octet 11 - Bit 0)
Write Link Supervision Timeout (Octet 11 - Bit 1)
Read Number of Supported IAC (Octet 11 - Bit 2)
Read Current IAC LAP (Octet 11 - Bit 3)
Write Current IAC LAP (Octet 11 - Bit 4)
Read Inquiry Scan Type (Octet 12 - Bit 4)
Write Inquiry Scan Type (Octet 12 - Bit 5)
Read Inquiry Mode (Octet 12 - Bit 6)
Write Inquiry Mode (Octet 12 - Bit 7)
Read Page Scan Type (Octet 13 - Bit 0)
Write Page Scan Type (Octet 13 - Bit 1)
Read Local Version Information (Octet 14 - Bit 3)
Read Local Supported Features (Octet 14 - Bit 5)
Read Local Extended Features (Octet 14 - Bit 6)
Read Buffer Size (Octet 14 - Bit 7)
Read BD ADDR (Octet 15 - Bit 1)
Read Failed Contact Counter (Octet 15 - Bit 2)
Reset Failed Contact Counter (Octet 15 - Bit 3)
Read Link Quality (Octet 15 - Bit 4)
Read RSSI (Octet 15 - Bit 5)
Read Clock (Octet 15 - Bit 7)
Setup Synchronous Connection (Octet 16 - Bit 3)
Accept Synchronous Connection Request (Octet 16 - Bit 4)
Reject Synchronous Connection Request (Octet 16 - Bit 5)
Read Extended Inquiry Response (Octet 17 - Bit 0)
Write Extended Inquiry Response (Octet 17 - Bit 1)
Refresh Encryption Key (Octet 17 - Bit 2)
Sniff Subrating (Octet 17 - Bit 4)
Read Simple Pairing Mode (Octet 17 - Bit 5)
Write Simple Pairing Mode (Octet 17 - Bit 6)
Read Local OOB Data (Octet 17 - Bit 7)
Read Inquiry Response TX Power Level (Octet 18 - Bit 0)
Write Inquiry Transmit Power Level (Octet 18 - Bit 1)
Read Default Erroneous Data Reporting (Octet 18 - Bit 2)
Write Default Erroneous Data Reporting (Octet 18 - Bit 3)
IO Capability Request Reply (Octet 18 - Bit 7)
User Confirmation Request Reply (Octet 19 - Bit 0)
User Confirmation Request Neg Reply (Octet 19 - Bit 1)
User Passkey Request Reply (Octet 19 - Bit 2)
User Passkey Request Negative Reply (Octet 19 - Bit 3)
Remote OOB Data Request Reply (Octet 19 - Bit 4)
Enhanced Flush (Octet 19 - Bit 6)
Remote OOB Data Request Neg Reply (Octet 19 - Bit 7)
Send Keypress Notification (Octet 20 - Bit 2)
IO Capability Request Negative Reply (Octet 20 - Bit 3)
< HCI Command: Write Extended Inquiry Response (0x03|0x0052) plen 241 #11 [hci0] 5.370090
FEC: Not required (0x00)
HCI Event: Command Complete (0x0e) plen 4 #12 [hci0] 5.371049
Write Extended Inquiry Response (0x03|0x0052) ncmd 255
Status: Success (0x00)
< HCI Command: Write Inquiry Mode (0x03|0x0045) plen 1 #13 [hci0] 5.371101
Mode: Inquiry Result with RSSI (0x01)
HCI Event: Command Complete (0x0e) plen 4 #14 [hci0] 5.372091
Write Inquiry Mode (0x03|0x0045) ncmd 255
Status: Success (0x00)
< HCI Command: Read Local Extended Features (0x04|0x0004) plen 1 #15 [hci0] 5.372131
Page: 1
HCI Event: Command Complete (0x0e) plen 14 #16 [hci0] 5.373149
Read Local Extended Features (0x04|0x0004) ncmd 255
Status: Success (0x00)
Page: 1/1
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Secure Simple Pairing (Host Support)
< HCI Command: Read Buffer Size (0x04|0x0005) plen 0 #17 [hci0] 5.373178
HCI Event: Command Complete (0x0e) plen 11 #18 [hci0] 5.375398
Read Buffer Size (0x04|0x0005) ncmd 255
Status: Success (0x00)
ACL MTU: 8192 ACL max packet: 128
SCO MTU: 64 SCO max packet: 128
< HCI Command: Read Class of Device (0x03|0x0023) plen 0 #19 [hci0] 5.375459
HCI Event: Command Complete (0x0e) plen 7 #20 [hci0] 5.376447
Read Class of Device (0x03|0x0023) ncmd 255
Status: Success (0x00)
Class: 0x000100
Major class: Computer (desktop, notebook, PDA, organizers)
Minor class: Uncategorized, code for device not assigned
< HCI Command: Read Local Name (0x03|0x0014) plen 0 #21 [hci0] 5.376493
HCI Event: Command Complete (0x0e) plen 252 #22 [hci0] 5.396099
Read Local Name (0x03|0x0014) ncmd 255
Status: Success (0x00)
Name: Virtual Bluetooth Adapter
< HCI Command: Read Voice Setting (0x03|0x0025) plen 0 #23 [hci0] 5.396153
HCI Event: Command Complete (0x0e) plen 6 #24 [hci0] 5.397141
Read Voice Setting (0x03|0x0025) ncmd 255
Status: Success (0x00)
Setting: 0x00e3
Input Coding: Linear
Input Data Format: Unsigned
Input Sample Size: 16-bit
# of bits padding at MSB: 0
Air Coding Format: Transparent Data
< HCI Command: Read Number of Supported IAC (0x03|0x0038) plen 0 #25 [hci0] 5.397182
HCI Event: Command Complete (0x0e) plen 5 #26 [hci0] 5.398229
Read Number of Supported IAC (0x03|0x0038) ncmd 255
Status: Success (0x00)
Number of IAC: 1
< HCI Command: Read Current IAC LAP (0x03|0x0039) plen 0 #27 [hci0] 5.398272
HCI Event: Command Complete (0x0e) plen 8 #28 [hci0] 5.399220
Read Current IAC LAP (0x03|0x0039) ncmd 255
Status: Success (0x00)
Number of IAC: 1
Access code: 0x9e8b33 (General Inquiry)
< HCI Command: Write Connection Accept Timeout (0x03|0x0016) plen 2 #29 [hci0] 5.399263
Timeout: 20000.000 msec (0x7d00)
HCI Event: Command Complete (0x0e) plen 4 #30 [hci0] 5.400291
Write Connection Accept Timeout (0x03|0x0016) ncmd 255
Status: Success (0x00)
< HCI Command: Set Event Mask (0x03|0x0001) plen 8 #31 [hci0] 5.400338
Mask: 0x1c3f1807fffbffff
Inquiry Complete
Inquiry Result
Connection Complete
Connection Request
Disconnection Complete
Authentication Complete
Remote Name Request Complete
Encryption Change
Change Connection Link Key Complete
Link Key Type Changed
Read Remote Supported Features Complete
Read Remote Version Information Complete
QoS Setup Complete
Command Complete
Command Status
Hardware Error
Flush Occurred
Role Change
Mode Change
Return Link Keys
PIN Code Request
Link Key Request
Link Key Notification
Loopback Command
Data Buffer Overflow
Max Slots Change
Read Clock Offset Complete
Connection Packet Type Changed
QoS Violation
Page Scan Mode Change
Page Scan Repetition Mode Change
Flow Specification Complete
Inquiry Result with RSSI
Read Remote Extended Features Complete
Synchronous Connection Complete
Synchronous Connection Changed
IO Capability Request
IO Capability Request Reply
User Confirmation Request
User Passkey Request
Remote OOB Data Request
Simple Pairing Complete
User Passkey Notification
Keypress Notification
Remote Host Supported Features Notification
HCI Event: Command Complete (0x0e) plen 4 #32 [hci0] 5.401335
Set Event Mask (0x03|0x0001) ncmd 255
Status: Success (0x00)
< HCI Command: Read Stored Link Key (0x03|0x000d) plen 7 #33 [hci0] 5.401376
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Read all: 0x01
HCI Event: Command Complete (0x0e) plen 8 #34 [hci0] 5.402829
Read Stored Link Key (0x03|0x000d) ncmd 255
Status: Success (0x00)
Max num keys: 0
Num keys: 0
< HCI Command: Write Default Link Policy Settings (0x02|0x000f) plen 2 #35 [hci0] 5.402869
Link policy: 0x000f
Enable Role Switch
Enable Hold Mode
Enable Sniff Mode
Enable Park State
HCI Event: Command Complete (0x0e) plen 4 #36 [hci0] 5.403891
Write Default Link Policy Settings (0x02|0x000f) ncmd 255
Status: Success (0x00)
< HCI Command: Read Page Scan Activity (0x03|0x001b) plen 0 #37 [hci0] 5.403928
HCI Event: Command Complete (0x0e) plen 8 #38 [hci0] 5.404960
Read Page Scan Activity (0x03|0x001b) ncmd 255
Status: Success (0x00)
Interval: 1280.000 msec (0x0800)
Window: 11.250 msec (0x0012)
< HCI Command: Read Page Scan Type (0x03|0x0046) plen 0 #39 [hci0] 5.405000
HCI Event: Command Complete (0x0e) plen 5 #40 [hci0] 5.406004
Read Page Scan Type (0x03|0x0046) ncmd 255
Status: Success (0x00)
Type: Standard Scan (0x00)
< HCI Command: Delete Stored Link Key (0x03|0x0012) plen 7 #41 [hci0] 5.406044
Address: 00:00:00:00:00:00 (OUI 00-00-00)
Delete all: 0x01
HCI Event: Command Complete (0x0e) plen 5 #42 [hci0] 5.407040
Delete Stored Link Key (0x03|0x0012) ncmd 255
invalid packet size
00 00 ..
= Close Index: EC:2E:98:E4:3D:DC [hci0] 5.407095
hciconfig[3148]: @ RAW Close: hciconfig {0x0002} 5.410438

└─# dmesg | grep Bluetooth
[ 2.652745] usb 2-2.1: Product: Virtual Bluetooth Adapter
[ 3.982473] Bluetooth: Core ver 2.22
[ 3.982497] Bluetooth: HCI device and connection manager initialized
[ 3.982502] Bluetooth: HCI socket layer initialized
[ 3.982504] Bluetooth: L2CAP socket layer initialized
[ 3.982508] Bluetooth: SCO socket layer initialized
[ 4.084678] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 4.084717] Bluetooth: hci0: Opcode 0x0c12 failed: -38
[ 98.294340] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 98.294372] Bluetooth: hci0: Opcode 0x0c12 failed: -38
[ 108.336885] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 108.336889] Bluetooth: BNEP filters: protocol multicast
[ 108.336893] Bluetooth: BNEP socket layer initialized
[ 162.459071] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 162.459114] Bluetooth: hci0: Opcode 0x0c12 failed: -38
[ 211.610476] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 211.610502] Bluetooth: hci0: Opcode 0x0c12 failed: -38
[ 217.941368] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 217.941380] Bluetooth: hci0: Opcode 0x0c12 failed: -38
[ 234.507252] Bluetooth: hci0: unexpected cc 0x0c12 length: 2 < 3
[ 234.507266] Bluetooth: hci0: Opcode 0x0c12 failed: -38

@ironsword1999
Copy link

Dude, I have exactly the same problem as you. Have you solved it? I am starting Kali from VMware

@jelasin
Copy link
Author

jelasin commented Jun 29, 2024

It's easy to solve it. just use ubuntu18.04😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants