Skip to content

Commit c4a5756

Browse files
authored
Fix send_command in BluetoothUserSocket (#4754)
1 parent 114ad9a commit c4a5756

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scapy/layers/bluetooth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,7 @@ def __init__(self, adapter_index=0):
31283128
sock_address=sa)
31293129

31303130
def send_command(self, cmd):
3131-
opcode = cmd.opcode
3131+
opcode = cmd[HCI_Command_Hdr].opcode
31323132
self.send(cmd)
31333133
while True:
31343134
r = self.recv()

0 commit comments

Comments
 (0)